Teams Plugin Coding Help

Discussion in 'Plugin Development' started by 9190281, Jan 4, 2014.

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


    I need some help on making the plugin Teamz for my server. Any help would be great, thanks.
    Below I have my code posted
    package; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import; public class Teamz extends JavaPlugin { @Override public void onEnable() { getLogger().info("onEnable has been invoked!"); } @Override public void onDisable() { getLogger().info("onDisable has been invoked!"); } @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (cmd.getName().equalsIgnoreCase("team new")){ // If the player typed /team new then create a new team return true; } //If this happened the function will return true. //If this hasn't happened the a value of false will be returned. return false; } }
  2. 9190281 likes this.
Thread Status:
Not open for further replies.

Share This Page