SteamWar/SpigotCore
Archiviert
13
0

untested rework of dependent scoreboard source

Dieser Commit ist enthalten in:
BuildTools 2019-12-05 20:42:23 +01:00
Ursprung 17d8580d6e
Commit 60f93d0e3f

Datei anzeigen

@ -25,7 +25,7 @@ public class SWScoreboard_12 {
createPacket.getIntegers().write(0, 0);
createPacket.getStrings().write(1, title);
StructureModifier modifier = createPacket.getEnumModifier(IScoreboardCriteria.EnumScoreboardHealthDisplay.class, 0);
modifier.write(0, modifier.getTarget());
modifier.write(0, SWEnumScoreboardHealtyDisplay.INTEGER);
sendPacket(player, createPacket);
}
@ -46,5 +46,20 @@ public class SWScoreboard_12 {
}
}
static enum SWEnumScoreboardHealtyDisplay {
INTEGER("integer"),
HEARTS("hearts");
private String string;
private SWEnumScoreboardHealtyDisplay(String string) {
this.string = string;
}
public String getString() {
return string;
}
}
}