Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
e66f108823
Commit
7822bb9651
@ -85,13 +85,13 @@ public class Permanent implements Listener {
|
|||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void handlePlayerDeath(PlayerDeathEvent event) {
|
public void handlePlayerDeath(PlayerDeathEvent event) {
|
||||||
if(Fight.fighting(event.getEntity()))
|
if(!Config.ArenaLeaveable || Fight.fighting(event.getEntity()))
|
||||||
event.setDeathMessage(null);
|
event.setDeathMessage(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void handlePlayerLeave(PlayerQuitEvent event) {
|
public void handlePlayerLeave(PlayerQuitEvent event) {
|
||||||
if(Fight.fighting(event.getPlayer()))
|
if(!Config.ArenaLeaveable)
|
||||||
event.setQuitMessage(null);
|
event.setQuitMessage(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren