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:
@@ -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())
|
||||
{
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -37,4 +37,4 @@ public class EssentialsChatPlayerListenerLowest extends EssentialsChatPlayer
|
||||
setChatStore(event, chatStore);
|
||||
formatChat(event, chatStore);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user