summaryrefslogtreecommitdiffstats
path: root/Essentials/src/net/ess3/commands/Commandenchant.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/net/ess3/commands/Commandenchant.java')
-rw-r--r--Essentials/src/net/ess3/commands/Commandenchant.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandenchant.java b/Essentials/src/net/ess3/commands/Commandenchant.java
index 16c67f311..7f5dfdb91 100644
--- a/Essentials/src/net/ess3/commands/Commandenchant.java
+++ b/Essentials/src/net/ess3/commands/Commandenchant.java
@@ -23,7 +23,7 @@ public class Commandenchant extends EssentialsCommand
final ItemStack stack = user.getPlayer().getItemInHand();
if (stack == null)
{
- throw new Exception(_("You have nothing in your hand."));
+ throw new Exception(_("§4You have nothing in your hand."));
}
if (args.length == 0)
{
@@ -37,7 +37,7 @@ public class Commandenchant extends EssentialsCommand
//enchantmentslist.add(enchantmentName);
}
}
- throw new NotEnoughArgumentsException(_("Enchantments: {0}", Util.joinList(enchantmentslist.toArray())));
+ throw new NotEnoughArgumentsException(_(" §6Enchantments:§r {0}", Util.joinList(enchantmentslist.toArray())));
}
int level = -1;
if (args.length > 1)
@@ -78,11 +78,11 @@ public class Commandenchant extends EssentialsCommand
final String enchantmentName = enchantment.getName().toLowerCase(Locale.ENGLISH);
if (level == 0)
{
- user.sendMessage(_("The enchantment {0} has been removed from your item in hand.", enchantmentName.replace('_', ' ')));
+ user.sendMessage(_(" §6The enchantment§c {0} §6has been removed from your item in hand.", enchantmentName.replace('_', ' ')));
}
else
{
- user.sendMessage(_("The enchantment {0} has been applied to your item in hand.", enchantmentName.replace('_', ' ')));
+ user.sendMessage(_(" §6The enchantment§c {0} §6has been applied to your item in hand.", enchantmentName.replace('_', ' ')));
}
}
@@ -92,12 +92,12 @@ public class Commandenchant extends EssentialsCommand
final Enchantment enchantment = Enchantments.getByName(name);
if (enchantment == null)
{
- throw new Exception(_("Enchantment not found!"));
+ throw new Exception(_(" §4Enchantment not found!"));
}
final String enchantmentName = enchantment.getName().toLowerCase(Locale.ENGLISH);
if (user != null && !Permissions.ENCHANT.isAuthorized(user, enchantmentName))
{
- throw new Exception(_("You do not have the permission for {0}.", enchantmentName));
+ throw new Exception(_(" §4You do not have the permission for§c {0}§4.", enchantmentName));
}
return enchantment;
}