SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2020-07-30 20:49:56 +02:00
Ursprung 1e327c3588
Commit ed025915a6

Datei anzeigen

@ -3,6 +3,7 @@ package de.steamwar.fightsystem.listener;
import de.steamwar.fightsystem.states.FightState; import de.steamwar.fightsystem.states.FightState;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.entity.FoodLevelChangeEvent; import org.bukkit.event.entity.FoodLevelChangeEvent;
import org.bukkit.event.entity.SpawnerSpawnEvent;
import org.bukkit.event.weather.WeatherChangeEvent; import org.bukkit.event.weather.WeatherChangeEvent;
import java.util.EnumSet; import java.util.EnumSet;
@ -22,4 +23,9 @@ public class FoodLevelChangeListener extends BasicListener {
public void onWeatherChange(WeatherChangeEvent event){ public void onWeatherChange(WeatherChangeEvent event){
event.setCancelled(true); event.setCancelled(true);
} }
@EventHandler
public void onSpawnerSpawn(SpawnerSpawnEvent e){
e.setCancelled(true);
}
} }