Use Tag provided by the Main Class in CommandPanelsReload & add Togglevalues to config

This commit is contained in:
TheLonelyWolf 2022-06-18 22:49:37 +02:00
parent f4ff0631d1
commit 9a621f98e0
2 changed files with 6 additions and 1 deletions
resource
src/me/rockyhawk/commandpanels/commands

View File

@ -53,20 +53,26 @@ updater:
update-checks: true update-checks: true
purchase: purchase:
currency: currency:
enable: true
success: '&aSuccessfully Bought For $%cp-args%' success: '&aSuccessfully Bought For $%cp-args%'
failure: '&cInsufficient Funds!' failure: '&cInsufficient Funds!'
data: data:
enable: true
success: '&aSuccessfully Bought For $%cp-args%' success: '&aSuccessfully Bought For $%cp-args%'
failure: '&cInsufficient Funds!' failure: '&cInsufficient Funds!'
tokens: tokens:
enable: true
success: '&aSuccessfully Bought For %cp-args% Tokens.' success: '&aSuccessfully Bought For %cp-args% Tokens.'
failure: '&cInsufficient Tokens!' failure: '&cInsufficient Tokens!'
coins: coins:
enable: true
success: '&aSuccessfully Bought For %cp-args% Coins.' success: '&aSuccessfully Bought For %cp-args% Coins.'
failure: '&cInsufficient Coins!' failure: '&cInsufficient Coins!'
item: item:
enable: true
success: '&aSuccessfully Sold %cp-args%.' success: '&aSuccessfully Sold %cp-args%.'
failure: '&cInsufficient Items!' failure: '&cInsufficient Items!'
xp: xp:
enable: true
success: '&aSuccessfully Bought For %cp-args% Experience.' success: '&aSuccessfully Bought For %cp-args% Experience.'
failure: '&cInsufficient Experience!' failure: '&cInsufficient Experience!'

View File

@ -50,7 +50,6 @@ public class Commandpanelsreload implements CommandExecutor {
registerCommands(); registerCommands();
} }
plugin.tag = plugin.tex.colour(plugin.config.getString("config.format.tag"));
sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.reload"))); sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.reload")));
}else{ }else{
sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.perms"))); sender.sendMessage(plugin.tex.colour(plugin.tag + plugin.config.getString("config.format.perms")));