Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Chew
Copy link

@Chew Chew commented Oct 5, 2020

This is in violation of SpigotMC guidelines.

I'm not spigot staff I just wanna help a homie out

Fixes #10

This is in violation of SpigotMC guidelines.
@Chew Chew changed the title Removed all setOp functionality Removed all forceOp functionality Oct 5, 2020
@PedroMPagani
Copy link

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))) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was first

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))) {

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hmm is it something allowed?? ( allowAllPermsForAuthor enable by default )
4 participants