@ -2507,13 +2515,15 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
if(ev.getCause()==DamageCause.VOID){
Locationp_loc=p.getLocation();
doubletotalmoney=getPlayerMoney(p);
if(totalmoney>=0.01){
p_loc.setY(0);
p.teleport(p_loc);
p.addPotionEffect(newPotionEffect(PotionEffectType.SLOW,20*2/*Approx 2 sec of no movement.*/,10));
p.addPotionEffect(newPotionEffect(PotionEffectType.REGENERATION,20*18/*Approx 18 sec to reach height 100*/,6));
p.addPotionEffect(newPotionEffect(PotionEffectType.LEVITATION,20*18/*Approx 18 sec to reach height 100*/,6));
p.addPotionEffect(newPotionEffect(PotionEffectType.DAMAGE_RESISTANCE,20*26/*Reduces fall damage temporarily.*/,500));
DecimalFormatdf=newDecimalFormat("0.00");
doubletotalmoney=getPlayerMoney(p);
doublerand_amt=0.0;
if(totalmoney>5){
rand_amt=Math.random()*5;
@ -2529,6 +2539,9 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
}
}}
,40);
}else{
p.sendMessage(ChatColor.RED+""+ChatColor.ITALIC+"A Mysterious Entity looks at your empty pockets with disdain, then laughs chaotically as you fall to your doom.");
}
}
//See if we're in a party with a defender.
@ -5045,8 +5058,8 @@ public class TwosideKeeper extends JavaPlugin implements Listener {