Search in sources :

Example 1 with Default

use of co.aikar.commands.annotation.Default in project VoxelGamesLibv2 by VoxelGamesLib.

the class LangCommands method lang.

@Default
@CommandPermission("%user")
public void lang(@Nonnull User sender) {
    StringBuilder sb = new StringBuilder();
    for (Locale loc : langHandler.getInstalledLocales()) {
        sb.append(loc.getTag()).append(" (").append(loc.getName()).append("), ");
    }
    sb.setLength(sb.length() - 1);
    Lang.msg(sender, LangKey.LANG_INSTALLED, sb.toString());
    Lang.msg(sender, LangKey.LANG_CURRENT, sender.getLocale().getName());
    Lang.msg(sender, LangKey.TRANSLATED_BY);
}
Also used : Locale(com.voxelgameslib.voxelgameslib.lang.Locale) Default(co.aikar.commands.annotation.Default) CommandPermission(co.aikar.commands.annotation.CommandPermission)

Aggregations

CommandPermission (co.aikar.commands.annotation.CommandPermission)1 Default (co.aikar.commands.annotation.Default)1 Locale (com.voxelgameslib.voxelgameslib.lang.Locale)1