Allow unlocking with /ulcs and remove potion effects on set disable
This commit is contained in:
parent
199747964e
commit
f32de9d37d
@ -34,6 +34,6 @@ class OutfitWindupSuit extends OutfitGadget
|
|||||||
@Override
|
@Override
|
||||||
public boolean ownsGadget(Player player)
|
public boolean ownsGadget(Player player)
|
||||||
{
|
{
|
||||||
return Manager.getDonationManager().Get(player).ownsUnknownSalesPackage(SetWindup.NAME);
|
return super.ownsGadget(player) || Manager.getDonationManager().Get(player).ownsUnknownSalesPackage(SetWindup.NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,8 @@ public class SetWindup extends GadgetSet
|
|||||||
super.customDisable(player);
|
super.customDisable(player);
|
||||||
|
|
||||||
_charge.remove(player);
|
_charge.remove(player);
|
||||||
|
player.removePotionEffect(PotionEffectType.SPEED);
|
||||||
|
player.removePotionEffect(PotionEffectType.JUMP);
|
||||||
UtilPlayer.removeWorldBorder(player);
|
UtilPlayer.removeWorldBorder(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user