Plugin Help - how can i use multiple classes to make the code more clean?

Discussion in 'Plugin Help/Development/Requests' started by kilspeed2696, Jan 17, 2015.

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

    kilspeed2696

    I want to use multiple classes because my code is masive. 203 lines. i have to scoll for hours. can anywone tell how i know java. but bukkit isnt my thing.[diamond]
     
  2. Offline

    kilspeed2696

    o werd for me it is giving crashreports if i do it like the old way.

    example:
    main = the plugin
    util = external

    in external:
    Code:
    public boolean isOn = true;
    
    in main:
    Code:
    if (util.isOn == true) {
        player.sendmessage("isOn = true");
    }
    
    am i doing it wrong?
     
Thread Status:
Not open for further replies.

Share This Page