Advertisement
Guest User

help

a guest
Nov 27th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. package me.yeezy.cookieclicker;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public class cookieclicker extends JavaPlugin {
  10.  
  11. public void onEnable() {
  12. getLogger().info(ChatColor.AQUA + "This plugin is created by simon989!");
  13. }
  14.  
  15. public void onDisable() {
  16.  
  17. }
  18.  
  19. public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  20. Player player = (Player) sender;
  21. if (label.equalsIgnoreCase("clickwar")) {
  22. if (args.length <= 0) {
  23. player.sendMessage(ChatColor.GOLD + "[" + ChatColor.YELLOW + "ClickWar" + ChatColor.GOLD + "]");
  24. player.sendMessage(ChatColor.AQUA + "Do " + ChatColor.DARK_AQUA + "/clickwar join " + ChatColor.AQUA + "to join the game!");
  25. player.sendMessage(ChatColor.AQUA + "Do " + ChatColor.DARK_AQUA + "/clickwar leave " + ChatColor.AQUA + "to leave the game!");
  26. } else
  27. if (args[0].equalsIgnoreCase("join"))
  28. player.sendMessage("you joined the game!"); {
  29. } else
  30. if (args[0].equalsIgnoreCase("leave"))
  31. player.sendMessage("you have left the game!"); {
  32.  
  33. }
  34. return true;
  35. }
  36. return true;
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement