Solved config.yml

Discussion in 'Plugin Development' started by josha28, Aug 15, 2017.

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

    josha28

    This is my config.yml

    Code:
    message:
        enabled: true
        message: 'this is a test'
    how can i get the enabled state and the message state
     
    Last edited: Aug 15, 2017
  2. Code:
    getConfig().getBoolean("message.enabled");
    Code:
    getConfig().getString("message.message");
     
  3. Offline

    A5H73Y

    Please use the Bukkit documentation, everything you need about the basics is there.
    (plugin).getConfig().getBoolean("message.enabled");
    I'll let you work out the other one.
     
Thread Status:
Not open for further replies.

Share This Page