Extremely Broken Plugin.

Discussion in 'Plugin Development' started by TheGamesHawk2001, Dec 15, 2014.

Thread Status:
Not open for further replies.
  1. Earlier today my plugin was working fine as fine can be until something happened and it just stopped working completely. It's a custom inventory plugin and when I click on any item, it doesn't load any inventories and the only thing that works is the Wrapper but it gives me the right material but it's named Dark Chocolate:

    Code:
    Candies.java : http://hastebin.com/qupeceniwu.avrasm

    Items.java : http://hastebin.com/yoyegiwobu.avrasm

    Cmd.java : Not needed since it's just a command.

    consumeCandy.java : http://hastebin.com/nulipevefe.avrasm
     
  2. Offline

    PreFiXAUT

    @TheGamesHawk2001 First of all, where's the Stacktace? What isn't working? Did you try to debug it?

    PS: Suggestion: Why don't you simply make a Config with a template, and then just let a function let it parse to a Inventory or something. To hardcode everything is very hard and annoying, and you'll loose the overview preety soon. And to extend it the User needs to call you every time.
     
  3. I don't think that's the solution lol
     
  4. Offline

    mythbusterma

  5. I don't want to do a config every time.
     
  6. Offline

    mythbusterma

    @TheGamesHawk2001

    And I don't want to read code that hardcodes things it shouldn't, doesn't follow naming conventions, is formatted poorly, and abuses static like it's going out of style, but we can't all have our way.
     
    ferrybig likes this.
  7. Well, how am I supposed to read shit from another class without static?
     
  8. Offline

    mythbusterma

  9. Offline

    mythbusterma

    @TheGamesHawk2001

    How did you even get that from the article I posted? Did you even read it? When in there, ANYWHERE, do they have public instance variables?
     
  10. Offline

    ChipDev

    Whats the point of using the noun ' shit ' in that sentence?
     
  11. Offline

    JordyPwner

    OMFG IM GETTING DIZZY! All those static O.O

    Also for economy check if the transaction is successful
     
  12. Hmmm, http://prntscr.com/5hhvav... What should I use for static then?
     
  13. Offline

    JordyPwner

  14. "A public member or method can be accessed from any other class" (http://prntscr.com/5hhxu9) I tried that and it said to make it static.
     
  15. @TheGamesHawk2001 In that case I'd recommend you learn some more Java from the Oracle tutorials, or a good Java book. Your IDE is not meant to tell you what you should do, it's only meant to make it easier for you to develop the program. :)
     
    teej107 likes this.
  16. k
     
  17. Offline

    JordyPwner

    as i do it: private Mainclass main;
     
Thread Status:
Not open for further replies.

Share This Page