mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
use acf prefixes to msg keys
This commit is contained in:
@@ -36,7 +36,7 @@ public enum MinecraftMessageKeys implements MessageKeyProvider {
|
||||
NO_PLAYER_FOUND
|
||||
;
|
||||
|
||||
private final MessageKey key = MessageKey.of(this.name().toLowerCase());
|
||||
private final MessageKey key = MessageKey.of("acf-minecraft." + this.name().toLowerCase());
|
||||
public MessageKey getMessageKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ public enum MinecraftMessageKeys implements MessageKeyProvider {
|
||||
NO_PLAYER_FOUND
|
||||
;
|
||||
|
||||
private final MessageKey key = MessageKey.of(this.name().toLowerCase());
|
||||
private final MessageKey key = MessageKey.of("acf-minecraft." + this.name().toLowerCase());
|
||||
public MessageKey getMessageKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ package co.aikar.commands;
|
||||
import co.aikar.locales.MessageKey;
|
||||
|
||||
/**
|
||||
* Enum Name = MessageKey in lowercase
|
||||
* Enum Name = MessageKey in lowercase prefixed with acf-core.
|
||||
*/
|
||||
@SuppressWarnings("WeakerAccess")
|
||||
public enum MessageKeys implements MessageKeyProvider {
|
||||
@@ -41,9 +41,10 @@ public enum MessageKeys implements MessageKeyProvider {
|
||||
MUST_BE_A_NUMBER,
|
||||
MUST_BE_MIN_LENGTH,
|
||||
MUST_BE_MAX_LENGTH,
|
||||
NOT_ALLOWED_ON_CONSOLE, COULD_NOT_FIND_PLAYER;
|
||||
NOT_ALLOWED_ON_CONSOLE,
|
||||
COULD_NOT_FIND_PLAYER;
|
||||
|
||||
private final MessageKey key = MessageKey.of(this.name().toLowerCase());
|
||||
private final MessageKey key = MessageKey.of("acf-core." + this.name().toLowerCase());
|
||||
public MessageKey getMessageKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
@@ -20,16 +20,16 @@
|
||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
|
||||
permission_denied = I'm sorry, but you do not have permission to perform this command.
|
||||
error_generic_logged = An error occured. This problem has been logged. Sorry for the inconvienence.
|
||||
unknown_command = Unknown Command, please type <c2>/help</c2>
|
||||
invalid_syntax = Usage: <c2>{command}</c2> <c3>{syntax}</c3>
|
||||
error_prefix = Error: {message}
|
||||
error_performing_command = I'm sorry, but there was an error performing this command.
|
||||
info_message = {message}
|
||||
please_specify_one_of = Error: Please specify one of (<c2>{valid}</c2>).
|
||||
must_be_a_number = Error: Must be a number
|
||||
must_be_min_length = Error: Must be at least {min} characters long.
|
||||
must_be_max_length = Error: Must be less than {max} characters long.
|
||||
not_allowed_on_console = Error: Console may not execute this command.
|
||||
could_not_find_player = Error: Could not find a player by the name: <c2>{search}</c2>
|
||||
acf-core.permission_denied = I'm sorry, but you do not have permission to perform this command.
|
||||
acf-core.error_generic_logged = An error occured. This problem has been logged. Sorry for the inconvienence.
|
||||
acf-core.unknown_command = Unknown Command, please type <c2>/help</c2>
|
||||
acf-core.invalid_syntax = Usage: <c2>{command}</c2> <c3>{syntax}</c3>
|
||||
acf-core.error_prefix = Error: {message}
|
||||
acf-core.error_performing_command = I'm sorry, but there was an error performing this command.
|
||||
acf-core.info_message = {message}
|
||||
acf-core.please_specify_one_of = Error: Please specify one of (<c2>{valid}</c2>).
|
||||
acf-core.must_be_a_number = Error: Must be a number
|
||||
acf-core.must_be_min_length = Error: Must be at least {min} characters long.
|
||||
acf-core.must_be_max_length = Error: Must be less than {max} characters long.
|
||||
acf-core.not_allowed_on_console = Error: Console may not execute this command.
|
||||
acf-core.could_not_find_player = Error: Could not find a player by the name: <c2>{search}</c2>
|
||||
|
||||
@@ -21,15 +21,15 @@
|
||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
|
||||
invalid_world = Error: That world does not exists.
|
||||
you_must_be_holding_item = Error: You must be holding an item in your main hand.
|
||||
player_is_vanished_confirm = \
|
||||
acf-minecraft.invalid_world = Error: That world does not exists.
|
||||
acf-minecraft.you_must_be_holding_item = Error: You must be holding an item in your main hand.
|
||||
acf-minecraft.player_is_vanished_confirm = \
|
||||
Warning: <c2>{vanished}</c2> is vanished. Do not blow their cover!\n\
|
||||
To confirm your action, add <c2>:confirm</c2> to the end of their name.\n\
|
||||
Ex: <c2>{vanished}:confirm</c2>
|
||||
username_too_short = Error: Username too short, must be at least three characters.
|
||||
is_not_a_valid_name = Error: <c2>{name}</c2> is not a valid username.
|
||||
multiple_players_matched = Error: Multiple players matched <c2>{search}</c2> <c3>({all})</c3>, please be more specific.
|
||||
no_player_found_server = No player matching <c2>{search}</c2> is connected to this server.
|
||||
no_player_found = No player matching <c2>{search}</c2> could be found.
|
||||
acf-minecraft.username_too_short = Error: Username too short, must be at least three characters.
|
||||
acf-minecraft.is_not_a_valid_name = Error: <c2>{name}</c2> is not a valid username.
|
||||
acf-minecraft.multiple_players_matched = Error: Multiple players matched <c2>{search}</c2> <c3>({all})</c3>, please be more specific.
|
||||
acf-minecraft.no_player_found_server = No player matching <c2>{search}</c2> is connected to this server.
|
||||
acf-minecraft.no_player_found = No player matching <c2>{search}</c2> could be found.
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ public enum MinecraftMessageKeys implements MessageKeyProvider {
|
||||
NO_PLAYER_FOUND
|
||||
;
|
||||
|
||||
private final MessageKey key = MessageKey.of(this.name().toLowerCase());
|
||||
private final MessageKey key = MessageKey.of("acf-minecraft." + this.name().toLowerCase());
|
||||
public MessageKey getMessageKey() {
|
||||
return key;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user