Posted March 3, 201411 yr Hello, The event PlayerInteractEvent is running multiple times. I want it to only show the message it says on right click once. Do I have to setup a cooldown or is there an easier way? (Code: https://github.com/wiggertolsma/usefullstuff/blob/master/src/main/java/ace/usefullstuff/events/ItemPickupHandler.java) Thanks! Follow me on twitter: https://twitter.com/CoderAce_
March 3, 201411 yr PlayerInteractEvent gets called twice, once on the client, once on the server. Just nest your chat messages in an if (world is or is not remote) statement. Done. http://i.imgur.com/NdrFdld.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.