mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-16 11:37:30 +02:00
Serious bug is serious
This commit is contained in:
@@ -137,7 +137,7 @@ public class EssentialsCommandHandler implements ICommandHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check authorization
|
// Check authorization
|
||||||
if (sender != null && cmd.isAuthorized(sender))
|
if (sender != null && !cmd.isAuthorized(sender))
|
||||||
{
|
{
|
||||||
LOGGER.log(Level.WARNING, _("deniedAccessCommand", user.getName()));
|
LOGGER.log(Level.WARNING, _("deniedAccessCommand", user.getName()));
|
||||||
user.sendMessage(_("noAccessCommand"));
|
user.sendMessage(_("noAccessCommand"));
|
||||||
|
@@ -35,7 +35,7 @@ public abstract class AbstractSuperpermsPermission implements IPermission
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAuthorized(CommandSender sender)
|
public boolean isAuthorized(final CommandSender sender)
|
||||||
{
|
{
|
||||||
return sender.hasPermission(getBukkitPermission());
|
return sender.hasPermission(getBukkitPermission());
|
||||||
}
|
}
|
||||||
|
@@ -40,8 +40,6 @@ public class EssentialsSignsPlugin extends JavaPlugin implements ISignsPlugin
|
|||||||
pluginManager.registerEvents(signEntityListener, this);
|
pluginManager.registerEvents(signEntityListener, this);
|
||||||
|
|
||||||
config = new SignsConfigHolder(ess, this);
|
config = new SignsConfigHolder(ess, this);
|
||||||
|
|
||||||
LOGGER.info(_("loadinfo", this.getDescription().getName(), this.getDescription().getVersion(), "essentials team"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user