Jump to content

Custom Deop and Op commands (PERMISSIONSEX)


SovietPlayah

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 comment
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

Start your Minecraft server today for as low as £0.50/weekly for up to 4 GB of RAM! (£3.50 Monthly) and be equipped for all situations with our high-performance gear keeping your servers running 24/7

Why choose Us?
• Guaranteed 99.9% Uptime
• NVMe RAID Fast Storage
• 24/7 Hosting
• Instant Setup
• 50% Discount. Use Code: 50OFF (Ends on November 11th)

We want to ensure our customers are happy with the service they received and support. We aim to provide low-costs those who cant afford a minecraft server. No extra costs, no setup fees! One-time payment and you are good to go with our instant setup feature we introduced to ensure your server is ready to go!

Planning to make a community or a project you want to work on? We got you covered! Our servers are optimized for performance and security, so you can have peace of mind and focus on your project. Our servers are also reliable and packed with features, so you can start playing right away.

We guarantee 99% uptime and 24/7 customer support, so you can always ask for help if you need it.

Links:
https://forums.valknet.org
https://billing.valknet.org
Invite: https://discord.gg/FqSRt4ZCAC

Link to comment
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...