Class TitleCommand

java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.VanillaCommand
net.glowstone.command.minecraft.GlowVanillaCommand
net.glowstone.command.minecraft.TitleCommand

public class TitleCommand extends GlowVanillaCommand
  • Constructor Details

    • TitleCommand

      public TitleCommand()
      Creates the instance for this command.
  • Method Details

    • convertJson

      public String convertJson(@NonNls @NonNls Map<String,Object> json)
      Converts a valid JSON chat component to a basic colored string. This does not parse components like hover or click events. This returns null on parse failure.
      Parameters:
      json - the json chat component
      Returns:
      the colored string, or null
    • execute

      public boolean execute(org.bukkit.command.CommandSender sender, String commandLabel, String[] args, GlowVanillaCommand.CommandMessages commandMessages)
      Description copied from class: GlowVanillaCommand
      Executes the command, returning its success.
      Specified by:
      execute in class GlowVanillaCommand
      Parameters:
      sender - Source object which is executing this command
      commandLabel - The alias of the command used
      args - All arguments passed to the command, split via ' '
      commandMessages - Object containing the title, description and permission message in the sender's locale, or set with setters
      Returns:
      true if the command was successful, otherwise false