Hotfix scoreboard
Dieser Commit ist enthalten in:
Ursprung
0de9f9bb06
Commit
9b01caa1b6
@ -27,7 +27,6 @@ import com.comphenix.protocol.wrappers.WrappedChatComponent;
|
|||||||
import de.steamwar.core.Core;
|
import de.steamwar.core.Core;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.scoreboard.RenderType;
|
|
||||||
|
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -123,6 +122,11 @@ public class SWScoreboard {
|
|||||||
REMOVE
|
REMOVE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private enum RenderType{
|
||||||
|
INTEGER,
|
||||||
|
HEART
|
||||||
|
}
|
||||||
|
|
||||||
private static void setScoreboardConstants(int id){
|
private static void setScoreboardConstants(int id){
|
||||||
DELETE_SCOREBOARD[id] = manager.createPacket(PacketType.Play.Server.SCOREBOARD_OBJECTIVE);
|
DELETE_SCOREBOARD[id] = manager.createPacket(PacketType.Play.Server.SCOREBOARD_OBJECTIVE);
|
||||||
DELETE_SCOREBOARD[id].getStrings().write(0, SIDEBAR + id);
|
DELETE_SCOREBOARD[id].getStrings().write(0, SIDEBAR + id);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren