PlayerInteractEvent spamming console

Discussion in 'Plugin Development' started by mc_myster, Dec 26, 2015.

Thread Status:
Not open for further replies.
  1. Offline


    @Xerox262 very true sir. Is all this that im doing going to stop the spam in console? @Mrs. bwfctower

    @Xerox262 @Mrs. bwfctower what you's have showed me did stop the spam, but now it has changed to my other playerinteractevent, this one is a sign click event.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Dec 27, 2015
  2. Offline


    Show your player interact event, the updated main one.
  3. Offline


    It isn't that hard to add an if statement :p You didn't even add what I told you :/
    It's as simple as :
    if(e.getAction.equals(Action.RIGHT_CLICK_BLOCK) || if(e.getAction.equals(Action.RIGHT_CLICK_AIR)){
    (Spelling mistakes included (Probably))

    And please don't call people that want to help you smartasses :/ They send those tutorials to help you, not to annoy you.
    Zombie_Striker likes this.
  4. Offline


    Although the .equals may work, since you're comparing Enums, use "==".
    Nibbit likes this.
  5. Offline


    heheh :p
  6. Offline


    @Nibbit i added that statement and it didn't fix it. @Xerox262 I checked to see if the Item was null and then checked to see if the itemmeta is null before it does the if statements, now it works fine, thanks guys! @Mrs. bwfctower
  7. Offline


    Happy to help, remember to set the thread to solved :)
  8. Offline


    You can leave that how it is, only those
    <sarcasm>That never has ben said before...</sarcasm>
Thread Status:
Not open for further replies.

Share This Page