Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
set auto-team to false on join packet
Dieser Commit ist enthalten in:
Ursprung
daac2baf8e
Commit
933e8cbaed
@ -208,11 +208,13 @@ public class PlayerPackets {
|
||||
handler(new PacketHandler() {
|
||||
@Override
|
||||
public void handle(PacketWrapper wrapper) throws Exception {
|
||||
if (Via.getConfig().isAutoTeam()) {
|
||||
EntityTracker entityTracker = wrapper.user().get(EntityTracker.class);
|
||||
if (Via.getConfig().isAutoTeam()) {
|
||||
entityTracker.setAutoTeam(true);
|
||||
entityTracker.sendTeamPacket(true, false);
|
||||
entityTracker.setCurrentTeam("viaversion");
|
||||
} else {
|
||||
entityTracker.setAutoTeam(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren