MOTD Config

This commit is contained in:
nossr50
2019-03-14 18:14:08 -07:00
parent 094850ab85
commit 04fdd3270a
3 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,20 @@
package com.gmail.nossr50.config.hocon.motd;
import ninja.leaping.configurate.objectmapping.Setting;
import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
@ConfigSerializable
public class ConfigMOTD {
private static final boolean ENABLE_MOTD_DEFAULT = true;
@Setting(value = "Show-MOTD-On-Player-Join", comment = "Show players who connect to the server the MOTD from mcMMO" +
"\nHistorically this message is literally just telling players that the server runs mcMMO." +
"\nSometimes the MOTD includes warnings about build stability if using a volatile dev build." +
"\nIf you wish to edit the MOTD, that is done in the locale files inside the JAR." +
"\nDefault value: "+ENABLE_MOTD_DEFAULT)
private boolean enableMOTD = ENABLE_MOTD_DEFAULT;
public boolean isEnableMOTD() {
return enableMOTD;
}
}