Asynchronous offline player lookup #21

Merged
Phoenix616 merged 8 commits from master into master 2015-05-27 01:09:41 -04:00
21 changed files with 124 additions and 62 deletions
Showing only changes of commit 4013098201 - Show all commits

View File

@@ -122,6 +122,12 @@ public class OpenEnderPluginCommand implements CommandExecutor {
return;
}
// 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;
}
// Record the target
openEnderHistory.put(player, target.getName());