The problem was that if a scoreboard team is sent while it's already registered, the player will disconnect. Since there does not appear to be any downside to never removing the team, we just won't remove the team, and send the team only once. If there are any problems with this in the future, we can implement a smart solution which will be able to handle the packet sending properly.
20 lines
288 B
Java
Executable File
20 lines
288 B
Java
Executable File
/*
|
|
* Copyright (c) 2018 Jitse Boonstra
|
|
*/
|
|
|
|
package net.jitse.npclib.internal;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
/**
|
|
* @author Jitse Boonstra
|
|
*/
|
|
interface PacketHandler {
|
|
|
|
void createPackets();
|
|
|
|
void sendShowPackets(Player player);
|
|
|
|
void sendHidePackets(Player player);
|
|
}
|