Jump to content

Custom Deop and Op commands (PERMISSIONSEX)


Recommended Posts

Hello, I've been working on a custom OP and DEOP command with some friends. If you would like one, than you can use this...

 

REQUIRED PLUGINS:

- PermissionsEX (

- Vault

- Skript

- TuSKe

-------------------------------------

Here is the skript, it is error-free. But if you have problems with it contact Playah#9673..

Discord server: discord.gg/PkHgRKa - I may release more skripts here soon!

 

command /deop <offlineplayer>:
    permission: deop.deop
    trigger:
        send "&cYou demoted %arg-1%&c!" to player
        send "&cYou were demoted by %player%" to arg-1
        if arg-1 is set:

            make console execute command "/deop %arg-1%"
        else:
            send "&c/Deop PLAYERNAME - Requires oppycustomops.deop permission."


command /op <offlineplayer>:
    permission: op.op
    trigger:
        send "&aYou opped %arg-1%&a!" to player
        send "&aYou were opped by %player%&a!" to arg-1
        if arg-1 is set:
            make console execute command "/op %arg-1%"
        else:
            send "&f/op <player>"

Thank you for reading!

 

Bonus skript: Welcome Message

on join:
  send "&6&lWelcome back %player%!"
on first join:
    send "&6WELCOME TO THE SERVER %PLAYER%!"

Edited by SovietPlayah
Link to post
Share on other sites

You're not really giving the player op. You're just giving a owner rank that just may have no permissions but * permission, the * permission cannot give every permission as you need proper OP

If you want to op, Use this code instead of executing the console command to give a player a rank:

op arg-1

or

op player

and to deop is just this:

deop arg 1

or

deop player

Edited by TacticalModz

I've been doing skript for 4 years and a half. I don't find my self a "better" skripter or do competitions against others.

I just wish people can just get along & just help each out and be kind to one and another.

 

I have been hosting ValkNet for 5 years and a half

ever since 2015 when i joined minehut around February or January.

 

I'm the owner of ValkyrieNetwork (known as ValkNet) | https://discord.gg/rPTYbQY

A great service that i provide for the minehut community!

 

Contact:

Discord: https://discord.gg/6rQu2Vn

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...