summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsCommandHandler.java2
-rw-r--r--Essentials/src/com/earth2me/essentials/perm/AbstractSuperpermsPermission.java2
-rw-r--r--EssentialsSigns/src/com/earth2me/essentials/signs/EssentialsSignsPlugin.java4
3 files changed, 3 insertions, 5 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsCommandHandler.java b/Essentials/src/com/earth2me/essentials/EssentialsCommandHandler.java
index 4969e26bd..f047868d6 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsCommandHandler.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsCommandHandler.java
@@ -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"));
diff --git a/Essentials/src/com/earth2me/essentials/perm/AbstractSuperpermsPermission.java b/Essentials/src/com/earth2me/essentials/perm/AbstractSuperpermsPermission.java
index a6239e1af..e6ba3fdab 100644
--- a/Essentials/src/com/earth2me/essentials/perm/AbstractSuperpermsPermission.java
+++ b/Essentials/src/com/earth2me/essentials/perm/AbstractSuperpermsPermission.java
@@ -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());
}
diff --git a/EssentialsSigns/src/com/earth2me/essentials/signs/EssentialsSignsPlugin.java b/EssentialsSigns/src/com/earth2me/essentials/signs/EssentialsSignsPlugin.java
index 6f21a0f1a..04421161e 100644
--- a/EssentialsSigns/src/com/earth2me/essentials/signs/EssentialsSignsPlugin.java
+++ b/EssentialsSigns/src/com/earth2me/essentials/signs/EssentialsSignsPlugin.java
@@ -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