i really need help im gonna release a server soon

Discussion in 'Plugin Development' started by DeStickyOne, Dec 10, 2013.

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

    DeStickyOne

    ok
    im trusting you guys
    i worked on a plugin almost a mounth
    and its 4000 Lines
    and i got some problems
    With the Tank Kit
    and with some more stuff i will show soon
    so
    thats the code
    http://pastebin.com/in371wnd
    so...
    1. idont know why
    but my name its like 2 times in the tab
    my tab color changing all the time
    and everything coming twice
    like when im logging in
    its will write me twice - Players Online in the Server
    i checked
    no Copies
    no more Plugins
    i dont know what the problom
    please help me



    Console
    Code:
     Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    Could not pass event EntityDamageByEntityEvent to JamboPvPKits
     
    AntiPvP Killed _FreshGaming_
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Chunk file at 9,25 is in the wrong location; relocating. (Expe
    7, 25)
    Chunk file at 5,24 is in the wrong location; relocating. (Expe
    6, 7)
    Chunk file at 22,12 is in the wrong location; relocating. (Exp
    23, 26)
    Chunk file at 6,26 is in the wrong location; relocating. (Expe
    7, 26)
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    _FreshGaming_ issued server command: /clear
    _FreshGaming_: Cleared the inventory of _FreshGaming_, removing
     
    _FreshGaming_ issued server command: /gamemod 1
    _FreshGaming_ issued server command: /gamemode 1
    _FreshGaming_: Set own game mode to CREATIVE mode
    Chunk file at 23,13 is in the wrong location; relocating. (Exp
    23, 26)
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Could not pass event PlayerInteractEvent to JamboPvPKits v0.1
    Chunk file at 15,4 is in the wrong location; relocating. (Expe
    3, 12)
    Chunk file at 16,4 is in the wrong location; relocating. (Expe
    7, 25)
    [JamboPvP]Plugin Created by FreshGaming
    [JamboPvP]Plugin Created by FreshGaming
    [OrsAutoMessage] Listen and Respect Moderators
    [JamboPvP]Plugin Created by FreshGaming
    
     
  2. Offline

    johnnywoof

    We need your class code.....As a developer I think you are aware about it
     
  3. Offline

    NoLiver92

    Where is the error? i cant tell from the "console" post and it would be helpful if you could post some code which is RELEVANT to the particular problems
     
  4. Offline

    DeStickyOne


    i edit it
     
  5. Offline

    Rprrr

    DeStickyOne
    This is the biggest crap I've ever seen.
    Have you ever thought about using multiple classes? No?
     
    DoctorDark likes this.
  6. Offline

    DeStickyOne


    thats all the config
    and i wrote the probloins
     
  7. Offline

    Ad237

    You can't expect someone to go through 4000+ lines of horribly written code for you. Find the code that's causing it and post that.
     
  8. Offline

    AoH_Ruthless

    DeStickyOne
    By error he meant the
    Caused by: .. etc..
    But yeah, 4000 lines? You really, really need to use multiple classes. We need the whole code to help you, because otherwise we can't see what's wrong.
     
  9. Offline

    Bart

    This code literally made me cry. I can barely navigate my way through a 1000 line class let alone 4000.
     
    DoctorDark and sgavster like this.
  10. Offline

    DeStickyOne


    i really need it
    if i will pay you ?
    i really wanna fix thats
     
  11. Offline

    Bart

  12. Offline

    AoH_Ruthless

    DeStickyOne
    I am not going to fix your code for you. That code was too horrendous for me to even want to deal with. You really should learn Java.

    Monetary offers are not allowed I believe, anyways.

    EDIT: Ninja'd by Bart
     
  13. Offline

    Bart

    Hint: Do this
     
  14. Offline

    Conarnar

    I didn't think I was going to be that hard...

    I was wrong.

    [​IMG]
     
    FabeGabeMC and L33m4n123 like this.
  15. Offline

    JRL1004

    DeStickyOne As a large majority of these forums stated previously, this file is a mess and needs to be broken into more classes (as it is, this sifting through this could prove bad to ones health). Anyway, since I can at least help slightly, I decided to aid you with one issue:
    the reason everything is appearing twice is because you have your class registering events two times:
    Code:java
    1. /* Start of onEnable() */
    2. getServer().getPluginManager().registerEvents(this, this); // First time registering events
    3. /* Some number of lines */
    4. getServer().getPluginManager().registerEvents(this, this); // Second time
    5. /* Another number of lines leading to the end of your onEnable() */
    6.  

    I won't help much more than this, I already need a counselor do to my newly-developed phobia of absurd class setups.
     
  16. Offline

    rocket138

    Your code is bad and you should feel bad.
    EDIT: Slight apologies for being brash, but seriously, 40+ PlayerInteractEvents and 4000+ lines w/o classes. Clean it up man.
     
  17. Offline

    JRL1004

    rocket138 Jeez, man, this is a help forum, we are not here to insult others...

    EDIT: While you can insult others, nobody will stop you, but try not to be so direct. I doubt people come on here just to see how many insults they can accumulate.
     
  18. Offline

    rocket138

    In all fairness, at the 500 lines mark, he should've started using classes, if not sooner. Not to mention 40 PlayerInteractEvents...
     
  19. Offline

    JRL1004

    rocket138 True but that does not mean
    is a reasonable thing to say. Plus many others (including me) have emphasized his need for more classes.
     
  20. Offline

    rocket138

    *Curls up awkwardly*, but it's true...
     
  21. Offline

    Prothean_IGS

    Another tip, besides for learning to use classes, when creating plugins with large amounts of code, write it in steps. Pick a part of your plugin to start at, write the code needed to execute that part, then test it. If it works, move on and repeat this, if not, well then you know exactly where the error is and it will be easier to post and get a solution from the community rather than waiting until the end to hand us an absurd amount of code to search through for many problems.
     
Thread Status:
Not open for further replies.

Share This Page