mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Updating permissions for the /mcrefresh command.
This commit is contained in:
		@@ -19,7 +19,7 @@ public class McrefreshCommand implements CommandExecutor {
 | 
				
			|||||||
        PlayerProfile profile;
 | 
					        PlayerProfile profile;
 | 
				
			||||||
        String usage = LocaleLoader.getString("Commands.Usage.1", "mcrefresh", "[" + LocaleLoader.getString("Commands.Usage.Player") + "]");
 | 
					        String usage = LocaleLoader.getString("Commands.Usage.1", "mcrefresh", "[" + LocaleLoader.getString("Commands.Usage.Player") + "]");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (CommandHelper.noCommandPermissions(sender, "mcmmo.tools.mcrefresh")) {
 | 
					        if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh")) {
 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -36,6 +36,10 @@ public class McrefreshCommand implements CommandExecutor {
 | 
				
			|||||||
            break;
 | 
					            break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        case 1:
 | 
					        case 1:
 | 
				
			||||||
 | 
					            if (CommandHelper.noCommandPermissions(sender, "mcmmo.commands.mcrefresh.others")) {
 | 
				
			||||||
 | 
					                return true;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            player = mcMMO.p.getServer().getOfflinePlayer(args[0]);
 | 
					            player = mcMMO.p.getServer().getOfflinePlayer(args[0]);
 | 
				
			||||||
            profile = Users.getProfile(player);
 | 
					            profile = Users.getProfile(player);
 | 
				
			||||||
            String playerName = player.getName();
 | 
					            String playerName = player.getName();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -336,6 +336,9 @@ permissions:
 | 
				
			|||||||
            mcmmo.tools.mcremove: true
 | 
					            mcmmo.tools.mcremove: true
 | 
				
			||||||
    mcmmo.tools.mcrefresh:
 | 
					    mcmmo.tools.mcrefresh:
 | 
				
			||||||
        description: Allows access to mcrefresh command
 | 
					        description: Allows access to mcrefresh command
 | 
				
			||||||
 | 
					        children:
 | 
				
			||||||
 | 
					            mcmmo.commands.mcrefresh: true
 | 
				
			||||||
 | 
					            mcmmo.commands.mcrefresh.others: true
 | 
				
			||||||
    mcmmo.tools.mmoedit:
 | 
					    mcmmo.tools.mmoedit:
 | 
				
			||||||
        default: false
 | 
					        default: false
 | 
				
			||||||
        description: Allows access to mmoedit command
 | 
					        description: Allows access to mmoedit command
 | 
				
			||||||
@@ -716,6 +719,8 @@ permissions:
 | 
				
			|||||||
            mcmmo.commands.mcgod.others: true
 | 
					            mcmmo.commands.mcgod.others: true
 | 
				
			||||||
            mcmmo.commands.mcpurge: true
 | 
					            mcmmo.commands.mcpurge: true
 | 
				
			||||||
            mcmmo.commands.mcrank.others.all: true
 | 
					            mcmmo.commands.mcrank.others.all: true
 | 
				
			||||||
 | 
					            mcmmo.commands.mcrefresh: true
 | 
				
			||||||
 | 
					            mcmmo.commands.mcrefresh.others: true
 | 
				
			||||||
            mcmmo.commands.mmoedit: true
 | 
					            mcmmo.commands.mmoedit: true
 | 
				
			||||||
            mcmmo.commands.mmoedit.others: true
 | 
					            mcmmo.commands.mmoedit.others: true
 | 
				
			||||||
            mcmmo.commands.mmoupdate: true
 | 
					            mcmmo.commands.mmoupdate: true
 | 
				
			||||||
@@ -790,6 +795,10 @@ permissions:
 | 
				
			|||||||
        description: Allows access to the mcrank command for far players
 | 
					        description: Allows access to the mcrank command for far players
 | 
				
			||||||
    mcmmo.commands.mcrank.others.offline:
 | 
					    mcmmo.commands.mcrank.others.offline:
 | 
				
			||||||
        description: Allows access to the mcrank command for offline players
 | 
					        description: Allows access to the mcrank command for offline players
 | 
				
			||||||
 | 
					    mcmmo.commands.mcrefresh:
 | 
				
			||||||
 | 
					        description: Allows access to the mcrefresh command
 | 
				
			||||||
 | 
					    mcmmo.commands.mcrefresh.others:
 | 
				
			||||||
 | 
					        description: Allows access to the mcrefresh command for other players
 | 
				
			||||||
    mcmmo.commands.mcstats:
 | 
					    mcmmo.commands.mcstats:
 | 
				
			||||||
        description: Allows access to the mcstats command
 | 
					        description: Allows access to the mcstats command
 | 
				
			||||||
    mcmmo.commands.mctop:
 | 
					    mcmmo.commands.mctop:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user