Java 类org.bukkit.command.defaults.VanillaCommand 实例源码

项目:Thermos-Bukkit    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:CauldronGit    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Cauldron    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Cauldron    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Cauldron    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Almura-API    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Spigot-API    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Bukkit-JavaDoc    文件:GenericCommandHelpTopic.java   
public boolean canSee(CommandSender sender) {
    if (!command.isRegistered() && !(command instanceof VanillaCommand)) {
        // Unregistered commands should not show up in the help (ignore VanillaCommands)
        return false;
    }

    if (sender instanceof ConsoleCommandSender) {
        return true;
    }

    if (amendedPermission != null) {
        return sender.hasPermission(amendedPermission);
    } else {
        return command.testPermissionSilent(sender);
    }
}
项目:Uranium    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Uranium    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:ThermosRebased    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:ThermosRebased    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Thermos    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Thermos    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:KCauldron    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:KCauldron    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:CauldronGit    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:CauldronGit    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Cauldron-Old    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Cauldron-Old    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Cauldron-Reloaded    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Cauldron-Reloaded    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:FFoKC    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command.getClass().equals(VanillaCommandWrapper.class)) {
        return "Minecraft";
    }
    if (command.getClass().equals(BukkitCommand.class) || command.getClass().equals(VanillaCommand.class)) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:FFoKC    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command.getClass().equals(BukkitCommand.class) || command.getClass().equals(VanillaCommand.class)) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:CraftBukkit    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:CraftBukkit    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Craftbukkit    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Craftbukkit    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Almura-Server    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Almura-Server    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Tweakkit-Server    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Tweakkit-Server    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Cauldron    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Cauldron    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:SpigotSource    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof VanillaCommandWrapper) {
        return "Minecraft";
    }
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:SpigotSource    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:Craft-city    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:Craft-city    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}
项目:MCPBukkit    文件:SimpleHelpMap.java   
private String getCommandPluginName(Command command) {
    if (command instanceof BukkitCommand || command instanceof VanillaCommand) {
        return "Bukkit";
    }
    if (command instanceof PluginIdentifiableCommand) {
        return ((PluginIdentifiableCommand)command).getPlugin().getName();
    }
    return null;
}
项目:MCPBukkit    文件:SimpleHelpMap.java   
private boolean commandInIgnoredPlugin(Command command, Set<String> ignoredPlugins) {
    if ((command instanceof BukkitCommand || command instanceof VanillaCommand) && ignoredPlugins.contains("Bukkit")) {
        return true;
    }
    if (command instanceof PluginIdentifiableCommand && ignoredPlugins.contains(((PluginIdentifiableCommand)command).getPlugin().getName())) {
        return true;
    }
    return false;
}