Library Simple and complex commands made easy

Discussion in 'Resources' started by teej107, Dec 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    teej107

    [​IMG]
    • Don't you hate having commands with a lot of arguments?
    • Are your commands a mess of if's and else's?
    • Are you annoyed that you have to check the argument length every time?
    • Are you tired of converting all the arguments into other Objects?
    [​IMG]
    With my ExecutorHandler library, you can easily make a command to give all your Players coal and send them a nasty holiday message! (or anything else :p)
    Code:
        @Executable(command = "gift for all players @ @ @...", permission = "gift.to.all")
        public boolean sendGift(CommandSender sender, Material material, int amount, String message)
        {
            ItemStack stack = new ItemStack(material, amount);
            for(Player p : Bukkit.getOnlinePlayers())
            {
                p.getInventory().addItem(stack);
            }
            Bukkit.broadcastMessage(ChatColor.translateAlternateColorCodes('&', message));
            return true;
        }
    ____________________________________________________​

    You can download the library and view the tutorial here: https://github.com/teej107/CommandExecutorHandler/wiki
     
    Orange Tabby likes this.
  2. Offline

    mcdorli

    No
    Nope
    Not even close
    No

    Nice lib tough.
     
    Sorceresofminecraft and teej107 like this.
  3. Offline

    Mrs. bwfctower

    Sweet.
     
    teej107 likes this.
    This is literally the one thing I DONT like about using the BukkitAPI... Awesome library!
     
    teej107 likes this.
  4. Lol
     
Thread Status:
Not open for further replies.

Share This Page