SteamWar/FightSystem
Archiviert
13
1
Dieser Commit ist enthalten in:
Chaoscaot 2020-12-30 13:41:17 +01:00
Ursprung 250c429a51
Commit dea991d7d7
2 geänderte Dateien mit 3 neuen und 9 gelöschten Zeilen

Datei anzeigen

@ -69,7 +69,6 @@ public class FightSystem extends JavaPlugin {
TechHider.init(); TechHider.init();
FightScoreboard.init(); FightScoreboard.init();
RecordSystem.init(); RecordSystem.init();
ArrowStopper.init();
try { try {
CommandRemover.removeAll("gamemode"); CommandRemover.removeAll("gamemode");
@ -101,6 +100,7 @@ public class FightSystem extends JavaPlugin {
new GameplayListener(); new GameplayListener();
new PersonalKitCreator(); new PersonalKitCreator();
new ScoreboardListener(); new ScoreboardListener();
new ArrowStopper();
if(Core.getVersion() > 8) if(Core.getVersion() > 8)
new VersionDependentListener(); new VersionDependentListener();

Datei anzeigen

@ -39,14 +39,8 @@ public class ArrowStopper extends BasicListener {
private BukkitTask task; private BukkitTask task;
private static final HashMap<Entity, Location> LAST_LOCATION = new HashMap<>(); private static final HashMap<Entity, Location> LAST_LOCATION = new HashMap<>();
ArrowStopper() { public ArrowStopper() {
super(EnumSet.of(FightState.RUNNING)); super(Config.ArrowTechhiderCollision != 0 ? EnumSet.of(FightState.RUNNING) : EnumSet.noneOf(FightState.class));
}
public static void init() {
if(Config.ArrowTechhiderCollision == 0)
return;
FightSystem.registerStateDependent(new ArrowStopper());
} }
private void run() { private void run() {