diff --git a/src/com/massivecraft/factions/zcore/Lang.java b/src/com/massivecraft/factions/zcore/Lang.java
new file mode 100644
index 00000000..86ef5c09
--- /dev/null
+++ b/src/com/massivecraft/factions/zcore/Lang.java
@@ -0,0 +1,11 @@
+package com.massivecraft.factions.zcore;
+
+public class Lang
+{
+ public static final String permForbidden = "You don't have permission to %s.";
+ public static final String permDoThat = "do that";
+
+ public static final String commandSenderMustBePlayer = "This command can only be used by ingame players.";
+ public static final String commandToFewArgs = "To few arguments. Use like this:";
+ public static final String commandToManyArgs = "Strange argument \"
%s\". Use the command like this:";
+}
diff --git a/src/com/massivecraft/factions/zcore/MCommand.java b/src/com/massivecraft/factions/zcore/MCommand.java
index 1f978ec6..a2c30aeb 100644
--- a/src/com/massivecraft/factions/zcore/MCommand.java
+++ b/src/com/massivecraft/factions/zcore/MCommand.java
@@ -173,7 +173,7 @@ public abstract class MCommand
{
if (informSenderIfNot)
{
- sender.sendMessage(p.txt.get("command.sender_must_me_player"));
+ sendMessageParsed(Lang.commandSenderMustBePlayer);
}
return false;
}
@@ -192,7 +192,7 @@ public abstract class MCommand
{
if (sender != null)
{
- sender.sendMessage(p.txt.get("command.to_few_args"));
+ sendMessageParsed(Lang.commandToFewArgs);
sender.sendMessage(this.getUseageTemplate());
}
return false;
@@ -204,7 +204,7 @@ public abstract class MCommand
{
// Get the to many string slice
List theToMany = args.subList(this.requiredArgs.size() + this.optionalArgs.size(), args.size());
- sender.sendMessage(String.format(p.txt.get("command.to_many_args"), TextUtil.implode(theToMany, " ")));
+ sendMessageParsed(Lang.commandToManyArgs, TextUtil.implode(theToMany, " "));
sender.sendMessage(this.getUseageTemplate());
}
return false;
diff --git a/src/com/massivecraft/factions/zcore/MPlugin.java b/src/com/massivecraft/factions/zcore/MPlugin.java
index 00ffd938..34ed9fd5 100644
--- a/src/com/massivecraft/factions/zcore/MPlugin.java
+++ b/src/com/massivecraft/factions/zcore/MPlugin.java
@@ -132,16 +132,6 @@ public abstract class MPlugin extends JavaPlugin
// These are not supposed to be used directly.
// They are loaded and used through the TextUtil instance for the plugin.
public Map tags = new LinkedHashMap();
- public Map lang = new LinkedHashMap();
-
- public void addLang()
- {
- this.lang.put("perm.forbidden", "You don't have permission to %s.");
- this.lang.put("perm.dothat", "do that");
- this.lang.put("command.sender_must_me_player", "This command can only be used by ingame players.");
- this.lang.put("command.to_few_args", "To few arguments. Use like this:");
- this.lang.put("command.to_many_args", "Strange argument \"%s\". Use the command like this:");
- }
public void addTags()
{
@@ -175,20 +165,15 @@ public abstract class MPlugin extends JavaPlugin
public void initTXT()
{
- this.addLang();
this.addTags();
Type type = new TypeToken