General refactoring + minor changes #26

Merged
ShadowRanger merged 3 commits from master into master 2015-06-22 06:30:14 -04:00
16 changed files with 50 additions and 49 deletions
Showing only changes of commit bc40e91215 - Show all commits

View File

@@ -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;
} }