SteamWar/SpigotCore
Archiviert
13
0

Revert "Update CommonCore"
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

This reverts commit 0db2bee5c9.
Dieser Commit ist enthalten in:
Lixfel 2024-02-17 08:49:44 +01:00
Ursprung 0db2bee5c9
Commit ef03fcb23a
2 geänderte Dateien mit 16 neuen und 1 gelöschten Zeilen

@ -1 +1 @@
Subproject commit bfc72ddcb77199bbb8eb19bdfc50744f7234745a
Subproject commit 61ffbc2349bf2290b1e4f04f699d8002742fe642

Datei anzeigen

@ -38,6 +38,19 @@ import java.util.function.Function;
public class RPlayer extends REntity {
/*
private static final String SCOREBOARD_TEAMNAME = "Replay";
private static final Team team;
static {
if(FightScoreboard.getBukkit().getTeam(SCOREBOARD_TEAMNAME) == null)
team = FightScoreboard.getBukkit().registerNewTeam(SCOREBOARD_TEAMNAME);
else
team = FightScoreboard.getBukkit().getTeam(SCOREBOARD_TEAMNAME);
team.setNameTagVisibility(NameTagVisibility.NEVER);
}
*/
private static int skinPartsIndex() {
switch(Core.getVersion()) {
case 8:
@ -66,6 +79,7 @@ public class RPlayer extends REntity {
public RPlayer(REntityServer server, UUID uuid, String name, Location location) {
super(server, EntityType.PLAYER, uuid, location,0);
this.name = name;
//team.addEntry(name);
server.addEntity(this);
}
@ -84,6 +98,7 @@ public class RPlayer extends REntity {
@Override
void despawn(Consumer<Object> packetSink) {
//team.removeEntry(name);
super.despawn(packetSink);
packetSink.accept(ProtocolWrapper.impl.playerInfoPacketConstructor(ProtocolWrapper.PlayerInfoAction.REMOVE, new GameProfile(uuid, name), GameMode.CREATIVE));
}