mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-25 02:27:33 +01:00
Updating actions to allow translations, and colour.
This commit is contained in:
parent
c2c889cab9
commit
284f48f631
@ -24,15 +24,13 @@ public class Commandme extends EssentialsCommand
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
final StringBuilder message = new StringBuilder();
|
||||
message.append("* ");
|
||||
message.append(user.getDisplayName());
|
||||
message.append(' ');
|
||||
for (int i = 0; i < args.length; i++)
|
||||
|
||||
String message = getFinalArg(args, 1);
|
||||
if (user.isAuthorized("essentials.chat.color"))
|
||||
{
|
||||
message.append(args[i]);
|
||||
message.append(' ');
|
||||
message = message.replaceAll("&([0-9a-f])", "§$1");
|
||||
}
|
||||
ess.broadcastMessage(user, message.toString());
|
||||
|
||||
ess.broadcastMessage(user, Util.format("action", user.getDisplayName(), message));
|
||||
}
|
||||
}
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Single quotes have to be doubled: ''
|
||||
# Translations start here
|
||||
# by:
|
||||
action = * {0} {1}
|
||||
addedToAccount = \u00a7a{0} has been added to your account.
|
||||
addedToOthersAccount = \u00a7a{0} has been added to {1} account.
|
||||
alertBroke = broke:
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Single quotes have to be doubled: ''
|
||||
# Translations start here
|
||||
# by: papand13, papand13@gmail.com
|
||||
action = * {0} {1}
|
||||
addedToAccount = \u00a7a{0} er tilf\u00f8jet til din konto.
|
||||
addedToOthersAccount = \u00a7a{0} er blevet tilf\u00f8jet til {1} konto.
|
||||
alertBroke = \u00f8delagde:
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Single quotes have to be doubled: ''
|
||||
# Translations start here
|
||||
# by:
|
||||
action = * {0} {1}
|
||||
addedToAccount = \u00a7a{0} wurden zu deiner Geldb\u00f6rse hinzugef\u00fcgt.
|
||||
addedToOthersAccount = \u00a7a{0} wurden zu {1}s Konto hinzugef\u00fcgt.
|
||||
alertBroke = zerst\u00f6rt:
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Single quotes have to be doubled: ''
|
||||
# Translations start here
|
||||
# by:
|
||||
action = * {0} {1}
|
||||
addedToAccount = \u00a7a{0} has been added to your account.
|
||||
addedToOthersAccount = \u00a7a{0} has been added to {1} account.
|
||||
alertBroke = broke:
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Single quotes have to be doubled: ''
|
||||
# Translations start here
|
||||
# by:
|
||||
action = * {0} {1}
|
||||
addedToAccount = \u00a7a{0} a \u00e9t\u00e9 rajout\u00e9 a votre compte.
|
||||
addedToOthersAccount = \u00a7a{0} a \u00e9t\u00e9 ajout\u00e9 \u00e0 {1} compte.
|
||||
alertBroke = a cass\u00e9:
|
||||
|
@ -2,6 +2,7 @@
|
||||
# Single quotes have to be doubled: ''
|
||||
# Translations start here
|
||||
# by: Geertje123
|
||||
action = * {0} {1}
|
||||
addedToAccount = \u00a7a{0} is gestort op je account.
|
||||
addedToOthersAccount = \u00a7a{0} is overgemaakt naar {1}''s rekening
|
||||
alertBroke = gebroken:
|
||||
|
Loading…
Reference in New Issue
Block a user