Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2015
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. public class Main extends JavaPlugin implements Listener{
  2.    
  3.     static FileConfiguration config;
  4.    
  5.     public void onEnable()
  6.     {
  7.         config = getConfig();
  8.         Bukkit.getServer().getPluginManager().registerEvents(this, this);
  9.     }
  10.    
  11.     public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
  12.     {
  13.         Player player = (Player) sender;
  14.        
  15.         if( command.getName().equalsIgnoreCase("rtp") )
  16.         {
  17.             if( args != null && args[1].equals("pos") )
  18.             {
  19.                 if( player.isOp() || player.hasPermission("rubukkit.admin") )
  20.                 {
  21.                     //config.set("", arg1);
  22.                 }
  23.             }
  24.         }
  25.        
  26.         return true;
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement