1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 18:44:48 +02:00

Serious bug is serious

This commit is contained in:
snowleo
2012-03-04 01:39:22 +01:00
parent cd5ae6a167
commit 57daa09e9a
3 changed files with 3 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ public class EssentialsCommandHandler implements ICommandHandler
}
// Check authorization
if (sender != null && cmd.isAuthorized(sender))
if (sender != null && !cmd.isAuthorized(sender))
{
LOGGER.log(Level.WARNING, _("deniedAccessCommand", user.getName()));
user.sendMessage(_("noAccessCommand"));

View File

@@ -35,7 +35,7 @@ public abstract class AbstractSuperpermsPermission implements IPermission
}
@Override
public boolean isAuthorized(CommandSender sender)
public boolean isAuthorized(final CommandSender sender)
{
return sender.hasPermission(getBukkitPermission());
}

View File

@@ -39,9 +39,7 @@ public class EssentialsSignsPlugin extends JavaPlugin implements ISignsPlugin
final SignEntityListener signEntityListener = new SignEntityListener(ess, this);
pluginManager.registerEvents(signEntityListener, this);
config = new SignsConfigHolder(ess, this);
LOGGER.info(_("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), "essentials team"));
config = new SignsConfigHolder(ess, this);
}
@Override