org.bukkit.command.defaults
Class VanillaCommand

java.lang.Object
  extended by org.bukkit.command.Command
      extended by org.bukkit.command.defaults.VanillaCommand
Direct Known Subclasses:
BanCommand, BanIpCommand, BanListCommand, ClearCommand, DefaultGameModeCommand, DeopCommand, DifficultyCommand, EnchantCommand, ExpCommand, GameModeCommand, GameRuleCommand, GiveCommand, HelpCommand, KickCommand, KillCommand, ListCommand, MeCommand, OpCommand, PardonCommand, PardonIpCommand, SaveCommand, SaveOffCommand, SaveOnCommand, SayCommand, SeedCommand, SpawnpointCommand, StopCommand, TeleportCommand, TellCommand, TestForCommand, TimeCommand, ToggleDownfallCommand, WeatherCommand, WhitelistCommand

public abstract class VanillaCommand
extends Command


Field Summary
 
Fields inherited from class org.bukkit.command.Command
description, usageMessage
 
Constructor Summary
protected VanillaCommand(String name)
           
protected VanillaCommand(String name, String description, String usageMessage, List<String> aliases)
           
 
Method Summary
static double getDouble(CommandSender sender, String input)
           
static double getDouble(CommandSender sender, String input, double min, double max)
           
protected  int getInteger(CommandSender sender, String value, int min)
           
 boolean matches(String input)
           
 
Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, execute, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setPermission, setPermissionMessage, setUsage, tabComplete, tabComplete, testPermission, testPermissionSilent, toString, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VanillaCommand

protected VanillaCommand(String name)

VanillaCommand

protected VanillaCommand(String name,
                         String description,
                         String usageMessage,
                         List<String> aliases)
Method Detail

matches

public boolean matches(String input)

getInteger

protected int getInteger(CommandSender sender,
                         String value,
                         int min)

getDouble

public static double getDouble(CommandSender sender,
                               String input)

getDouble

public static double getDouble(CommandSender sender,
                               String input,
                               double min,
                               double max)


Copyright © 2013. All Rights Reserved.