Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (event.getSource().equals(ModDamageSource.causeBoundPlayer(player))) {
- BoundPlayersList.removeUsername(bound.getUUID());
- serverPlayerEntity.removePotionEffect(LifeBindingPotion.LIFE_DAMAGING_EFFECT.get());
- } else {
- if (player.getServer().getPlayerList().getPlayerByUUID(bound.getUUID()) == null) {
- BoundPlayersList.setUsername(bound.getUUID(), bound.getName());
- }
- /** Adds potion effect to bound player. */
- serverPlayerEntity.addPotionEffect(new EffectInstance(LifeBindingPotion.LIFE_DAMAGING_EFFECT.get(), 150));
- /** Removes potion from player who had died/triggered the event. */
- player.removePotionEffect(LifeBindingPotion.LIFE_DAMAGING_EFFECT.get());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement