mirror of
https://github.com/rockyhawk64/CommandPanels.git
synced 2025-11-18 07:14:17 +01:00
fixes to tag
This commit is contained in:
parent
0c1e376219
commit
0ad0253d43
@ -17,7 +17,7 @@ config:
|
||||
panel-snooper: false
|
||||
enable-import-command: false
|
||||
format:
|
||||
tag: '&6[&bCommandPanels&6] '
|
||||
tag: '&6[&bCommandPanels&6]'
|
||||
perms: '&cNo permission.'
|
||||
reload: '&aReloaded.'
|
||||
nopanel: '&cPanel not found.'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
version: 3.22.2
|
||||
version: 3.22.3
|
||||
main: me.rockyhawk.commandpanels.CommandPanels
|
||||
name: CommandPanels
|
||||
author: RockyHawk
|
||||
|
||||
@ -59,7 +59,7 @@ import java.util.Objects;
|
||||
|
||||
public class Context {
|
||||
public CommandPanels plugin;
|
||||
public String tag = "[CommandPanels]";
|
||||
public String tag = "[CommandPanels] ";
|
||||
|
||||
//get plugin classes
|
||||
public PanelDownloader downloader;
|
||||
@ -149,8 +149,6 @@ public class Context {
|
||||
itemSerializer = new ItemStackSerializer(this);
|
||||
inputUtils = new PlayerInputUtils(this);
|
||||
|
||||
tag = text.colour(configHandler.config.getString("config.format.tag"));
|
||||
|
||||
//setup class files
|
||||
setupEconomy();
|
||||
Bukkit.getServer().getMessenger().registerOutgoingPluginChannel(plugin, "BungeeCord");
|
||||
|
||||
@ -53,9 +53,6 @@ public class ReloadCommand implements CommandExecutor {
|
||||
// reloadHotbarSlots
|
||||
ctx.hotbar.reloadHotbarSlots();
|
||||
|
||||
// reload tag
|
||||
ctx.tag = ctx.text.colour(ctx.configHandler.config.getString("config.format.tag"));
|
||||
|
||||
// register custom commands
|
||||
if (ctx.configHandler.isTrue("config.auto-register-commands")) {
|
||||
ctx.openCommands.registerCommands();
|
||||
@ -78,6 +75,7 @@ public class ReloadCommand implements CommandExecutor {
|
||||
ctx.plugin.openWithItem = false;
|
||||
//load panel files from panels folder
|
||||
fileNamesFromDirectory(new File(ctx.plugin.getDataFolder() + File.separator + "panels"));
|
||||
ctx.tag = ctx.text.colour(ctx.configHandler.config.getString("config.format.tag")) + " ";
|
||||
}
|
||||
|
||||
//look through all files in all folders
|
||||
|
||||
Loading…
Reference in New Issue
Block a user