RecordSystem (Beta) #199
@ -47,6 +47,8 @@ public class RecordSystem {
|
||||
Bukkit.getScheduler().runTaskTimer(FightSystem.getPlugin(), RecordSystem::checkWorldState, 1, 1);
|
||||
new SpectateConnection();
|
||||
new FileRecorder();
|
||||
if(Config.event())
|
||||
teamIds(Config.EventTeamBlueID, Config.EventTeamRedID);
|
||||
}
|
||||
|
||||
/*
|
||||
@ -76,6 +78,7 @@ public class RecordSystem {
|
||||
* SystemPacket (0xA2) + String message
|
||||
* BlueSchemPacket (0xB0) + int blueSchemId
|
||||
* RedSchemPacket (0xB1) + int redSchemId
|
||||
* TeamIDPacket (0xB2) + int blueTeamId, redTeamId
|
||||
* ScoreboardTitlePacket (0xC0) + String scoreboardTitle
|
||||
* ScoreboardDataPacket (0xC1) + String key + int value
|
||||
*
|
||||
@ -239,6 +242,13 @@ public class RecordSystem {
|
||||
Recorder.flush();
|
||||
}
|
||||
|
||||
public static synchronized void teamIds(int blueTeamId, int redTeamId) {
|
||||
Recorder.rByte(0xB2);
|
||||
Recorder.rInt(blueTeamId);
|
||||
Recorder.rInt(redTeamId);
|
||||
Recorder.flush();
|
||||
}
|
||||
|
||||
public static synchronized void scoreboardTitle(String title){
|
||||
Recorder.rByte(0xC0);
|
||||
Recorder.rString(title);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren