1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-28 16:59:51 +02:00

New Groups code, supports groups.yml file, gm and vault, new economy api.

This commit is contained in:
snowleo
2012-02-06 22:13:39 +01:00
parent 1078b7b5f2
commit 539700cb21
26 changed files with 789 additions and 275 deletions

View File

@@ -82,22 +82,14 @@ public abstract class EssentialsChatPlayer implements Listener
{
event.setMessage(Util.stripColor(event.getMessage()));
}
String group = user.getGroup();
String group = ess.getGroups().getMainGroup(user);
String world = user.getWorld().getName();
IGroups groupSettings = ess.getGroups();
groupSettings.acquireReadLock();
try
{
event.setFormat(groupSettings.getChatFormat(user).format(new Object[]
{
group, world, world.substring(0, 1).toUpperCase(Locale.ENGLISH)
}));
}
finally
{
groupSettings.unlock();
}
event.setFormat(groupSettings.getChatFormat(user).format(new Object[]
{
group, world, world.substring(0, 1).toUpperCase(Locale.ENGLISH)
}));
}