Sleep Preventer #178
@ -12,7 +12,8 @@ public class SleepListener extends BasicListener{
|
||||
public SleepListener() {super(EnumSet.allOf(FightState.class));}
|
||||
@EventHandler
|
||||
public void onSleep(PlayerBedEnterEvent e) {
|
||||
Block b=e.getBed();
|
||||
b.getWorld().createExplosion(b.getLocation(),4.0F); //4==tnt => dosnt have any advantage in WS (noFire,sameStrength,moreInvSpace,selfDamage)
|
||||
e.setCancelled(true);
|
||||
//Block b=e.getBed();
|
||||
//b.getWorld().createExplosion(b.getLocation(),4.0F); //4==tnt => dosnt have any advantage in WS (noFire,sameStrength,moreInvSpace,selfDamage)
|
||||
}
|
||||
}
|
In neuem Issue referenzieren
Einen Benutzer sperren