Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.kyrp.MaxSpeedz;
- import org.bukkit.entity.Player;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.EventPriority;
- import org.bukkit.event.Listener;
- import org.bukkit.event.block.BlockPlaceEvent;
- import org.bukkit.potion.PotionEffect;
- import org.bukkit.potion.PotionEffectType;
- public class Events implements Listener {
- @EventHandler(priority = EventPriority.NORMAL)
- public void onBlockPlace(BlockPlaceEvent event) {
- Player player = event.getPlayer();
- sender.hasPermission("maxbuild.regen");
- player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 5000, 3));
- player.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 5000, 1));
- player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 5000, 1));
- player.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 5000, 1));
- player.addPotionEffect(new PotionEffect(PotionEffectType.WATER_BREATHING, 2000, 1));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement