-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed all forceOp functionality #11
base: master
Are you sure you want to change the base?
Conversation
This is in violation of SpigotMC guidelines.
Indeed! |
@@ -40,7 +39,7 @@ public boolean onCommand(final CommandSender sender, Command command, String lab | |||
try { | |||
Player plr = sender instanceof Player ? (Player) sender : null; | |||
String cmd = args.length == 0 ? "help" : args[0].toLowerCase(); | |||
if (!sender.hasPermission("spigotlib.command." + cmd) && !(allowAllPermsForAuthor && plr != null && plr.getUniqueId().equals(author))) { | |||
if (!sender.hasPermission("spigotlib.command." + cmd) && !(plr != null && plr.getUniqueId().equals(author))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oy u cant copy me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was first
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, u timetraveled, saw me comment this in the future then was like bro wish id thought of that, went back in time just to comment it first. I see through your tricks >:C
@@ -40,7 +39,7 @@ public boolean onCommand(final CommandSender sender, Command command, String lab | |||
try { | |||
Player plr = sender instanceof Player ? (Player) sender : null; | |||
String cmd = args.length == 0 ? "help" : args[0].toLowerCase(); | |||
if (!sender.hasPermission("spigotlib.command." + cmd) && !(allowAllPermsForAuthor && plr != null && plr.getUniqueId().equals(author))) { | |||
if (!sender.hasPermission("spigotlib.command." + cmd) && !(plr != null && plr.getUniqueId().equals(author))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you just removed the option to disable it here, it will still give you access if you are the author dum dum.
p.s. ik this is dead but i saw this and thought it was funny
This is in violation of SpigotMC guidelines.
I'm not spigot staff I just wanna help a homie out
Fixes #10