+2
-1
@@ -41,6 +41,7 @@ import org.slf4j.Logger;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
// Powered by Servux(https://github.com/sakura-ryoko/servux)
|
||||
|
||||
@@ -50,7 +51,7 @@ public class ServuxEntityDataProtocol implements LeavesProtocol {
|
||||
|
||||
public static final int PROTOCOL_VERSION = 1;
|
||||
|
||||
private static final Map<UUID, Long> readingSessionKeys = new HashMap<>();
|
||||
private static final Map<UUID, Long> readingSessionKeys = new ConcurrentHashMap<>();
|
||||
|
||||
@ProtocolHandler.PlayerJoin
|
||||
public static void onPlayerJoin(ServerPlayer player) {
|
||||
|
||||
+4
-3
@@ -46,17 +46,18 @@ import org.leavesmc.leaves.protocol.servux.logger.DataLogger;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
@LeavesProtocol.Register(namespace = "servux")
|
||||
public class ServuxHudDataProtocol implements LeavesProtocol {
|
||||
|
||||
public static final int PROTOCOL_VERSION = 2;
|
||||
|
||||
private static final List<ServerPlayer> players = new ArrayList<>();
|
||||
private static final List<ServerPlayer> players = Collections.synchronizedList(new ArrayList<>());
|
||||
private static final int updateInterval = 80;
|
||||
|
||||
private static final HashMap<ServerPlayer, List<DataLogger.Type>> loggerPlayers = new HashMap<>();
|
||||
private static final HashMap<DataLogger.Type, DataLogger<?>> LOGGERS = new HashMap<>();
|
||||
private static final ConcurrentHashMap<ServerPlayer, List<DataLogger.Type>> loggerPlayers = new ConcurrentHashMap<>();
|
||||
private static final ConcurrentHashMap<DataLogger.Type, DataLogger<?>> LOGGERS = new ConcurrentHashMap<>();
|
||||
private static final Table<DataLogger.Type, ServerPlayer, Tag> DATA = HashBasedTable.create();
|
||||
|
||||
public static boolean refreshSpawnMetadata = false;
|
||||
|
||||
+1
-1
@@ -58,7 +58,7 @@ public class ServuxStructuresProtocol implements LeavesProtocol {
|
||||
public static final int PROTOCOL_VERSION = 2;
|
||||
private static final int updateInterval = 40;
|
||||
private static final Map<Integer, ServerPlayer> players = new ConcurrentHashMap<>();
|
||||
private static final Map<UUID, Map<ChunkPos, Timeout>> timeouts = new HashMap<>();
|
||||
private static final Map<UUID, Map<ChunkPos, Timeout>> timeouts = new ConcurrentHashMap<>();
|
||||
private static int retainDistance;
|
||||
|
||||
@ProtocolHandler.PlayerJoin
|
||||
|
||||
+2
-1
@@ -54,6 +54,7 @@ import org.leavesmc.leaves.protocol.servux.litematics.utils.ReplaceBehavior;
|
||||
import org.leavesmc.leaves.util.TagUtil;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
@LeavesProtocol.Register(namespace = "servux")
|
||||
public class ServuxLitematicsProtocol implements LeavesProtocol {
|
||||
@@ -61,7 +62,7 @@ public class ServuxLitematicsProtocol implements LeavesProtocol {
|
||||
public static final int PROTOCOL_VERSION = 1;
|
||||
|
||||
private static final CompoundTag metadata = new CompoundTag();
|
||||
private static final Map<UUID, Long> playerSession = new HashMap<>();
|
||||
private static final Map<UUID, Long> playerSession = new ConcurrentHashMap<>();
|
||||
|
||||
@ProtocolHandler.Init
|
||||
public static void init() {
|
||||
|
||||
Reference in New Issue
Block a user