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:
@@ -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)
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user