SteamWar/FightSystem
Archiviert
13
1

RecordSystem (Beta) #199

Manuell gemergt
Lixfel hat 40 Commits von recordSystem nach master 2020-11-01 20:11:45 +01:00 zusammengeführt
2 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
Nur Änderungen aus Commit c68d967a82 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -60,6 +60,14 @@ public class EventRecordListener extends BasicListener {
RecordSystem.playerJoins(e.getPlayer()); RecordSystem.playerJoins(e.getPlayer());
} }
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerLeave(PlayerQuitEvent e) {
if(isNotSent(e.getPlayer()))
return;
RecordSystem.entityDespawns(e.getPlayer());
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onPlayerMove(PlayerMoveEvent e){ public void onPlayerMove(PlayerMoveEvent e){
if(isNotSent(e.getPlayer())) if(isNotSent(e.getPlayer()))

Datei anzeigen

@ -168,7 +168,6 @@ public class RecordSystem {
Recorder.rByte(pos.getY()); Recorder.rByte(pos.getY());
Recorder.rByte(pos.getZ()); Recorder.rByte(pos.getZ());
Recorder.rShort((short)blockState); Recorder.rShort((short)blockState);
Recorder.flush();
}else{ }else{
//Block packet //Block packet
Recorder.rByte(0x30); Recorder.rByte(0x30);
@ -176,8 +175,8 @@ public class RecordSystem {
Recorder.rByte(pos.getY()); Recorder.rByte(pos.getY());
Recorder.rInt(pos.getZ()); Recorder.rInt(pos.getZ());
Recorder.rInt(blockState); Recorder.rInt(blockState);
Recorder.flush();
} }
Recorder.flush();
} }
public static synchronized void particle(double x, double y, double z, String particleType){ public static synchronized void particle(double x, double y, double z, String particleType){