Skip to content

2. Methods

Atog edited this page Feb 8, 2022 · 2 revisions

Introduction

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.

List of methods

This is a list of currently added methods:

Send message

This is used to send messages to the person performing the interaction.

SEND: Hello %player_name%

Wait

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)

Broadcast

Send a message to the entire server.

BROADCAST: Hello world!

Dispatch command

Executes a command using the player as sender

DISPATCH_COMMAND: gamemode creative

Command

Executes commands using the console as a sender

COMMAND: some command

Teleport

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

Sound

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

Effect

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

Send server

Sends you to another proxy server

SEND_SERVER: serverName

<- See this

Clone this wiki locally