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

Datei anzeigen

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