Bug FIX

Discussion in 'Plugin Development' started by InPaniCsz, Jan 12, 2015.

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

    InPaniCsz

    Well, I'm getting a odd error in My Console, I don't know what is it...
    This is the error : http://pastebin.com/0YPaQ7ZG

    I'm sorry just starting developing Plugins a week ago...
    If you guys want the class say to me.
     
  2. Offline

    Hawktasard

    @InPaniCsz
    You're probably doing something like "new MainClass();"
    Either that, or you have two jars for the same plugin
     
  3. Offline

    InkzzzMC

  4. Offline

    InPaniCsz

    No I don't got 2 Jars, I cleared all my plugins and just let 1 jar (Plugin jar)
    And @InkzzzMC here's my code, I have only the main class.
    The code maybe is wrong, I was trying to make a join event give you a magma cream with the respective name, and
    Who had the MagmaCream in the hand would always Rename the Item to the same to make it show the name. Like you were always changing to the Item Slot.

    CODE: http://pastebin.com/hiM95UwF
     
  5. Offline

    ColonelHedgehog

    Code:
    public final Logger logger = Logger.getLogger("Minecraft");
    BCBroz, huh? :(

    What Hawk is saying is you can't initialize the main class like that. It'll throw an exception telling you that the plugin was already initialized.

    Are you sure this is all you have? Try removing the "logger" statement.
     
  6. Offline

    Skionz

    @InPaniCsz Post the code that is relevant to the stack-trace.
     
  7. Offline

    InPaniCsz


    YEP WAS THAT, THANKS.
    BTW I'M NEW TO THIS :'p
     
  8. Offline

    SuperOriginal

    @InPaniCsz Here's a good tip. Stop watching whatever tutorial you're using right now.
     
Thread Status:
Not open for further replies.

Share This Page