I'm looking for someone to go through a medium-sized project and create a "lang.yml" file that replaces the messages.
Currently, the plugin works by having an enumerator class, the name of the value needs to be the same as the name of the key in the configuration file. It'll then directly grab it from the file based on the name.
Looking for someone to do this for £5 for me, there's an existing source code, just need the configuration file implemented.
If you're interested, add me, straggly#2073
Currently, the plugin works by having an enumerator class, the name of the value needs to be the same as the name of the key in the configuration file. It'll then directly grab it from the file based on the name.
Enumerator class:
YAML File:
Code:
public enum Messages {
NO_PERMISSION,
ACCESS_GRANTED
;
@Override
public String toString(){
return ChatColor.translateAlternateColorCodes('&', Casters.getCfgMessages().getString(name()));
}
}
YAML File:
Code:
options:
prefix: "&8[&9Test Prefix&8] &f"
NO_PERMISSION: "&cNo Permissions."
ACCESS_GRANTED: "&aAccess Granted."
Looking for someone to do this for £5 for me, there's an existing source code, just need the configuration file implemented.
If you're interested, add me, straggly#2073
