mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-31 20:33:52 -07:00
[SPIGOT-946] Begin making use of access transforms to simplify patching.
This commit is contained in:
@@ -27,23 +27,15 @@
|
||||
public abstract class PlayerList {
|
||||
|
||||
public static final File a = new File("banned-players.json");
|
||||
@@ -27,14 +47,14 @@
|
||||
@@ -27,7 +47,7 @@
|
||||
private static final Logger f = LogManager.getLogger();
|
||||
private static final SimpleDateFormat g = new SimpleDateFormat("yyyy-MM-dd \'at\' HH:mm:ss z");
|
||||
private final MinecraftServer server;
|
||||
- private final List<EntityPlayer> players = Lists.newArrayList();
|
||||
+ public final List<EntityPlayer> players = new java.util.concurrent.CopyOnWriteArrayList(); // CraftBukkit - ArrayList -> CopyOnWriteArrayList: Iterator safety, public
|
||||
- public final List<EntityPlayer> players = Lists.newArrayList();
|
||||
+ public final List<EntityPlayer> players = new java.util.concurrent.CopyOnWriteArrayList(); // CraftBukkit - ArrayList -> CopyOnWriteArrayList: Iterator safety
|
||||
private final Map<UUID, EntityPlayer> j = Maps.newHashMap();
|
||||
private final GameProfileBanList k;
|
||||
private final IpBanList l;
|
||||
private final OpList operators;
|
||||
private final WhiteList whitelist;
|
||||
private final Map<UUID, ServerStatisticManager> o;
|
||||
- private IPlayerFileData playerFileData;
|
||||
+ public IPlayerFileData playerFileData; // CraftBukkit - public
|
||||
private boolean hasWhitelist;
|
||||
protected int maxPlayers;
|
||||
private int r;
|
||||
@@ -42,7 +62,15 @@
|
||||
private boolean t;
|
||||
private int u;
|
||||
@@ -121,7 +113,7 @@
|
||||
playerconnection.a(entityplayer.locX, entityplayer.locY, entityplayer.locZ, entityplayer.yaw, entityplayer.pitch);
|
||||
this.b(entityplayer, worldserver);
|
||||
if (this.server.getResourcePack().length() > 0) {
|
||||
@@ -126,9 +168,11 @@
|
||||
@@ -126,6 +168,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,11 +121,7 @@
|
||||
+ PlayerList.f.info(entityplayer.getName() + "[" + s1 + "] logged in with entity id " + entityplayer.getId() + " at ([" + entityplayer.world.worldData.getName() + "]" + entityplayer.locX + ", " + entityplayer.locY + ", " + entityplayer.locZ + ")");
|
||||
}
|
||||
|
||||
- protected void sendScoreboard(ScoreboardServer scoreboardserver, EntityPlayer entityplayer) {
|
||||
+ public void sendScoreboard(ScoreboardServer scoreboardserver, EntityPlayer entityplayer) { // CraftBukkit - public
|
||||
HashSet hashset = Sets.newHashSet();
|
||||
Iterator iterator = scoreboardserver.getTeams().iterator();
|
||||
|
||||
public void sendScoreboard(ScoreboardServer scoreboardserver, EntityPlayer entityplayer) {
|
||||
@@ -158,6 +202,7 @@
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user