SovietPlayah Posted April 14, 2020 Share Posted April 14, 2020 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 comment Share on other sites More sharing options...
Wolfeee_ Posted April 14, 2020 Share Posted April 14, 2020 @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 Link to comment Share on other sites More sharing options...
Wolfeee_ Posted April 14, 2020 Share Posted April 14, 2020 (edited) 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 April 14, 2020 by Wolfeee_ IGN: Wolfeee_ Discord: Nathan.#4380 Link to comment Share on other sites More sharing options...
SovietPlayah Posted April 19, 2020 Author Share Posted April 19, 2020 Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now