Allow unlocking with /ulcs and remove potion effects on set disable

This commit is contained in:
Sam 2018-04-28 16:13:14 +01:00 committed by Alexander Meech
parent 199747964e
commit f32de9d37d
2 changed files with 3 additions and 1 deletions

View File

@ -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);
} }
} }

View File

@ -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);
} }