fixes to tag

This commit is contained in:
rockyhawk64 2025-05-05 16:09:30 +10:00
parent 0c1e376219
commit 0ad0253d43
4 changed files with 4 additions and 8 deletions

View File

@ -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.'

View File

@ -1,4 +1,4 @@
version: 3.22.2
version: 3.22.3
main: me.rockyhawk.commandpanels.CommandPanels
name: CommandPanels
author: RockyHawk

View File

@ -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");

View File

@ -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