I got it solved but i can't figure out how to make the onPlayerMove not update when you look around. it would make the server alot faster.
i'm trying to just teleport the player as soon as he enters the area.
It's fully working when i do System.out.println(world); i get the expected string that i have in the config.yml
@Nukreeper64 do this: @EventHandler public void onPlayerJoin(PlayerJoinEvent event){ Player player = event.getPlayer();...
I checked if the config doubles, string and the ints were null and they weren't. Now this is my current code perhaps someone can find the problem...
It still gives me the same error. Yes with the if statement i had in my code <Edited by bwfcwalshy: Merged posts, please use the edit button...
Have you put your command in you're plugin.yml?
But is there any way to have some other kind of 1 second loop that you can use player.teleport in?
I actually have 2 problems one is public void timer() { final String world =...
I'm making a plugin for my server that gives that player an item a compass in this case and then they right click and select bla bla bla but for...
Thanks alot it saved me probably 3 hours of headaches!
Stacktrace: java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()Ljava/util/Collection; at...
I usally go and open the txt file and hit save as and then write the type of file in this case .yml
So i was making a plugin and i was gonig to get all the players online on the server and there was no error in code and in the console when i look...
Oh didn't even know the 1.7.10 was out :P Can't wait for the full version of minecraft 1.8 and bukkit :)
Thanks alot, helped alot! The getInteractedBlock doesn't exist I suppose i you mean't getClickedBlock() method. EDIT by Moderator: merged...
I would suggest you not to start at the hard stuff, start with the basics such as a command that replies back to you when you enter it or...
So i've googled for a while and i can't find how to get the location of the block when i left click i use the onPlayerUse(PlayerInteractEvent...
Separate names with a comma.