Add smite command and a few other fixes

This commit is contained in:
2022-04-07 18:23:38 -05:00
parent 6f7fcc5b51
commit fb17c4c858
13 changed files with 263 additions and 76 deletions

View File

@ -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());
}