Class Link
java.lang.Object
com.github.mafelp.minecraft.commands.Link
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Class handling the linking of minecraft and discord accounts -
Warning This class in currently not implemented.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args)The Method called when command "/token" is executed.protected static voidsendLinkToken(org.bukkit.entity.Player player)The method that sends the link token in a nice message to thePlayerthat executed this command.
-
Constructor Details
-
Link
public Link()
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args)The Method called when command "/token" is executed.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Parameters:
sender- The sender of the commandcommand- the command he/she usedlabel- the label of the commandargs- additional arguments passed: Discord ID and unique identifier.- Returns:
- command success
-
sendLinkToken
protected static void sendLinkToken(org.bukkit.entity.Player player)The method that sends the link token in a nice message to thePlayerthat executed this command.- Parameters:
player- The player to send its token to.
-