1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-05 02:21:38 +02:00

Round 1 of fixing getPlayer in commands

This commit is contained in:
Iaccidentally
2012-07-22 14:54:18 -04:00
parent 13b9bc600a
commit fc6acc9af8
32 changed files with 38 additions and 36 deletions

View File

@@ -18,7 +18,7 @@ public class Commandtpahere extends EssentialsCommand
}
@Cleanup
final IUser player = getPlayer(args, 0);
final IUser player = ess.getUserMap().matchUser(args[0], false, false);
player.acquireReadLock();
if (!player.getData().isTeleportEnabled())
{