Update BedWars.java

This commit is contained in:
Luca 2021-11-22 13:06:08 +01:00
parent a7e07a123b
commit fea257f914

View File

@ -8,10 +8,8 @@ import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import rip.tilly.bedwars.listeners.game.GameEndListener;
import rip.tilly.bedwars.listeners.game.GameStartListener;
import rip.tilly.bedwars.listeners.game.*;
import rip.tilly.bedwars.listeners.*;
import rip.tilly.bedwars.listeners.game.WorldListener;
import rip.tilly.bedwars.managers.CommandManager;
import rip.tilly.bedwars.managers.GameManager;
import rip.tilly.bedwars.managers.PlayerDataManager;
@ -127,7 +125,8 @@ public final class BedWars extends JavaPlugin {
private void loadListeners() {
Arrays.asList(
new PlayerDataListener(), new RandomListeners(), new InteractListener(), new ButtonListener(),
new GameStartListener(), new GameEndListener(), new WorldListener()
new GameStartListener(), new GameEndListener(), new WorldListener(), new MovementListener(),
new PlayerKillListener()
).forEach(listener -> this.getServer().getPluginManager().registerEvents(listener, this));
}