Advertisement
Guest User

Untitled

a guest
Feb 1st, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. package me.bizzon.first;
  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.entity.Player;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class First extends JavaPlugin {
  11.  
  12. public void onEnable() {
  13. Bukkit.getServer().getLogger().info("Test Plugin Enabled");
  14. }
  15.  
  16. public void onDisable() {
  17. Bukkit.getServer().getLogger().info("Test Plugin Disabled");
  18. }
  19.  
  20. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
  21.  
  22. if (!(sender instanceof Player)) {
  23. sender.sendMessage(ChatColor.AQUA +"Console Ran The Command!");
  24. return true;
  25. }
  26.  
  27. Player player = (Player) sender;
  28.  
  29. if (cmd.getName().equalsIgnoreCase("plugins")) {
  30. player.sendMessage(ChatColor.AQUA +"Coded By Bizzon");
  31. }
  32. return true;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement