Make sure in vault map is populated and queried with UUIDs, not names.

Resolves #116
This commit is contained in:
drtshock
2015-09-15 14:16:13 -05:00
parent 403f2bd75a
commit 32e7caf958
3 changed files with 5 additions and 5 deletions
@@ -24,7 +24,7 @@ public class VaultCommand implements CommandExecutor {
if (sender instanceof Player) {
Player player = (Player) sender;
if (PlayerVaults.getInstance().getInVault().containsKey(player.getName())) {
if (PlayerVaults.getInstance().getInVault().containsKey(player.getUniqueId().toString())) {
// don't let them open another vault.
return true;
}