mirror of
https://github.com/TotalFreedomMC/OpenInv.git
synced 2024-12-22 16:05:03 +00:00
Minor no permissions message change
This commit is contained in:
parent
120b35d394
commit
bc40e91215
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ public class OpenEnderPluginCommand implements CommandExecutor {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!OpenInv.hasPermission(sender, Permissions.PERM_ENDERCHEST)) {
|
if (!OpenInv.hasPermission(sender, Permissions.PERM_ENDERCHEST)) {
|
||||||
sender.sendMessage(ChatColor.RED + "You do not have permission to access player enderchests.");
|
sender.sendMessage(ChatColor.RED + "You do not have permission to access player ender chests.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,13 +129,13 @@ public class OpenEnderPluginCommand implements CommandExecutor {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target != player && !OpenInv.hasPermission(player, Permissions.PERM_ENDERCHEST_ALL)) {
|
if (target != player && !OpenInv.hasPermission(player, Permissions.PERM_ENDERCHEST_ALL)) {
|
||||||
player.sendMessage(ChatColor.RED + "You do not have permission to access other player's enderchest");
|
player.sendMessage(ChatColor.RED + "You do not have permission to access other player's ender chests");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Permissions checks
|
// Permissions checks
|
||||||
if (!OpenInv.hasPermission(player, Permissions.PERM_OVERRIDE) && OpenInv.hasPermission(target, Permissions.PERM_EXEMPT)) {
|
if (!OpenInv.hasPermission(player, Permissions.PERM_OVERRIDE) && OpenInv.hasPermission(target, Permissions.PERM_EXEMPT)) {
|
||||||
player.sendMessage(ChatColor.RED + target.getDisplayName() + "'s enderchest is protected!");
|
player.sendMessage(ChatColor.RED + target.getDisplayName() + "'s ender chest is protected!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue