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