Teams Plugin Coding Help

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

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

    9190281

    Hello,
    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 com.game.sutton.jakob; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.plugin.java.JavaPlugin; 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