mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 01:25:26 +02:00
That just leaves the big ol' core. Largely ignore Compat as it is very temporary.
This commit is contained in:
@@ -6,7 +6,9 @@ import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
public class ChatPermissions {
|
||||
|
||||
public class ChatPermissions
|
||||
{
|
||||
private static Map<String, IPermission> permissions = new HashMap<String, IPermission>();
|
||||
|
||||
public static IPermission getPermission(final String groupName)
|
||||
@@ -14,7 +16,7 @@ public class ChatPermissions {
|
||||
IPermission perm = permissions.get(groupName);
|
||||
if (perm == null)
|
||||
{
|
||||
perm = new BasePermission("essentials.chat.",groupName.toLowerCase(Locale.ENGLISH));
|
||||
perm = new BasePermission("essentials.chat.", groupName.toLowerCase(Locale.ENGLISH));
|
||||
permissions.put(groupName, perm);
|
||||
}
|
||||
return perm;
|
||||
|
@@ -1,8 +1,8 @@
|
||||
package com.earth2me.essentials.chat;
|
||||
|
||||
import com.earth2me.essentials.economy.Trade;
|
||||
import com.earth2me.essentials.api.IEssentials;
|
||||
import com.earth2me.essentials.api.IUser;
|
||||
import com.earth2me.essentials.economy.Trade;
|
||||
|
||||
|
||||
public class ChatStore
|
||||
|
@@ -45,9 +45,4 @@ public class EssentialsChat extends JavaPlugin
|
||||
final EssentialsLocalChatEventListener localChatListener = new EssentialsLocalChatEventListener(getServer(), ess);
|
||||
pluginManager.registerEvents(localChatListener, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
@@ -111,7 +111,7 @@ public abstract class EssentialsChatPlayer implements Listener
|
||||
|
||||
protected void handleLocalChat(final PlayerChatEvent event, final ChatStore chatStore)
|
||||
{
|
||||
|
||||
|
||||
long radius = 0;
|
||||
ISettings settings = ess.getSettings();
|
||||
settings.acquireReadLock();
|
||||
|
@@ -98,6 +98,7 @@ public class EssentialsLocalChatEvent extends Event implements Cancellable
|
||||
return parentEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HandlerList getHandlers()
|
||||
{
|
||||
return handlers;
|
||||
@@ -107,4 +108,4 @@ public class EssentialsLocalChatEvent extends Event implements Cancellable
|
||||
{
|
||||
return handlers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -3,8 +3,6 @@ package com.earth2me.essentials.chat;
|
||||
import static com.earth2me.essentials.I18n._;
|
||||
import com.earth2me.essentials.api.IEssentials;
|
||||
import com.earth2me.essentials.api.IUser;
|
||||
import com.earth2me.essentials.permissions.Permissions;
|
||||
import java.util.logging.Logger;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.World;
|
||||
@@ -18,7 +16,6 @@ public class EssentialsLocalChatEventListener implements Listener
|
||||
{
|
||||
protected transient IEssentials ess;
|
||||
protected final transient Server server;
|
||||
private static final Logger LOGGER = Logger.getLogger("Minecraft");
|
||||
|
||||
public EssentialsLocalChatEventListener(final Server server, final IEssentials ess)
|
||||
{
|
||||
|
Reference in New Issue
Block a user