Package org.bukkit.command

Examples of org.bukkit.command.CommandMap.register()


        }
        for (CommandInfo command : registered) {
            DynamicPluginCommand cmd = new DynamicPluginCommand(command.getAliases(),
                    command.getDesc(), "/" + command.getAliases()[0] + " " + command.getUsage(), executor, command.getRegisteredWith(), plugin);
            cmd.setPermissions(command.getPermissions());
            commandMap.register(plugin.getDescription().getName(), cmd);
        }
        return true;
    }

    public CommandMap getCommandMap() {
View Full Code Here


        String[] aliases = { "CreeperHeal", CreeperConfig.getAlias() };
        CreeperCommand com = new CreeperCommand(aliases, "", "", new CreeperCommandManager());

        if (commandMap != null)
            commandMap.register("_", com);

    }

    /*
     * (non-Javadoc)
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.