world not work

This commit is contained in:
Max Lee 2015-04-03 01:32:10 +02:00
parent 6c1fb14cda
commit 56f633d58b

View file

@ -114,7 +114,7 @@ public class OpenInvPluginCommand implements CommandExecutor {
return;
}
// Crosswork check
// Crossworld check
if ((!OpenInv.hasPermission(player, Permissions.PERM_CROSSWORLD) && !OpenInv.hasPermission(player, Permissions.PERM_OVERRIDE)) && target.getWorld() != player.getWorld()) {
player.sendMessage(ChatColor.RED + target.getDisplayName() + " is not in your world!");
return;