Read your stacktrace. Caused by: java.lang.NullPointerException at com.division.fearforall.listeners.FFAPlayerListener.onPlayerTeleport(...
Do what kumpelblase2 said and check if the block they click is null before you check what material it is.
Nested for loops using the player's location variables
Try something like this by chasechocolate https://forums.bukkit.org/threads/class-anvilgui-use-the-anvil-gui-to-retrieve-strings.211849/
Something like this would be very simple for you since you have already coded this: http://dev.bukkit.org/bukkit-plugins/butter-slap/ Most of the...
Use PacketPlayOutWorldParticles instead of Packet63WorldParticles like Techy said. Also you don't need to use reflection, set all the values using...
I tweaked it quite a bit, and it's good enough for what I need.
I need to place something relative to the player, and I need to place it differently depending on the direction they are facing.
Thanks for the help. I did search beforehand, lol. Thanks, the second one helped a lot :D EDIT by Moderator: merged posts, please use the edit...
In my plugin, I need to get the direction the player is facing, so either North, South, East or West. I have tried to do this, but the closest I...
I am trying to do something when a player enters an end portal. I have tried using the code below, but nothing happens. I have tried printing out...
Have you tried updating the player's inventory? It would also be a good idea to store the player in a variable so you don't need to keep getting...
To save calling the method getItems() each time you give items, you should probably save the ArrayList it returns to a global variable when you...
Try something like this. config.yml rewards: items: - obsidianitemid, obsidianamount - diamonditemid, diamondamount Java Code:...
There is a way of laying out lists in the config file and using a function to get all the elements as a list. Looking into that might help.
I was just using what he has in his code. I know that bukkit says it for you, I was writing for what he already has.
This is kind of messy and untested, but give it a go. @Override public boolean onCommand(CommandSender sender, Command command, String label,...
First of all, you should create a config file in your src folder. Make sure you refresh the project when you are finished the next step. Then you...
Create the inventory on your onEnable method, then in your event handler just get the player to open it. At the moment you are just creating the...
I am using a hashmap to store locations of signs but I am having trouble saving the data when the server reloads or restarts, then loading it up...
Separate names with a comma.