-
Notifications
You must be signed in to change notification settings - Fork 8
2. Methods
A method in this plugin is considered a way to perform an action by text with the following syntax: METHOD: ARGUMENT.
The methods that can be created are infinite, the only limit is the server limits, however, I can't add everything possible, but not to worry, the plugin has a good api to create your methods, whatever it is.
This is a list of currently added methods:
This is used to send messages to the person performing the interaction.
SEND: Hello %player_name%
It is in charge of giving a waiting time to wait for the next line.
WAIT: 3 (It will wait 3 seconds to continue with the dialog)
Send a message to the entire server.
BROADCAST: Hello world!
Executes a command using the player as sender
DISPATCH_COMMAND: gamemode creative
Executes commands using the console as a sender
COMMAND: some command
Teleports the player to specific coordinates.
Data: the current value returns the current location of the player, the type varies depending on what you are using, either x y z yaw or pitch.
TELEPORT: world,384,current,-7039,current,current
TELEPORT: current,8532,67,9934
Plays a sound to the player, at the same coordinates as the player. ID,volume,pitch
You can see the available sounds at https://papermc.io/javadocs/paper/1.18/org/bukkit/Sound.html
SOUND: ENTITY_VILLAGER_YES,0.7,0.6
Gives the player a potion effect effect_name,seconds,amplifier
You can see the list of effects here https://papermc.io/javadocs/paper/1.18/org/bukkit/potion/PotionEffectType.html
EFFECT: GLOWING,10,1
EFFECT: clear
EFFECT: clear GLOWING
Sends you to another proxy server
SEND_SERVER: serverName
<- See this