Use correct getPlayer method to not match offline users.

This commit is contained in:
KHobbits 2013-03-20 01:04:35 +00:00
parent 889157371c
commit 353423efec
28 changed files with 52 additions and 50 deletions

View file

@ -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