Hi, im needing an command that temporary op's someone then it just deop the player. normally only admins will use it so if someone can make the perm: "temporaryop.use" how to use: /tmpop (player) (seconds) for minecraft version: 1.12.2 (normally its the version with the most plugins so i chose it) need by:whenever
Give this a go and let me know if that works for you. There are two ways to give someone temp OP: /tempop <player> - this grabs the value from the config.yml /tempop <player> <seconds> - overrides the config file and give them OP based off the <seconds> value https://github.com/bukkit-requests/TempOP/releases/tag/1.0
@LuanBogoqb There seems to be an obvious exploit here. Temp op a player, they real op their friend, friend reops the player after their temp op runs out. I'd say you probably also want to disable specific commands for this player, although that wouldn't be 'true' op. Then again, I don't know your use case.
View this updated release. I added a "restricted-commands" section in the config.yml that will stop the temp op player from running commands specified. https://github.com/bukkit-requests/TempOP/releases/tag/1.1
The problem with this now is that it doesn't store after restarts causing people that were temporarily op'd to have operator permanently, another exploit here is that they can leave just before it runs out and then join back and they'd also have operator permanently. I've had an attempt on your plugin request. I hope this is what you wanted. It's on Modrinth and GitHub