Advertisement
CreepersGamingMc

Untitled

Jun 10th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. package me.CreepersGamingMc.main;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.ChatColor;
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public class Test extends JavaPlugin {
  10.  
  11. public void onEnable() {
  12. Bukkit.getLogger().info(ChatColor.GOLD + "Test2 Enabled");
  13.  
  14. }
  15. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
  16. if (cmd.getName().equalsIgnoreCase("hi"))
  17. sender.sendMessage(ChatColor.AQUA + ("This server rocks!"));
  18. return true;
  19. }
  20. public void onDisable() {
  21. Bukkit.getLogger().info(ChatColor.GOLD + "Test2 Disabled");
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement