Added translation.

This commit is contained in:
Brianna O'Keefe 2019-03-08 22:49:14 -05:00
parent 7aaceb0c30
commit 1bb52773f9
2 changed files with 2 additions and 4 deletions

View File

@ -19,11 +19,9 @@ public class CommandSpy extends AbstractCommand {
}
public static void spy(OfflinePlayer player, Player senderP) {
UltimateModeration instance = UltimateModeration.getInstance();
if (player == senderP) {
senderP.sendMessage(instance.getReferences().getPrefix() + "You cannot spy on yourself.");
senderP.sendMessage(instance.getReferences().getPrefix() + instance.getLocale().getMessage("command.spy.cant"));
return;
}
boolean didVanish = false;

View File

@ -25,7 +25,7 @@ command.revive.revived = "&7You have been revived."
command.spy.returned = "&7You were returned to your previous location"
command.spy.success = "&7You are now spying on &6%player%&7. Use the command &6/spy &7to return to your previous location&7"
command.spy.cant = "You cannot spy on yourself."
command.commandspy.deny = "&6%player%&7: %command%&7."
command.commandspy.toggleOn = "&7Command spy on";
command.commandspy.toggleOff = "&7Command spy off";