#2755: Add ClickEvent.COPY_TO_CLIPBOARD

This commit is contained in:
md_5 2020-01-19 10:18:54 +11:00
parent 3d3a5aefa2
commit 68cc325ace

View File

@ -13,11 +13,11 @@ public final class ClickEvent
{ {
/** /**
* The type of action to perform on click * The type of action to perform on click.
*/ */
private final Action action; private final Action action;
/** /**
* Depends on action * Depends on the action.
* *
* @see Action * @see Action
*/ */
@ -28,29 +28,35 @@ public final class ClickEvent
/** /**
* Open a url at the path given by * Open a url at the path given by
* {@link net.md_5.bungee.api.chat.ClickEvent#value} * {@link net.md_5.bungee.api.chat.ClickEvent#value}.
*/ */
OPEN_URL, OPEN_URL,
/** /**
* Open a file at the path given by * Open a file at the path given by
* {@link net.md_5.bungee.api.chat.ClickEvent#value} * {@link net.md_5.bungee.api.chat.ClickEvent#value}.
*/ */
OPEN_FILE, OPEN_FILE,
/** /**
* Run the command given by * Run the command given by
* {@link net.md_5.bungee.api.chat.ClickEvent#value} * {@link net.md_5.bungee.api.chat.ClickEvent#value}.
*/ */
RUN_COMMAND, RUN_COMMAND,
/** /**
* Inserts the string given by * Inserts the string given by
* {@link net.md_5.bungee.api.chat.ClickEvent#value} into the players * {@link net.md_5.bungee.api.chat.ClickEvent#value} into the player's
* text box * text box.
*/ */
SUGGEST_COMMAND, SUGGEST_COMMAND,
/** /**
* Change to the page number given by * Change to the page number given by
* {@link net.md_5.bungee.api.chat.ClickEvent#value} in a book * {@link net.md_5.bungee.api.chat.ClickEvent#value} in a book.
*/ */
CHANGE_PAGE CHANGE_PAGE,
/**
* Copy the string given by
* {@link net.md_5.bungee.api.chat.ClickEvent#value} into the player's
* clipboard.
*/
COPY_TO_CLIPBOARD
} }
} }