Skip to main content

Bungeechat Platform Adapter

The Bungeechat Platform Adapter exhibits what PineappleChat is capable of and is highly reccomended over the minecraft legacy module

Adding Bungeechat Platform Adapter Dependency

<dependencies>
<dependency>
<groupId>sh.miles</groupId>
<artifactId>pineapplechat-bungee</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>

Use

To use PineappleChat you must initialize the parser context

final BungeePineappleParserContext parser = new BungeePineappleParserContext();

Platform Specific Tags

Bungeechat is capable enough to offer more options to those who are looking to spice up their text. Tag tags below are added by the Bungeechat platform for use.

Hover Tag

The hover tag allows things to be seen when you hover over a piece of text! The tag is formatted like so <hover:_action_:_action-content_>.

Each action has different behaviors and arguments so depending on the action different content is required. Below I will go into the specifics of each action

Shows text when hovered on

requires 1 argument which is text

<hover:show_text:'_text_'>

The given text MUST be wrapped in quotes

info

All text arguments are run through the parser, even if nested in another tag, so you can be context aware with both replacements and use PineappleChat's other features

Click Tag

The click tag allows things to happen when a piece of text is clicked on. This can be combined very well with the hover tag to allow for immersive text interaction. Unlike HoverEvent's all ClickEvent's have exactly one parameter of text so it is very easy to switch between actions without changing much

Prompts a URL Open

<click:open_url:'_text_'>

warning

The quotations around the _text_ are NOT optional and are required for the tag to parse properly