Package me.taylorkelly.help

Examples of me.taylorkelly.help.Help


public class BBHelp {

    public static void initialize(Plugin plugin) {
        Plugin test = plugin.getServer().getPluginManager().getPlugin("Help");
        if (test != null) {
            Help helpPlugin = ((Help) test);
            String[] permissions = new String[]{"bb.admin.watch", "bb.admin.info", "bb.admin.rollback", "bb.admin.cleanse"};
            helpPlugin.registerCommand("bb help", "Help for all BigBrother commands", plugin, permissions);
            helpPlugin.registerCommand("bb watch [player]", "Toggle the watch on [player]", plugin, permissions[0]);
            helpPlugin.registerCommand("bb watched", "Displays the list of watched players", plugin, permissions[1]);
            helpPlugin.registerCommand("bb unwatched", "Displays the list of unwatched players", plugin, permissions[1]);
            helpPlugin.registerCommand("bb stick (#)", "Tools to examine block history", plugin, true, permissions[1]);
            helpPlugin.registerCommand("bb here", "An overview of the block history around you", plugin, true, permissions[1]);
            helpPlugin.registerCommand("bb here [#]", "An overview of [#] blocks around you", plugin, permissions[1]);
            helpPlugin.registerCommand("bb here [player]", "Displays [player]'s changes around you", plugin, permissions[1]);
            helpPlugin.registerCommand("bb here [player] [#]", "Displays [player]'s changes within [#] blocks", plugin, permissions[1]);
            helpPlugin.registerCommand("bb find [x] [y] [z]", "Displays changes around [x] [y] [z]", plugin, permissions[1]);
            helpPlugin.registerCommand("bb find [x] [y] [z] [player]", "Displays [player]'s changes around [x] [y] [z]", plugin, permissions[1]);
            helpPlugin.registerCommand("bb rollback (players) (t) (r) (id)", "Perform a rollback with given arguments", plugin, permissions[2]);
            helpPlugin.registerCommand("bb undo", "Undoes the most recent rollback", plugin, permissions[2]);
            helpPlugin.registerCommand("bb cleanse", "Cleanse the database", plugin, permissions[3]);
            helpPlugin.registerCommand("bb log", "Gives you a log for inspecting non-solid blocks", plugin, permissions[1]);
            BBLogging.info("'Help' support enabled");
        } else {
            BBLogging.warning("'Help' isn't detected. No /help support");
        }
    }
View Full Code Here


    public static void initialize(Plugin plugin) {
        Plugin test = plugin.getServer().getPluginManager().getPlugin("Help");
        if (test != null) {
            Logger log = Logger.getLogger("Minecraft");
            Help helpPlugin = ((Help) test);
            helpPlugin.registerCommand("warp help", "Help for all /warp commands", plugin, true);
            helpPlugin.registerCommand("warp [name]", "Warp to [name]", plugin, "mywarp.warp.basic.warp");
            helpPlugin.registerCommand("warp [player] [name]", "Warp [player] to [name]", plugin, "mywarp.admin");
            helpPlugin.registerCommand("warp create [name]", "Create a new warp called [name]", plugin, "mywarp.warp.basic.createpublic", "mywarp.warp.basic.createprivate");
            helpPlugin.registerCommand("warp pcreate [name]", "Create a new private warp called [name]", plugin, "mywarp.warp.basic.createprivate");
            helpPlugin.registerCommand("warp delete [name]", "Deletes the warp [name]", plugin, "mywarp.warp.basic.delete");
            helpPlugin.registerCommand("warp welcome [name]", "Change the welcome message for [name]", plugin, "mywarp.warp.basic.welcome");
            helpPlugin.registerCommand("warp point [name]", "Point your compass to [name]", plugin, "mywarp.warp.basic.compass");
            helpPlugin.registerCommand("warp list (#)", "List the warps you can visit", plugin, "mywarp.warp.basic.list");
            helpPlugin.registerCommand("warp search [query]", "Searches for warps related to [query]", plugin, "mywarp.warp.basic.search");
            helpPlugin.registerCommand("warp give [player] [name]", "Give your warp [name] to [player]", plugin, "mywarp.warp.soc.give");
            helpPlugin.registerCommand("warp invite [player] [name]", "Invite [player] to [name]", plugin, "mywarp.warp.soc.invite");
            helpPlugin.registerCommand("warp uninvite [player] [name]", "Uninvite [player] from [name]", plugin, "mywarp.warp.soc.uninvite");
            helpPlugin.registerCommand("warp public [name]", "Make [name] a public warp", plugin, "mywarp.warp.soc.public");
            helpPlugin.registerCommand("warp private [name]", "Make [name] a private warp", plugin, "mywarp.warp.soc.private");
            helpPlugin.registerCommand("warp convert", "Converts your warps from warps.txt", plugin, "mywarp.admin");

            log.log(Level.INFO, "[MYWARP] 'Help' support enabled.");
        } else {
            Logger log = Logger.getLogger("Minecraft");
            log.log(Level.WARNING, "[MYWARP] 'Help' isn't detected. No /help support.");
View Full Code Here

TOP

Related Classes of me.taylorkelly.help.Help

Copyright © 2018 www.massapicom. 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.