Remove Hotfix for Simulator as it is no longer needed
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
d1b3fa2238
Commit
6172270a8d
@ -1,16 +0,0 @@
|
||||
package de.steamwar.bausystem.features.simulator;
|
||||
|
||||
import de.steamwar.bausystem.linkage.Disable;
|
||||
import de.steamwar.bausystem.linkage.LinkageType;
|
||||
import de.steamwar.bausystem.linkage.Linked;
|
||||
|
||||
@Linked(LinkageType.DISABLE_LINK)
|
||||
public class TNTSimulatorDisable implements Disable {
|
||||
|
||||
@Override
|
||||
public void disable() {
|
||||
for (TNTSimulator simulator : TNTSimulator.TNT_SIMULATOR_MAP.values()) {
|
||||
simulator.save();
|
||||
}
|
||||
}
|
||||
}
|
@ -23,6 +23,7 @@ package de.steamwar.bausystem.features.simulator;
|
||||
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.Permission;
|
||||
import de.steamwar.bausystem.linkage.Disable;
|
||||
import de.steamwar.bausystem.linkage.LinkageType;
|
||||
import de.steamwar.bausystem.linkage.Linked;
|
||||
import org.bukkit.FluidCollisionMode;
|
||||
@ -47,7 +48,8 @@ import static de.steamwar.bausystem.features.simulator.TNTSimulator.WAND;
|
||||
import static de.steamwar.bausystem.features.simulator.TNTSimulator.get;
|
||||
|
||||
@Linked(LinkageType.LISTENER)
|
||||
public class TNTSimulatorListener implements Listener {
|
||||
@Linked(LinkageType.DISABLE_LINK)
|
||||
public class TNTSimulatorListener implements Listener, Disable {
|
||||
|
||||
private boolean permissionCheck(Player player) {
|
||||
if (!Permission.hasPermission(player, Permission.WORLD)) {
|
||||
@ -142,4 +144,11 @@ public class TNTSimulatorListener implements Listener {
|
||||
public void onPlayerQuit(PlayerQuitEvent event) {
|
||||
get(event.getPlayer()).saveAndDelete();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void disable() {
|
||||
for (TNTSimulator simulator : TNTSimulator.TNT_SIMULATOR_MAP.values()) {
|
||||
simulator.save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren