Solved Console Execute

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
May 13, 2020
14
0
0
20
Script:
on right click on coal block:
if event-player is sneaking:
loop {generator::1::}:
if loop-value is event-location:
remove event-block's location from {generator::1::}
send action bar "{@prefix} You removed a level 1 generator" to player
set event-block to air
give coal block named "&l&0&bDiamond Generator &7(Level 1)" to player

How do I make this so that people without op can access this (aka new players). Howw do I make it so I can give the default players permissions on luckperms (/lp editor)
 
Script:
on right click on coal block:
if event-player is sneaking:
loop {generator::1::}:
if loop-value is event-location:
remove event-block's location from {generator::1::}
send action bar "{@prefix} You removed a level 1 generator" to player
set event-block to air
give coal block named "&l&0&bDiamond Generator &7(Level 1)" to player

How do I make this so that people without op can access this (aka new players). Howw do I make it so I can give the default players permissions on luckperms (/lp editor)
Fix the variable. This you putted.

code_language.skript:
loop {generator::1::}:
The name of the variable should not end with separators. In this case, add the :: * to your variable in the loop. Like this:
code_language.skript:
loop {generator::1::*}:
 
It already was like that, copy and pasted it wrong.
[doublepost=1589533465,1589533405][/doublepost]Will the player have access to this function?
 
Status
Not open for further replies.