untested rework of dependent scoreboard source
Dieser Commit ist enthalten in:
Ursprung
2b0f64d86d
Commit
5c0a8715fd
@ -3,6 +3,7 @@ package de.steamwar.scoreboard;
|
|||||||
import com.comphenix.protocol.PacketType;
|
import com.comphenix.protocol.PacketType;
|
||||||
import com.comphenix.protocol.ProtocolLibrary;
|
import com.comphenix.protocol.ProtocolLibrary;
|
||||||
import com.comphenix.protocol.events.PacketContainer;
|
import com.comphenix.protocol.events.PacketContainer;
|
||||||
|
import com.comphenix.protocol.reflect.StructureModifier;
|
||||||
import net.minecraft.server.v1_12_R1.IScoreboardCriteria;
|
import net.minecraft.server.v1_12_R1.IScoreboardCriteria;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -23,7 +24,8 @@ public class SWScoreboard_12 {
|
|||||||
createPacket.getStrings().write(0, "AAA");
|
createPacket.getStrings().write(0, "AAA");
|
||||||
createPacket.getIntegers().write(0, 0);
|
createPacket.getIntegers().write(0, 0);
|
||||||
createPacket.getStrings().write(1, title);
|
createPacket.getStrings().write(1, title);
|
||||||
createPacket.getEnumModifier(IScoreboardCriteria.EnumScoreboardHealthDisplay.class, 0).write(0, IScoreboardCriteria.EnumScoreboardHealthDisplay.INTEGER);
|
StructureModifier modifier = createPacket.getEnumModifier(IScoreboardCriteria.EnumScoreboardHealthDisplay.class, 0);
|
||||||
|
modifier.write(0, IScoreboardCriteria.EnumScoreboardHealthDisplay.INTEGER);
|
||||||
|
|
||||||
sendPacket(player, createPacket);
|
sendPacket(player, createPacket);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren