SteamWar/FightSystem
Archiviert
13
1

Fix leave messages
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-05 16:44:48 +01:00
Ursprung e66f108823
Commit 7822bb9651

Datei anzeigen

@ -85,13 +85,13 @@ public class Permanent implements Listener {
@EventHandler(priority = EventPriority.MONITOR)
public void handlePlayerDeath(PlayerDeathEvent event) {
if(Fight.fighting(event.getEntity()))
if(!Config.ArenaLeaveable || Fight.fighting(event.getEntity()))
event.setDeathMessage(null);
}
@EventHandler(priority = EventPriority.MONITOR)
public void handlePlayerLeave(PlayerQuitEvent event) {
if(Fight.fighting(event.getPlayer()))
if(!Config.ArenaLeaveable)
event.setQuitMessage(null);
}