summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/commands/Commandtpa.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandtpa.java')
-rw-r--r--Essentials/src/net/ess3/commands/Commandtpa.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandtpa.java b/Essentials/src/net/ess3/commands/Commandtpa.java
index 7339c8a9c..b108299ee 100644
--- a/Essentials/src/net/ess3/commands/Commandtpa.java
+++ b/Essentials/src/net/ess3/commands/Commandtpa.java
@@ -20,32 +20,32 @@ public class Commandtpa extends EssentialsCommand
IUser player = ess.getUserMap().matchUserExcludingHidden(args[0], user.getPlayer());
if (!player.getData().isTeleportEnabled())
{
- throw new Exception(_("{0} has teleportation disabled.", player.getPlayer().getDisplayName()));
+ throw new Exception(_("§c{0} §4has teleportation disabled.", player.getPlayer().getDisplayName()));
}
ISettings settings = ess.getSettings();
if (settings.getData().getGeneral().isPerGroupTeleport() && !Permissions.PERGROUPTELEPORT.isAuthorized(
user, ess.getRanks().getMainGroup(player)))
{
- throw new Exception(_("You do not have the {0} permission.", "essentials.teleport.groups." + ess.getRanks().getMainGroup(player)));
+ throw new Exception(_("§4You do not have the §c{0}§4 permission.", "essentials.teleport.groups." + ess.getRanks().getMainGroup(player)));
}
if (user.getPlayer().getWorld() != player.getPlayer().getWorld() && ess.getSettings().getData().getGeneral().isWorldTeleportPermissions() && !Permissions.WORLD.isAuthorized(
user, user.getPlayer().getWorld().getName()))
{
- throw new Exception(_("You do not have the {0} permission.", "essentials.world." + player.getPlayer().getWorld().getName()));
+ throw new Exception(_("§4You do not have the §c{0}§4 permission.", "essentials.world." + player.getPlayer().getWorld().getName()));
}
if (!player.isIgnoringPlayer(user))
{
player.requestTeleport(user, false);
- player.sendMessage(_("{0} has requested to teleport to you.", user.getPlayer().getDisplayName()));
- player.sendMessage(_("To teleport, type /tpaccept."));
- player.sendMessage(_("To deny this request, type /tpdeny."));
+ player.sendMessage(_("§c{0}§6 has requested to teleport to you.", user.getPlayer().getDisplayName()));
+ player.sendMessage(_("§6To teleport, type §c/tpaccept§6."));
+ player.sendMessage(_("§6To deny this request, type §c/tpdeny§6."));
int tpaAcceptCancellation = 0;
tpaAcceptCancellation = settings.getData().getCommands().getTeleport().getRequestTimeout();
if (tpaAcceptCancellation != 0)
{
- player.sendMessage(_("This request will timeout after {0} seconds.", tpaAcceptCancellation));
+ player.sendMessage(_("§6This request will timeout after§c {0} seconds§6.", tpaAcceptCancellation));
}
}
- user.sendMessage(_("Request sent to {0}.", player.getPlayer().getDisplayName()));
+ user.sendMessage(_("§6Request sent to§c {0}§6.", player.getPlayer().getDisplayName()));
}
}