Class BridgedCommand<P extends ConnectingPlugin,S>

java.lang.Object
de.themoep.connectorplugin.BridgedCommand<P,S>

public abstract class BridgedCommand<P extends ConnectingPlugin,S> extends Object
  • Constructor Details

    • BridgedCommand

      public BridgedCommand(P plugin, String name)
      A new bridged command
      Parameters:
      plugin - The plugin that this command is from
      name - The name of the command
    • BridgedCommand

      public BridgedCommand(P plugin, String name, String permission)
      A new bridged command
      Parameters:
      plugin - The plugin that this command is from
      name - The name of the command
      permission - The permission of this command
    • BridgedCommand

      public BridgedCommand(P plugin, String name, String permission, String permissionMessage, String description, String usage, String... aliases)
      A new bridged command
      Parameters:
      plugin - The plugin that this command is from
      name - The name of the command
      permission - The permission of this command
      description - The description of this command
      usage - How the command can be used by the player
      aliases - An optional array of aliases for the command
  • Method Details

    • getPlugin

      public P getPlugin()
    • getName

      public String getName()
    • getAliases

      public String[] getAliases()
    • getDescription

      public String getDescription()
    • getUsage

      public String getUsage()
    • getPermission

      public String getPermission()
    • getPermissionMessage

      public String getPermissionMessage()
    • onCommand

      public abstract boolean onCommand(S sender, LocationInfo location, String label, String[] args)