Update BedWars.java
This commit is contained in:
parent
a7e07a123b
commit
fea257f914
@ -8,10 +8,8 @@ import org.bukkit.entity.Entity;
|
|||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
import rip.tilly.bedwars.listeners.game.GameEndListener;
|
import rip.tilly.bedwars.listeners.game.*;
|
||||||
import rip.tilly.bedwars.listeners.game.GameStartListener;
|
|
||||||
import rip.tilly.bedwars.listeners.*;
|
import rip.tilly.bedwars.listeners.*;
|
||||||
import rip.tilly.bedwars.listeners.game.WorldListener;
|
|
||||||
import rip.tilly.bedwars.managers.CommandManager;
|
import rip.tilly.bedwars.managers.CommandManager;
|
||||||
import rip.tilly.bedwars.managers.GameManager;
|
import rip.tilly.bedwars.managers.GameManager;
|
||||||
import rip.tilly.bedwars.managers.PlayerDataManager;
|
import rip.tilly.bedwars.managers.PlayerDataManager;
|
||||||
@ -127,7 +125,8 @@ public final class BedWars extends JavaPlugin {
|
|||||||
private void loadListeners() {
|
private void loadListeners() {
|
||||||
Arrays.asList(
|
Arrays.asList(
|
||||||
new PlayerDataListener(), new RandomListeners(), new InteractListener(), new ButtonListener(),
|
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));
|
).forEach(listener -> this.getServer().getPluginManager().registerEvents(listener, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user