Added 1.7.2 support, added old files.
This commit is contained in:
@@ -47,7 +47,7 @@ public class OpenEnderPluginCommand implements CommandExecutor
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!sender.hasPermission(Permissions.PERM_ENDERCHEST))
|
||||
if (!OpenInv.hasPermission(sender, Permissions.PERM_ENDERCHEST))
|
||||
{
|
||||
sender.sendMessage(ChatColor.RED + "You do not have permission to access player enderchest");
|
||||
return true;
|
||||
@@ -108,6 +108,12 @@ public class OpenEnderPluginCommand implements CommandExecutor
|
||||
}
|
||||
}
|
||||
|
||||
if (target != sender && !OpenInv.hasPermission(sender, Permissions.PERM_ENDERCHEST_ALL))
|
||||
{
|
||||
sender.sendMessage(ChatColor.RED + "You do not have permission to access other player's enderchest");
|
||||
return true;
|
||||
}
|
||||
|
||||
// Record the target
|
||||
history = target.getName();
|
||||
openEnderHistory.put(player, history);
|
||||
|
Reference in New Issue
Block a user