Guest User

Untitled

a guest
Jan 23rd, 2016
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.renovirus.myplugin;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.permissions.Permissible;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class BusinessMe extends JavaPlugin{
  11. Logger log = Logger.getLogger("Minecraft");
  12.  
  13. @Override
  14. public void onEnable(){
  15. log.info("[BusinessMe] Is now enabled!");
  16. }
  17.  
  18. @Override
  19. public void onDisable(){
  20. log.info("[BusinessMe] Is now disabled!");
  21.  
  22. }
  23. @SuppressWarnings("null")
  24. @Override
  25. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  26. if (args.length > 1) {
  27. sender.sendMessage("Too many arguments!");
  28. return false;
  29. }
  30. if (args.length < 1) {
  31. sender.sendMessage("Not enough arguments!");
  32. return false;
  33. }
  34. Permissible player = null;
  35. if(player.hasPermission("Business.Create")) {
  36. //message ("You have created a business!")
  37. } else {
  38. //message ("You do not have permission to perform this command!")
  39. }
  40. return false;
  41. }
  42.  
  43.  
  44. }
RAW Paste Data