'new' term

Discussion in 'Plugin Help/Development/Requests' started by Coopah, Jan 31, 2016.

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

    Coopah

    I have a class of methods and every time a command is getting run, I'm calling for the class (this is a problem).

    To call for the class, I'm using:
    Code:
    ClassName test = new ClassName([optional plugin statement]);
    
    This is hence, creating a bunch of new values (HashMaps, booleans etc.) every time the command is run. The issue is, I don't want it to create new values, I want to keep the old ones.

    Any suggestions on how I can still use the methods and values without creating new ones each time?
     
  2. Offline

    teej107

    @Coopah Store the value in a field. Have a reference to the field.
     
Thread Status:
Not open for further replies.

Share This Page