Enums

Discussion in 'Plugin Development' started by Fhbgsdhkfbl, Feb 20, 2015.

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

    Fhbgsdhkfbl

    So, basically I have an enum class, and I need to get a boolean and ints and strings from a config, how would I make a "Getter" to get strings from a config.yml?

    I don't know if I worded this correctly,

    Second question, how would I make {player} for a config, so "{player} has done this" instead of p.getName(), etc.
     
  2. Offline

    teej107

  3. Offline

    Fhbgsdhkfbl

  4. Offline

    teej107

  5. Offline

    Fhbgsdhkfbl

  6. Offline

    teej107

    @Fhbgsdhkfbl Read the documentation. The best way to see if you are right is to test the code!
     
    xTrollxDudex likes this.
  7. Offline

    xTrollxDudex

    Basically yes. That should work.
     
Thread Status:
Not open for further replies.

Share This Page