# Source code
source: package: co.aikar.commands, class: VelocityLocales

    001package co.aikar.commands;
    002
    003import java.util.Locale;
    004
    005public class VelocityLocales extends Locales {
    006    private final VelocityCommandManager manager;
    007
    008    public VelocityLocales(VelocityCommandManager manager) {
    009        super(manager);
    010
    011        this.manager = manager;
    012        this.addBundleClassLoader(this.manager.getPlugin().getClass().getClassLoader());
    013    }
    014
    015    @Override
    016    public void loadLanguages() {
    017        super.loadLanguages();
    018        String pluginName = "acf-" + manager.plugin.getDescription().getName().get();
    019        addMessageBundles("acf-minecraft", pluginName, pluginName.toLowerCase(Locale.ENGLISH));
    020    }
    021}