public static interface BookUtil.ClickAction
| Modifier and Type | Interface and Description |
|---|---|
static class |
BookUtil.ClickAction.SimpleClickAction |
| Modifier and Type | Method and Description |
|---|---|
net.md_5.bungee.api.chat.ClickEvent.Action |
action()
Get the Chat-Component action
|
static BookUtil.ClickAction |
changePage(int page)
Creates a change_page action: when the player clicks the book page will be set at the value passed as argument
|
static BookUtil.ClickAction |
openUrl(String url)
Creates a open_utl action: when the player clicks the url passed as argument will open in the browser
|
static BookUtil.ClickAction |
runCommand(String command)
Creates a command action: when the player clicks, the command passed as parameter gets executed with the clicker as sender
|
static BookUtil.ClickAction |
suggestCommand(String command)
Creates a suggest_command action: when the player clicks, the book closes and the chat opens with the parameter written into it
|
String |
value()
The value paired to the action
|
net.md_5.bungee.api.chat.ClickEvent.Action action()
String value()
static BookUtil.ClickAction runCommand(String command)
command - the command to be executedstatic BookUtil.ClickAction suggestCommand(String command)
command - the command to be suggestedstatic BookUtil.ClickAction openUrl(String url)
url - the url to be openedstatic BookUtil.ClickAction changePage(int page)
page - the new pageCopyright © 2017. All rights reserved.