Steffion 6993fc1068 Added Set command.
Used to set settings!
2013-08-01 20:31:41 +02:00

92 lines
3.3 KiB
Java

package nl.Steffion.BlockHunt.Managers;
import nl.Steffion.BlockHunt.W;
public enum ConfigC {
/*
* Made by @author Steffion, © 2013.
*/
chat_tag ("[" + W.pluginName + "] ", W.config),
chat_normal ("&b", W.config),
chat_warning ("&c", W.config),
chat_error ("&c", W.config),
chat_arg ("&e", W.config),
chat_header ("&9", W.config),
chat_headerhigh ("%H_______.[ %A%header%%H ]._______", W.config),
commandEnabled_info (true, W.config),
commandEnabled_help (true, W.config),
commandEnabled_reload (true, W.config),
commandEnabled_wand (true, W.config),
commandEnabled_create (true, W.config),
commandEnabled_set (true, W.config),
wandID (280, W.config),
wandName ("%A&l" + W.pluginName + "%N's selection wand", W.config),
wandDescription (new String[] {
"%NUse this item to select an arena for your arena.",
"%ALeft-Click%N to select point #1.",
"%ARight-Click%N to select point #2.",
"%NUse the create command to define your arena.",
"%A/" + W.pluginName + " <help|h>" }, W.config),
log_Enabled ("%N%name%&a&k + %N%version% is now Enabled. Made by %A%autors%%N.",
W.messages),
log_Disabled ("%N%name%&c&k - %N%version% is now Disabled. Made by %A%autors%%N.",
W.messages),
help_info ("%NDisplays the plugin's info.", W.messages),
help_help ("%NShows a list of commands.", W.messages),
help_reload ("%NReloads all configs.", W.messages),
help_wand ("%NGives you the wand selection tool.", W.messages),
help_create ("%NCreates an arena from your selection.", W.messages),
help_set ("%NOpens a panel to set settings.", W.messages),
button_add ("%NAdd %A%1%%N to %A%2%%N", W.messages),
button_add2 ("Add", W.messages),
button_setting ("%NSetting %A%1%%N is now: %A%2%%N.", W.messages),
button_remove ("%NRemove %A%1%%N from %A%2%%N", W.messages),
button_remove2 ("Remove", W.messages),
normal_reloadedConfigs ("&aReloaded all configs!", W.messages),
normal_wandGaveWand ("%NHere you go ;)! &o(Use the %A&o%type%%N&o!)",
W.messages),
normal_wandSetPosition ("%NSet position %A#%number%%N to location: %pos%.",
W.messages),
normal_createCreatedArena ("%NCreated an arena with the name '%A%name%%N'.",
W.messages),
error_noPermission ("%EYou don't have the permissions to do that!",
W.messages),
error_commandNotEnabled ("%EThis command has been disabled!", W.messages),
error_commandNotFound ("%ECouldn't find the command. Try %A/"
+ W.pluginName + " help %Efor more info.", W.messages),
error_notEnoughArguments ("%EYou're missing arguments, correct syntax: %A/%syntax%",
W.messages),
error_noArena ("%ENo arena found with the name '%A%name%%E'.", W.messages),
error_onlyIngame ("%EThis is an only in-game command!", W.messages),
error_createSelectionFirst ("%EMake a selection first. Use the wand command: %A/"
+ W.pluginName + " <wand|w>%E.",
W.messages),
error_createNotSameWorld ("%EMake your selection points in the same world!",
W.messages),
error_tooHighNumber ("%EThat amount is too high! Max amount is: %A%max%%E.",
W.messages),
error_tooLowNumber ("%EThat amount is too low! Minimal amount is: %A%min%%E.",
W.messages);
Object value;
ConfigM config;
private ConfigC (Object value, ConfigM config) {
this.value = value;
this.config = config;
}
public String getLocation() {
return this.name().replaceAll("_", ".");
}
}