SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-03-31 21:47:53 +02:00
Ursprung 8634db5d78
Commit 29a2b89a99
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -83,6 +83,10 @@ public class Permanent implements Listener {
} }
} }
public void handlePlayerLeave(PlayerQuitEvent event) {
event.setQuitMessage(null);
}
@EventHandler @EventHandler
public void handleFoodLevelChange(FoodLevelChangeEvent event) { public void handleFoodLevelChange(FoodLevelChangeEvent event) {
event.setCancelled(true); event.setCancelled(true);

Datei anzeigen

@ -37,8 +37,6 @@ public class SetupQuit implements Listener {
@EventHandler @EventHandler
public void handlePlayerQuit(PlayerQuitEvent event) { public void handlePlayerQuit(PlayerQuitEvent event) {
event.setQuitMessage(null);
Player player = event.getPlayer(); Player player = event.getPlayer();
FightTeam team = Fight.getPlayerTeam(player); FightTeam team = Fight.getPlayerTeam(player);
if(team == null) if(team == null)