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

Moving all default messages back to the code, where they should be

Also tweaking I18n class and YamlStorageWriter a bit
This commit is contained in:
snowleo
2013-04-06 04:02:15 +02:00
parent d17d7153dc
commit fd1c7f4fcc
201 changed files with 5156 additions and 3835 deletions

View File

@@ -28,7 +28,7 @@ public class EssentialsChat extends JavaPlugin
final IEssentials ess = (IEssentials)plugin.getEssentials();
if (!this.getDescription().getVersion().equals(plugin.getDescription().getVersion()))
{
LOGGER.log(Level.WARNING, _("versionMismatchAll"));
LOGGER.log(Level.WARNING, _("Version mismatch! Please update all Essentials jars to the same version."));
}
if (!plugin.isEnabled())
{

View File

@@ -32,7 +32,7 @@ public class EssentialsLocalChatEventListener implements Listener
for (Player onlinePlayer : server.getOnlinePlayers())
{
String type = _("chatTypeLocal");
String type = _("[L]");
final IUser user = ess.getUserMap().getUser(onlinePlayer);
if (user.isIgnoringPlayer(ess.getUserMap().getUser(sender)))
{
@@ -57,7 +57,7 @@ public class EssentialsLocalChatEventListener implements Listener
{
if (ChatPermissions.getPermission("spy").isAuthorized(user))
{
type = type.concat(_("chatTypeSpy"));
type = type.concat(_("[Spy]"));
}
}
}
@@ -65,4 +65,4 @@ public class EssentialsLocalChatEventListener implements Listener
user.sendMessage(message);
}
}
}
}

View File

@@ -37,4 +37,4 @@ public class EssentialsChatPlayerListenerLowest extends EssentialsChatPlayer
setChatStore(event, chatStore);
formatChat(event, chatStore);
}
}
}