I wanna a plugin who will kick auto all ops from game, with onjoin event!!! If player is Op = Kick!!! I really need it, well, im trying to learn pocketmine Api, if i dont succes my servers will be closed forever!!! Is just that forceOP users are more active than before :0
lol OpKick, not a bad idea. Why not manage op at file op.txt? You can also delete the strange or useless ops in there or remove op permissions at PurePerm's Config.yml
PHP: foreach($this->getServer()->getPlayers() as $i){ if($i->isOp(true){ $i->kick(/*This might need to have parameters...*/); }}
Oh no!!! Is there any other excuse you can come up with? "Force op users are more active than before"? If the server has an exploit that can op users (which there are none known at the time of writing) then you aught to be patching that exploit and not using workarounds. This sort of thing request looks like there's malicious intent involved.
If ForceOp were active in MCPE Server, the security would be getting down and lots of servers would be crashed
Yet that does not address the point that I am making. Kicking ops is bad because: * It does not address the hypothetical underlying issue you're talking about. It's like saying to not use admin accounts on your computer because someone will remotely hack into your computer and get administrative access on it. * It interferes with the expected PocketMine behavior and other plugins that depend on operators. * This sort of action can easily be abused for malicious purposes as previously explained. If someone is gaining control over your server and your solution is to block ops, that is a lowsy and dumb solution. What's to stop people from deleting your worlds, or even executing console commands? These are all possible with the use of RCON and breach of credentials.
Rcon is disambled , and i was hacked even on a vanilla pocketmine-mp server in past!! So many players had op -.-' Im using perms for managing admins , nobody needs OP!!! So rude. -.-. Maybe u sell hack op and scared to lose $$ And thx for code, you are so helpfull :3
Hi!! I need the plugin, or just the .php file, i tryed and didnt work T.T , i know a little php, but i know 0 about plugins i only edit lines T.T , i wanna to always check if a player is op!! And to kick him if is!!! Please , i know i ask too much but i dont wanna close my servers T.T
Here is a plugin. Also, since this thread is more like a request, please move your thread to: https://forums.pocketmine.net/forums/requests/
you will kick your self too because you are op if you want to manager already ops you can use this plugins to setpermissions to a player or a op to disable one of his powers http://github.com/amiroemad/op-manager
I dont use ops!! This is why i need kick OP, becouse ops can break portals by mystake, but thx so much, and i play vainglory too :3
I put the plugin, it show in /plugins, but is no working, i op myself in game, run commands, and no kick!!! I dont know how to move my thread
yEs, is onjoin event, i wanna onmove or at least onbreak!! If he is oped in game he can bypass this !!! Or to check every 10 seconds if a op is online and kick
Sorry for double post, i just wanna to say!!! Thx for helping :3 !!!! is hard to check and kick op every 5-10 seconds? Your op manager is awesome too, but you need to add more commands to block!!! Even the perm from iprotector were ops can break claimed area and perm from myplot so ops cant break plot!!!