http://jd.bukkit.org/doxygen/dd/daa/interfaceorg_1_1bukkit_1_1World.html#a658553aedb81f30c95d7178e26c450eb
mainPlugin is the field name of your Plugin instance;) If you use the code above in your main class you write: Player player =...
Player player = mainPlugin.getServer().getPlayer("Notch");
You have to use a constructor for your listener class. This constructor has to be directly below your field-declaration, in your case the...
Maybe after the player gets the damage set his health back to 20, indeed not the best solution i think but should work
Thanks!:)
Hello there, Since this is my first time doing things with config files I have a little question. So I have my Plugin and it is supposed to give...
player.sendMessage(ChatColor.RED + "Hello, " + ChatColor.BLUE + "Multivan!");
fireblast709 [Spoiler]
[Spoiler] Finally this should work now
DjTamo There is an InventoryClickEvent, InventoryOpenEvent and InventoryCloseEvent, so with a bit fantasy and a hashmap you should be able to...
Syntax error in fireblasts post: Should be: Syntax error! :D Updated code in post above!
I'm quite sure that both, fireblast and Muxon's code, should work now. I edited my code above so try it again :)
import java.util.HashMap; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.block.Block; import...
public class MyPlayerListener implements Listener { public static NoSpammer plugin; //declare the HashMap there, because we need only one...
Acer_Mortem I know the problem but for better helping purposes: could you please post your code snippet where the hashmap thing is now?:)
An empty item slot returns null :o
//First of all declare a HashMap HashMap<String, Long> countdown = new HashMap<String, Long>(); //Then when the explosion is called in your plugin...
So i think if he wants to use my code, he should check if there is no armor, no enchantments and stuff :3
in his second post he didn't mentioned that :b
Separate names with a comma.