Jump to content

Op/Deop Skript [2.0]


Recommended Posts

Here's the skript:

 

 

options:
    permission: deop.deop
    prefix: &c&lDEMOTER &8>>
    permission message: {@prefix} &cYou need the &4deop.deop &cpermission to use this command!
    usage: {@prefix} &c/deop PLAYERNAME
command /deop <offlineplayer>:
    trigger:
        send "{@prefix} &cYou demoted %arg-1%&c!" to player
        send "{@prefix} &cYou were demoted by %player%" to arg-1
        if arg-1 is set:
            make console execute command "/pex user %arg-1% group set default"
            make console execute command "/minecraft:deop %arg-1%"
        else:
            send "&c/Deop PLAYERNAME - Requires oppycustomops.deop permission."


options:
    prefix: &a&lPROMOTER&8 >>
    permission: deop.deop
    permission message: {@prefix} &cYou need the &4op.op &cpermission to use this command!
    usage: {@prefix} &c/op PLAYERNAME
command /op <offlineplayer>:
    permission: op.op
    trigger:
        send "{@prefix} &aYou opped %arg-1%&a!" to player
        send "{@prefix} &aYou were opped by %player%&a!" to arg-1
        if arg-1 is set:
            make console execute command "/pex user %arg-1% group set owner"
            make console execute command "/minecraft:op %arg-1%"
        else:
            send ""

Link to post
Share on other sites

@SovietPlayah Hey, you don't need to 2 options: as that will mess it up. Here's the fixed skript, that I hope works.
 

options:
	permission: deop.op
	prefix1: &c&lDEMOTER &8>>
	prefix2: &a&lPROMOTER&8 >>
	perm1: {@prefix1} &cYou need the &4deop.op &cpermission to use this command!
	perm2: {@prefix2} &cYou need the &4deop.op &cpermission to use this command!

command /deop [<offlineplayer>]:
	permission: {@permission}
	permission message: {@perm1}
	trigger:
		send "{@prefix1} &cYou demoted %arg-1%&c!" to player
        send "{@prefix1} &cYou were demoted by %player%" to arg-1
        if arg-1 is set:
        	make console execute command "/pex user %arg-1% group set default"
            make console execute command "/minecraft:deop %arg-1%"
        else:
            send "&c/Deop PLAYERNAME - Requires oppycustomops.deop permission."

command /op [<offlineplayer>]:
	permission: {@permission}
	permission message: {@perm2}
	trigger:
		send "{@prefix2} &aYou opped %arg-1%&a!" to player
        send "{@prefix2} &aYou were opped by %player%&a!" to arg-1
        if arg-1 is set:
            make console execute command "/pex user %arg-1% group set owner"
            make console execute command "/minecraft:op %arg-1%"
        else:
            send ""

 

IGN: Wolfeee_
Discord: Nathan.#4380


00243044b4b99f59989b7171466e765c.png

a.png

Link to post
Share on other sites

Oh lord I just noticed the indentation errors on my thing. Let me fix it!


EDIT:

I just noticed, that the indentation got messed up for my skript only when it got inserted into the <code> so if you copy and paste it, you should be good!

Edited by Wolfeee_

IGN: Wolfeee_
Discord: Nathan.#4380


00243044b4b99f59989b7171466e765c.png

a.png

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