try and catch f#delete();
You can use if(Sender instanceof Player){ Sender.getWorld().playEffect(Sender.getLocation(), Effect.SMOKE. 0); }
@EventHandler public void onHeathChange(EntityDamageEvent e){ if (e.getEntity() instanceof Player){ //Do stuff } }
Listen for a EntityDamageEvent and then check if it's a player
Solved the issue, mods please lock
Because it gets them from the other class, or does it?
Hello! When someone kills a zombie, its supposed to give them a set amount of money in the config, but instead it just puts the error "Could not...
Well, it crashes the whole plugin anyway :confused:
package me.Nathat23; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.entity.Player; import...
How do I Check if block is LAVA or STATIONARY_LAVA?
Hello, I am making a plugin that stops buckets from being used, and I can't stop lava from being placed using if (e.getItemInHand().getType() ==...
Separate names with a comma.