KitPvp/LMS Bug Need Help!

Discussion in 'Plugin Development' started by LYSwitch, Jul 5, 2014.

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

    LYSwitch

    SO i've been coding a lot recently because me and my friend are making a kitpvp server. I was working on the LMS section and i got the commands fine and the arguments and all that but there is a weird bug that i just can't figure out! Whenever an admin does /lms host it says what i want to, players can join it fine, but when the 30 seconds is up and they're supposed to teleport it does the syncDelayedTask later than it should. I put 20 * 30 for 30 seconds and everything is fine. Its not my yml because the commands are fine, not my registered events, it's just a weird bug. Whenever they're about to get teleported also, not only is it late(3 minutes 20 seconds to be precise), but it only teleports the people who joined not the host, it teleports the host even LATER. It also spam teleports me 3 or 4 times when it teleports if im not the host. The end event doesn't work also. I am using multiple classes so i will post my main class, LMSEvents class, and my LMS class. Please help asap.

    Main Class: http://pastebin.com/kxeBLXei

    LMS Class: http://pastebin.com/tMkWnLZq

    LMSEvents Class: http://pastebin.com/7ZvR8KSY

    anyone?

    this is really urgent please

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  2. Offline

    ZodiacTheories

    LYSwitch

    Stop bumping and this is a dupe. Also, you cannot priorities your thread over everybody else's. You are showing and extreme deal of impatience and immaturity.
     
  3. Offline

    DatRefillDoe

    LYSwitch Please don't spam bump. It's really annoying, but since you look like you need so much help, you need to check if args[1] = join. Then you make sure it's args 0. ex:

    Code:
    if(cmd.getName().equalsIgnoreCase("PvPKits"){
     
    if(args.length == 1()){
       if(args[0].equalsIgnoreCase("pvp"){
     
    //do whatever
    }
     
    }
    }
    This was a hand written code, didn't test it.

    Oh, and your spacing is really messed up, do ctrl + a ( to select all ) and ctrl + I ( proper spacing )

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  4. Offline

    LYSwitch

    1) Its not my commands or arguments that are messed up if you would've actually read my post
    2) My spacing isn't messed up it's the CTRL + SHFT + F format shortcut
     
Thread Status:
Not open for further replies.

Share This Page