Kick non players and record more blocks (to prevent ghost blocks)
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
5b12e10b98
Commit
ea63704c38
@ -82,10 +82,15 @@ public class EventJoinListener extends BasicListener {
|
||||
FightPlayer fp = team.addMember(player);
|
||||
if(!team.hasTeamLeader())
|
||||
team.setLeader(fp);
|
||||
return;
|
||||
}
|
||||
|
||||
if(user.getId() == FightSystem.getEventFight().getKampfleiter())
|
||||
if(user.getId() == FightSystem.getEventFight().getKampfleiter()){
|
||||
FightSystem.setEventLeiter(player);
|
||||
return;
|
||||
}
|
||||
if(Config.SpectateSystem)
|
||||
player.kickPlayer("§cDu bist kein Kampfteilnehmer");
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -104,8 +104,7 @@ public class EventRecordListener extends BasicListener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlockPhysics(BlockPhysicsEvent e){
|
||||
if(e.getBlock() != e.getSourceBlock())
|
||||
return;
|
||||
if(e.getBlock() == e.getSourceBlock() || e.getChangedType() == Material.AIR)
|
||||
RecordSystem.blockChange(e.getBlock());
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren