-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessageKey.java
More file actions
89 lines (82 loc) · 6.14 KB
/
MessageKey.java
File metadata and controls
89 lines (82 loc) · 6.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package net.imprex.zip.config;
public enum MessageKey {
Prefix("prefix", "§8[§eZIP§8] §7"),
NotAConsoleCommand("notAConsoleCommand", "This command can not be executed from the console"),
YouDontHaveTheFollowingPermission("youDontHaveTheFollowingPermission", "You Don't have the following permission §8\"§e{0}§8\""),
ThisBackpackNoLongerExist("ThisBackpackNoLongerExist", "This backpack no longer exist"),
ClickHereToSeeTheLatestRelease("clickHereToSeeTheLatestRelease", "Click here to see the latest release"),
ANewReleaseIsAvailable("ANewReleaseIsAvailable", "A new version is available"),
ClickHere("clickHere", "§f§l[CLICK HERE]"),
CommandHelpStart("commandHelpStart", "§8[]§7========== §eZeroInventoryProblems §7==========§8[]"),
CommandHelpPickup("commandHelpPickup", "§8/§7zip §epickup §8| §7Pickup inaccessible items§8."),
CommandHelpLink("commandHelpLink", "§8/§7zip §elink §7<§ecancel§7> §8| §7Link multiple backpacks or cancel the request§8."),
CommandHelpGive("commandHelpGive", "§8/§7zip §egive §7[§etype§7] §7<§eplayer§7> §8| §7Give yourself a backpack§8."),
CommandHelpType("commandHelpType", "§8/§7zip §etype §8| §7Get a list of all backpacks§8."),
CommandHelpLore("commandHelpLore", "§8/§7zip §elore §8| §7Write a custom lore§8."),
CommandHelpEnd("commandHelpEnd", "§8[]§7========== §eZeroInventoryProblems §7==========§8[]"),
CommandTypeStart("commandTypeStart", "§8[]§7========== §eZeroInventoryProblems Types §7==========§8[]"),
CommandTypeContent("commandTypeContent", " §8-§e{0}"),
CommandTypeButtonGive("commandTypeButtonGive", "§7[§eGive§7]"),
CommandTypeButtonGiveHover("commandTypeButtonGiveHover", "§eClick here to give yourself a §8\"§e{0}§8\" backpack"),
CommandTypeEnd("commandTypeEnd", "§8[]§7========== §eZeroInventoryProblems Types §7==========§8[]"),
CommandHelpLoreSyntax("commandHelpLoreSyntax", """
§8/§7zip §elore add §7<§eMessage§7> §8| §7Add a lore§8.
§8/§7zip §elore change §7<§eLine§7> §7<§eMessage§7> §8| §7Change a line§8.
§8/§7zip §elore delete §7<§eLine§7> §8| §7Delete a line§8.
§8/§7zip §elore list §8| §7List of all lore lines§8.
"""),
CommandLoreStart("commandLoreStart", "§8[]§7========== §eZeroInventoryProblems Lore §7==========§8[]"),
CommandLoreContent("commandLoreContent", " §8{0}: §e{1}"),
CommandLoreButtonEdit("commandLoreButtonEdit", "§7[§eEdit§7]"),
CommandLoreButtonEditHover("commandLoreButtonEditHover", "§eClick here to edit this line"),
CommandLoreButtonDelete("commandLoreButtonDelete", "§7[§eDelete§7]"),
CommandLoreButtonDeleteHover("commandLoreButtonDeleteHover", "§eClick here to delete this line"),
CommandLoreEnd("commandLoreEnd", "§8[]§7========== §eZeroInventoryProblems Lore §7==========§8[]"),
NoOnlinePlayerWasFound("noOnlinePlayerWasFound", "No online player with the name §8\"§e{0}§8} §7was found"),
PleaseEnterABackpackType("pleaseEnterABackpackType", "Please enter a backpack type §8(small/medium/big)"),
BackpackTypeWasNotFound("backpackTypeWasNotFound", "Backpack type §8\"§e{0}§8\" §7was not found"),
YouHaveGivenYourselfABackpack("youHaveGivenYourselfABackpack", "You received a §8\"§e{0}§8\" §7backpack"),
YouHaveGivenTargetPlayerABackpack("youHaveGivenTargetPlayerABackpack", "You given a §8\"§e{0}§8\" §7backpack to §8\"§e{1}§8\""),
YouNeedToHoldABackpackInYourHand("youNeedToHoldABackpackInYourHand", "You need to hold a backpack in your hand"),
YourBackpackHasNoUnusableItems("yourBackpackHasNoUnusableItems", "Your backpack has no inaccessible items"),
YouNeedMoreSpaceInYourInventory("youNeedMoreSpaceInYourInventory", "You need more space in your inventory"),
TargetPlayerNeedMoreSpaceInYourInventory("targetPlayerNeedMoreSpaceInYourInventory", "§8\"§e{0}§8\" §7needs more space in his/her inventory"),
YouReceivedAllUnusableItems("youReceivedAllUnusableItems", "You\'ve received all inaccessible items"),
YouHaveUnusableItemsUsePickup("youHaveUnusableItemsUsePickup", "Your backpack contains inaccessible items§8! §7Use §e/zip pickup"),
YourBackpackIsNotEmpty("yourBackpackIsNotEmpty", "Your Backpack needs to be empty"),
YouNeedToHoldBothBackpacksInYouInventory("youNeedToHoldBothBackpacksInYourInventory", "You need to hold both backpacks in your inventory"),
YouCanNowHoldTheBackpackWhichShouldBeLinked("youCanNowHoldTheBackpackWhichShouldBeLinked", "You can now hold the second backpack that should be linked"),
ThisShouldNotHappenedPleaseTryToLinkAgain("thisShouldNotHappenedPleaseTryToLinkAgain", "An error occurred, please try to link again"),
YourBackpackIsNowLinked("yourBackpackIsNowLinked", "Your backpack is now linked"),
YouNeedToLinkABackpackFirst("youNeedToLinkABackpackFirst", "You need to link a backpack at first"),
YourBackpackLinkRequestWasCancelled("yourBackpackLinkRequestWasCancelled", "Your backpack link request was cancelled"),
BothBackpacksNeedToBeTheSameType("bothBackpacksNeedToBeTheSameType", "Both Backpacks need to be the same type"),
ThisBackpackIsAlreadyLinkedThoThat("thisBackpackIsAlreadyLinkedThoThat", "This backpack is already linked to that backpack"),
StackedBackpacksCanNotBeLinked("stackedBackpacksCanNotBeLinked", "Stacked backpacks can not be linked"),
PleaseEnterANumber("pleaseEnterANumber", "Please enter a number"),
EnterANumberBetweenArgsAndArgs("enterANumberBetweenArgsAndArgs", "Please enter a number between {0} and {1}"),
LoreLineCreate("loreLineCreate", "The lore line {0} was added"),
LoreLineChange("loreLineChange", "The lore line {0} was changed"),
LoreLineDelete("loreLineDelete", "The lore line {0} was deleted"),
MaxLoreCountReached("maxLoreCountReached", "You have reached the max lore count of {0}");
public static MessageKey findByKey(String key) {
for (MessageKey messageKey : values()) {
if (messageKey.key.equalsIgnoreCase(key)) {
return messageKey;
}
}
return null;
}
private final String key;
private final String defaultMessage;
private MessageKey(String key, String defaultMessage) {
this.key = key;
this.defaultMessage = defaultMessage;
}
public String getKey() {
return this.key;
}
public String getDefaultMessage() {
return this.defaultMessage;
}
}