[LibsDisguises] PlayerToggleSprintEvent?

Discussion in 'Plugin Development' started by 000nick, May 5, 2014.

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

    000nick

    So basically, I am trying to make it so when you run, you turn into ocelot and it sets the player's walk speed to 2. However it just gives me EventException errors when it tries to fire the event. Help please? I don't just want code, I want explanation, what I did wrong, etc.

    Thanks,
    000Nick :)

    EDIT: http://pastebin.com/XhJhJThW = CODE

    StackTrace = http://pastebin.com/XrSvKYp0
     
  2. Offline

    Bobit

    We can't do that if you don't give us any stack trace or code.
    How are we supposed to tell you what you did wrong when we don't know what you did?!
     
  3. Offline

    geret13

    In other words, could you please post your code?
     
  4. Offline

    000nick

    Woops thought I did :confused: Anyway it should be there right now. Sorry bout that...
     
  5. Offline

    xTigerRebornx

    000nick You need to add LibsDisguises as a dependancy (or Soft) in your plugin.yml, and make sure it is installed on the server. If you do soft-depend, add a check to onEnable to see if the LibsDisguises is on the server or not, then disable your plugin if it isn't
     
  6. Offline

    000nick

    Nope it was because I didn't install ProtocalLib... Silly me .-. But it still doesn't work and now I have no stacktrace (error)
     
  7. Offline

    Bobit

    You still need to add it as a dependency.
    If you have, then put system.out.println()'s along the way, printing variables that make sense to, so you can see where the code reaches.
    I personally am putting system.out.println()'s along most of my code now, I even have a configurable "DebugMode" option to turn those off or on. I'd definitely recommend it.
     
Thread Status:
Not open for further replies.

Share This Page