Jump to content
Nd_

command with permission not working

Recommended Posts

                              make player execute command "/essentials:tp %{%player's uuid%.island.spawnx}% 200 0" with permission "essentials.command.tp"
                              make player execute command "//schem load SkyblockIsland" with permission "worldedit.*"
                              make player execute command "//paste" with permission "worldedit.*"

When I run this without any permissions(and no errors) it gives me this

image.png.d2117541600e66731b0c691f2bd06978.png

Share this post


Link to post
Share on other sites

When you make a player execute a command, it's like executing a command in your perspective. It doesn't make sense for you to not have a permission over something and the command is preventing you to run it, but you could run it by forcing a player to execute a command. That doesn't work like that.

Share this post


Link to post
Share on other sites
22 minutes ago, Water said:

When you make a player execute a command, it's like executing a command in your perspective. It doesn't make sense for you to not have a permission over something and the command is preventing you to run it, but you could run it by forcing a player to execute a command. That doesn't work like that.

I'm confused

Share this post


Link to post
Share on other sites

Firstly, get skUtilities. It's very useful and important for this skript to work.

Secondly, string <none> is displayed because you never set the variable for {%player's uuid%.island.spawnx}

Lastly, change your code to this and it should work:
 

                              make player execute command "/essentials:tp %{%player's uuid%.island.spawnx}% 200 0" as op
                              make player execute command "//schem load SkyblockIsland" as op
                              make player execute command "//paste" as op

Share this post


Link to post
Share on other sites
19 hours ago, Xeno_Synthesis said:

Firstly, get skUtilities. It's very useful and important for this skript to work.

Secondly, string <none> is displayed because you never set the variable for {%player's uuid%.island.spawnx}

Lastly, change your code to this and it should work:
 


                              make player execute command "/essentials:tp %{%player's uuid%.island.spawnx}% 200 0" as op
                              make player execute command "//schem load SkyblockIsland" as op
                              make player execute command "//paste" as op

Minehut doesn't have this plugin

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...