Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main extends JavaPlugin implements Listener{
- static FileConfiguration config;
- public void onEnable()
- {
- config = getConfig();
- Bukkit.getServer().getPluginManager().registerEvents(this, this);
- }
- public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
- {
- Player player = (Player) sender;
- if( command.getName().equalsIgnoreCase("rtp") )
- {
- if( args != null && args[1].equals("pos") )
- {
- if( player.isOp() || player.hasPermission("rubukkit.admin") )
- {
- //config.set("", arg1);
- }
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement