1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-02 09:07:08 +02:00

More translation stuff. Translated Spawn, Chat, Protect, GeoIP

Protect is only partly translated (sql stuff is not translated)
EssentialsSpawn is changed to use the onCommand from Essentials jar, since that is more up to date.

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1408 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-05-10 19:57:59 +00:00
parent 0671150c42
commit bc79d5acfc
13 changed files with 76 additions and 109 deletions

View File

@@ -20,7 +20,6 @@ public class EssentialsSpawn extends JavaPlugin
}
@SuppressWarnings("LoggerStringConcat")
public void onEnable()
{
Plugin p = this.getServer().getPluginManager().getPlugin("Essentials");
@@ -34,31 +33,18 @@ public class EssentialsSpawn extends JavaPlugin
getServer().getPluginManager().registerEvent(Type.PLAYER_JOIN, playerListener, Priority.Low, this);
if (!this.getDescription().getVersion().equals(Essentials.getStatic().getDescription().getVersion())) {
logger.log(Level.WARNING, "Version mismatch! Please update all Essentials jars to the same version.");
logger.log(Level.WARNING, Util.i18n("versionMismatchAll"));
}
logger.info("Loaded " + this.getDescription().getName() + " build " + this.getDescription().getVersion() + " maintained by " + AUTHORS);
logger.info(Util.format("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), Essentials.AUTHORS));
}
public void onDisable()
{
}
@SuppressWarnings(
{
"LoggerStringConcat", "CallToThreadDumpStack"
})
@Override
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args)
{
try
{
Essentials.previewCommand(sender, command, commandLabel, args);
return EssentialsSpawnWorker.onCommand(sender, command, commandLabel, args);
}
catch (Throwable ex)
{
ex.printStackTrace();
return true;
}
return Essentials.getStatic().onCommandEssentials(sender, command, commandLabel, args, EssentialsSpawn.class.getClassLoader(), "com.earth2me.essentials.spawn.Command");
}
}