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);
}
Aggregations