Revert "Hotfix everything that does not work"
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
This reverts commit 4cfd7402a4
.
Dieser Commit ist enthalten in:
Ursprung
4cfd7402a4
Commit
43f1ecc985
@ -94,7 +94,7 @@ public class BauSystem extends JavaPlugin implements Listener {
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
// LinkageUtils.unlink();
|
||||
LinkageUtils.unlink();
|
||||
|
||||
WorldData.write();
|
||||
Config.getInstance().saveAll();
|
||||
|
@ -34,7 +34,7 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class DetonatorCommand extends SWCommand {
|
||||
|
||||
public static ItemStack getWAND(Player player) {
|
||||
|
@ -38,7 +38,7 @@ import org.bukkit.event.player.PlayerSwapHandItemsEvent;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class DetonatorListener implements Listener {
|
||||
|
||||
static final Set<Player> HAS_UPDATED = new HashSet<>();
|
||||
|
@ -37,7 +37,7 @@ import java.util.HashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class KillcheckerCommand extends SWCommand implements Listener {
|
||||
|
||||
private Map<Region, KillcheckerVisualizer> visualizers = new HashMap<>();
|
||||
|
@ -171,7 +171,6 @@ public class Constants {
|
||||
|
||||
static {
|
||||
CONSTANTS.put("trace", player -> {
|
||||
if (true) return new ConstantBooleanValue(() -> false);
|
||||
Region region = Region.getRegion(player.getLocation());
|
||||
if (region.isGlobal()) {
|
||||
return new ConstantBooleanValue(() -> false);
|
||||
@ -179,7 +178,6 @@ public class Constants {
|
||||
return new ConstantBooleanValue(() -> Recorder.INSTANCE.get(region) instanceof ActiveTracer);
|
||||
});
|
||||
CONSTANTS.put("autotrace", player -> {
|
||||
if (true) return new ConstantBooleanValue(() -> false);
|
||||
Region region = Region.getRegion(player.getLocation());
|
||||
if (region.isGlobal()) {
|
||||
return new ConstantBooleanValue(() -> false);
|
||||
@ -187,12 +185,10 @@ public class Constants {
|
||||
return new ConstantBooleanValue(() -> Recorder.INSTANCE.get(region) instanceof AutoTraceRecorder);
|
||||
});
|
||||
CONSTANTS.put("trace_status", player -> {
|
||||
if (true) return new ConstantStringValue(() -> "");
|
||||
TraceRecorder recorder = Recorder.INSTANCE.get(Region.getRegion(player.getLocation()));
|
||||
return new ConstantStringValue(recorder::scriptState);
|
||||
});
|
||||
CONSTANTS.put("trace_time", player -> {
|
||||
if (true) return new ConstantLongValue(() -> 0L);
|
||||
TraceRecorder recorder = Recorder.INSTANCE.get(Region.getRegion(player.getLocation()));
|
||||
return new ConstantLongValue(recorder::scriptTime);
|
||||
});
|
||||
|
@ -35,7 +35,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class SimulatorCommand extends SWCommand {
|
||||
|
||||
public SimulatorCommand() {
|
||||
|
@ -48,7 +48,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class SimulatorStorage implements Enable, Disable {
|
||||
|
||||
public static final World WORLD = Bukkit.getWorlds().get(0);
|
||||
|
@ -35,7 +35,7 @@ import org.bukkit.inventory.PlayerInventory;
|
||||
|
||||
import java.util.function.Function;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class TNTSimulatorListener implements Listener {
|
||||
|
||||
private boolean permissionCheck(Player player) {
|
||||
|
@ -43,7 +43,7 @@ import java.util.function.BiFunction;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class TraceCommand extends SWCommand {
|
||||
|
||||
public TraceCommand() {
|
||||
|
@ -39,7 +39,7 @@ import org.bukkit.event.entity.EntitySpawnEvent;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class Recorder implements Listener {
|
||||
|
||||
public static Recorder INSTANCE;
|
||||
@ -108,6 +108,14 @@ public class Recorder implements Listener {
|
||||
}
|
||||
private static final DisabledTracerRecorder DISABLED = new DisabledTracerRecorder();
|
||||
|
||||
static Recorder instance;
|
||||
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
private final World world = Bukkit.getWorlds().get(0);
|
||||
|
||||
private Map<Region, TraceRecorder> regionTraceRecorderMap = new HashMap<>();
|
||||
private Map<TNTPrimed, Region> tntTraceRecorderMap = new HashMap<>();
|
||||
|
||||
|
@ -40,7 +40,7 @@ import yapion.hierarchy.types.YAPIONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class WarpCommand extends SWCommand implements Disable, Enable {
|
||||
|
||||
private static final String[] FORBIDDEN_NAMES = new String[]{
|
||||
|
@ -38,7 +38,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
// @Linked
|
||||
@Linked
|
||||
public class WarpListener implements Listener {
|
||||
|
||||
private Map<Player, REntityServer> warpEntityServer = new HashMap<>();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren