Try: ((Player) sender).getName();
http://forums.bukkit.org/threads/solved-line-of-sight-help.34189/#post-631922 This code worked for me. It gets every block in the player's LOS and...
try if(event.getEntity() instanceof Player)
Oh, right, sorry. Try printing the value of Dueller.player since that's what seems to be throwing the exception.
Could it be that the loop is going from 0 to Duellers.size() and since the index starts at 0, the last index is size-1? That would throw a NPE...
Are you deleting the folder while running the plugin? If that's the case and you are using the /reload command, the plugin will first save the old...
Thanks, I'm taking a look at the source and the NativeMinecartMember class seems to be what I was looking for. It extends the minecart entity and...
Yeah, that might be it. I read somewhere it is possible to override classes to modify a creature's AI (and I guess it should work for everything...
Noted, thanks. Will check it out.
I've been trying to search the forums for hours and getting a Bad Gateway error everytime. I get that error too when I try to reply to threads so I'm...
Thanks, that's exactly what I needed to know. I'll stick to your method since I won't be saving/loading the file often, only when important changes...
Hmm... I see. I know the file is loaded only when you call .getConfig() or load it, but I didn't know how it was saved in memory. I thought it...
Then I should be reading/changing the YML files directly, right? My main concern is slowing the plugin down by making it read a long file over and...
Thanks for the reply. I guess I'll keep copying the data to maps and work with them, then save the data to the yml when important changes are made or...
(For the actual question skip to the last paragraph, the rest is an introduction) Hi, I'm new to this forum and this will be my first post here....
Separate names with a comma.