mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
Use correct getPlayer method to not match offline users.
This commit is contained in:
parent
889157371c
commit
353423efec
28 changed files with 52 additions and 50 deletions
|
@ -24,7 +24,7 @@ public class Commandtempban extends EssentialsCommand
|
|||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final User user = getPlayer(server, args, 0, true);
|
||||
final User user = getPlayer(server, args, 0, true, true);
|
||||
if (!user.isOnline())
|
||||
{
|
||||
if (sender instanceof Player
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue