mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-05 00:56:42 +00:00
Add smite command and a few other fixes
This commit is contained in:
@ -135,6 +135,10 @@ public class PunishmentManager extends PlexBase
|
||||
|
||||
public boolean isBanned(UUID uuid)
|
||||
{
|
||||
/*if (!DataUtils.hasPlayedBefore(uuid))
|
||||
{
|
||||
return false;
|
||||
}*/
|
||||
return DataUtils.getPlayer(uuid).getPunishments().stream().anyMatch(punishment -> punishment.getType() == PunishmentType.BAN && punishment.isActive());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user