Temporary OP

Discussion in 'Plugin Requests' started by LuanBogoqb, Aug 4, 2024.

Thread Status:
Not open for further replies.
  1. Offline

    LuanBogoqb

    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
     
  2. Offline

    AtomFeGaming

    Give this a go and let me know if that works for you.

    There are two ways to give someone temp OP:
    1. /tempop <player> - this grabs the value from the config.yml
    2. /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
     
  3. Offline

    CraftCreeper6

    @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.
     
  4. Offline

    AtomFeGaming

  5. Offline

    WhiskerCat

    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
     
    Last edited: Sep 2, 2024
Thread Status:
Not open for further replies.

Share This Page