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:
@@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user