Update /libsdisguises command to be cleaner, still not enough help info tho

This commit is contained in:
libraryaddict
2020-04-20 18:22:36 +12:00
parent 22c258b4fc
commit 0d738dbd1e
11 changed files with 677 additions and 397 deletions

View File

@@ -0,0 +1,29 @@
package me.libraryaddict.disguise.commands.libsdisguises;
import me.libraryaddict.disguise.DisguiseConfig;
import me.libraryaddict.disguise.utilities.translations.LibsMsg;
import org.bukkit.command.CommandSender;
import java.util.Collections;
import java.util.List;
/**
* Created by libraryaddict on 20/04/2020.
*/
public class LDReload implements LDCommand {
@Override
public List<String> getTabComplete() {
return Collections.singletonList("reload");
}
@Override
public String getPermission() {
return "libsdisguises.reload";
}
@Override
public void onCommand(CommandSender sender, String[] args) {
DisguiseConfig.loadConfig();
sender.sendMessage(LibsMsg.RELOADED_CONFIG.get());
}
}