Anti-ForceOP
Anti-ForceOP
THANKS FOR 9000 DOWNLOADS!
Intoduction
Anti-ForceOPis a very simple plugin made for banning all the hackers/"Plugin creators" That forces the server to OP them. I've made a list in the config file where you can add names to the ones you want to be allowed to be OP.
It's an extremely lightweight plugin and will not take up much of your server RAM.
__________________
Features
- Bans ForceOppers
- Choose what players you want to have as OP.
- Choose what reason the banned forceOpper will get.
- UUID Support (Not needed, but useful)
- More Coming after requests!
__________________
Configuration
This is how the default config file looks like.
Config:
Ops: - RedstoneCookie - 9925daa8-1b07-472d-9194-7e93c951c554 BanReason: Trying to use some sort of ForceOP
How to use
- Put the player you want to make OP on the config file.
- Define your ban reason in the config file
- Save the config file.
- Then run /opreload to reload the Config file.
This means that only the players that have access to FTP files will have access to make people OP.
Why using it?
Becuase I think we've all had that friend that OPs a friend of his without your permission. If your friend or some hacker tries to do it They will get banned becuase they are not put into the config file list. This is also good for the players who come online and say "Can I have OP", Luckily, you can answer "Yeah, sure :)" And you OP him and he will get banned.
ForceOP hacks will also ban the player since he is not on the Config file list.
Known bugs
UUID does not work properly. Will be fixed shortly
You know you could improve your plugin and make it less resource impacting by reading the valid op list into memory and referencing that rather than doing two getConfig() calls within your runnable. Any process that uses disk IO is best avoided when running something that often. Also you should make a Boolean method like "isValidOP" so you can just call the one same code block from both the runnable and the onPlayerLogin. Usually when I find myself writing blocks of code that are the same like that, I try to move them to a function or address my program's flow to fix that.
Same with your onCommand. Instead of duplicating those three lines of code, just pull your if statement a little tighter and only write the three lines once.
Thanks for your feedback, but I made this a very long time ago when I wasn't too good at coding. I was more going for function rather than performance.
If I ever were to recode this plugin I would probably clean up alot of the code.
But as I see it now, I just don't wanna put in the effort and redo it.
If you don't like the function, you are more than welcome to use other plugins for the functions you are looking for.
Kind Regards
Sandis
@MCGamer000000
Thanks for the suggestion, I will look into adding permissions "*" to prevent people from getting every single permission aswell.
Please do because my server is getting hacked non-stop!
The part about "force op" is that it isn't just the /op command that is what is giving them op. It can simply be /pex user (name) add * and then BAM they have every perm in the game. What I would recommend to add would be that no one on the server has op but Admins - (You the owner) have 99% of the perms. Then make a permission where if you get it (Which you would get it by being op or giving a * permission) then you get banned.
@CeIebrimbor
Would this be something your interested in for 1.9?
Update to Spigot 1.9? Error on startup.
Hello! I found this plugin and it works me perfect, but one thing: Can you add a command to add ops in game to the config? It will be very helpful to starter server owners.
This is a very cool plugin! Only one problem. when i get opped and reloaded the server the plugin restoring the config to this normal!
What this problem?
ForceOP is still alive and well. For the naysayers that say an OP just gave out OP, please listen. While this might be a majority of the reason server owners lose control, it does not mean there are not ForceOP mods out there!
Right now, there is one mod that claims it is the only fully functional cheat mod out there and is being downloaded like wildfire. I only recently started searching for this plugin when a newjoin asked for OP and was OPed by the console 5 seconds later.
You may say, "Well who was OP on your server at the time?". NOBODY! I was online and wasn't even OP myself.
Needless to say, ForceOP is a thing and you should get a plugin like this that doesn't just block the OP command, but prevents OPs that aren't pre-approved in the config.
Hey!
Thank you so freaking much for creating this plugin, can i please have the source, its only for personal perpouses, i want to modify the code slightly so it tempbans and deop the player. Please email the source to [email protected].
Would it possible to make one for older versions such as 1.6.4? Or does it work for any.
@DHCGabber
It seems that 3200 people thinks that its usefull. This gives the server owner full control over the OP command instead of every OP have access to give everyone OP. There is a lot of benefits for this. This is a powerful plugin for about no RAM on your game server.
And if you only come here to put bad comments, I would like you to leave. Respect the plugins that is being made, and just enjoy!
Thank you for updating this to support UUID.
This works on 1.7.9 and I love it! Thank you!!!
Ive seen force op hacks, in video, and in person on my own server, nowadays they very much soo exsist. keep up the good work plugin designer i hope this can end the nightmare im facing
I like this and I think this will come in very handy. Thank you.
@itsbop
Sometimes minecraft or bukkit has glitches. Keep that in mind.
Pretty sure every ForceOP program out there is just a virus.
@chakyl
Actually Chakyl, this plugin is one of the most useful plugins. Some of the reasonings are before my staff actually gave them the OP permission node to their profile. Now you can just remove them from the list and if they OP themselves it will ban them. Also very rarely essentials have loop holes where you can use a Force OP.