Fixing
Dieser Commit ist enthalten in:
Ursprung
250c429a51
Commit
dea991d7d7
@ -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();
|
||||||
|
|
||||||
|
@ -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() {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren