Discord Thread where would i add the permission?

  • 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!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
code_language.skript:
command /AutoComp:
    trigger:
        if {arg::%player%} exists:
            clear {arg::%player%}
            send "&c&lAutoCompressor Off"
        else:
            set {arg::%player%} to true
            send "&6&lAutoComperssor On"
            
on mine of obsidian:
    {arg::%player%} = true
    if player has 32 obsidian:
        remove 32 obsidian from player
        give crying obsidian of aqua affinity with all flags hidden named "&0&lCompressed Obsidian" to player

on mine of oak wood:
    {arg::%player%} = true
    if player has 32 oak wood:
        remove 32 oak wood from player
        give brown terracotta of unbreaking 1 with all flags hidden named "&6Compressed Wood" to player
        


on mine of stone:
    {arg::%player%} = true
    if player has 32 Cobblestone:
        remove 32 Cobblestone from player
        give chiseled stone bricks of aqua affinity 1 with all flags hidden named "&7Compressed Stone" to player
        
        
on mine of iron ore:
    {arg::%player%} = true
    if player has 32 raw iron:
        remove 32 raw iron from player
        give white wool of aqua affinity 1 with all flags hidden named "&f&lCompressed Iron" to player
        
on mine of gold ore:
    {arg::%player%} = true
    if player has 32 raw gold:
        remove 32 raw gold from player
        give yellow wool of aqua affinity 1 with all flags hidden named "&6&lCompressed Gold" to player
        
on mine of lapis ore:
    {arg::%player%} = true
    if player has 32 lapis lazuli:
        remove 32 lapis lazuli from player
        give sea lantern of aqua affinity 1 with all flags hidden named "&b&lCompressed lapis" to player
this is my skript but i do not know where to put the permission

Posted by: shumansenpai from the skUnity Discord. View the thread on skUnity Discord here
 
code_language.skript:
command /AutoComp:
   permission: Autocomp.sk
   trigger:
      if {arg::%player%} exists:
      clear {arg::%player%}
      send "&c&lAutoCompressor Off"
      else:
      set {arg::%player%} to true
      send "&6&lAutoComperssor On"
yes
im tryna add the permission
this is what it tells me to make it
but it does not work

Posted by: shumansenpai from the skUnity Discord.
 
permission: some.permission
permission message: you dont have permission

command /AutoComp:
trigger:
if {arg::%player%} exists:
clear {arg::%player%}
send "&c&lAutoCompressor Off"
else:
set {arg::%player%} to true
send "&6&lAutoComperssor On"

on mine of obsidian:
{arg::%player%} = true
if player has 32 obsidian:
remove 32 obsidian from player
give crying obsidian of aqua affinity with all flags hidden named "&0&lCompressed Obsidian" to player

on mine of oak wood:
{arg::%player%} = true
if player has 32 oak wood:
remove 32 oak wood from player
give brown terracotta of unbreaking 1 with all flags hidden named "&6Compressed Wood" to player



on mine of stone:
{arg::%player%} = true
if player has 32 Cobblestone:
remove 32 Cobblestone from player
give chiseled stone bricks of aqua affinity 1 with all flags hidden named "&7Compressed Stone" to player


on mine of iron ore:
{arg::%player%} = true
if player has 32 raw iron:
remove 32 raw iron from player
give white wool of aqua affinity 1 with all flags hidden named "&f&lCompressed Iron" to player

on mine of gold ore:
{arg::%player%} = true
if player has 32 raw gold:
remove 32 raw gold from player
give yellow wool of aqua affinity 1 with all flags hidden named "&6&lCompressed Gold" to player

on mine of lapis ore:
{arg::%player%} = true
if player has 32 lapis lazuli:
remove 32 lapis lazuli from player
give sea lantern of aqua affinity 1 with all flags hidden named "&b&lCompressed lapis" to player
oops
wait
wait
ima just use atom beacuse im lazy to write in discord 1 sec

Posted by: sallamhallam from the skUnity Discord.
 
code_language.skript:
vb
command /AutoComp:
    permission: some.permission
    permission message: &4You dont have permission
    trigger:
        if {arg::%player%} exists:
            clear {arg::%player%}
            send "&c&lAutoCompressor Off"
        else:
            set {arg::%player%} to true
            send "&6&lAutoComperssor On"
            
on mine of obsidian:
    {arg::%player%} = true
    if player has 32 obsidian:
        remove 32 obsidian from player
        give crying obsidian of aqua affinity with all flags hidden named "&0&lCompressed Obsidian" to player

on mine of oak wood:
    {arg::%player%} = true
    if player has 32 oak wood:
        remove 32 oak wood from player
        give brown terracotta of unbreaking 1 with all flags hidden named "&6Compressed Wood" to player
        


on mine of stone:
    {arg::%player%} = true
    if player has 32 Cobblestone:
        remove 32 Cobblestone from player
        give chiseled stone bricks of aqua affinity 1 with all flags hidden named "&7Compressed Stone" to player
        
        
on mine of iron ore:
    {arg::%player%} = true
    if player has 32 raw iron:
        remove 32 raw iron from player
        give white wool of aqua affinity 1 with all flags hidden named "&f&lCompressed Iron" to player
        
on mine of gold ore:
    {arg::%player%} = true
    if player has 32 raw gold:
        remove 32 raw gold from player
        give yellow wool of aqua affinity 1 with all flags hidden named "&6&lCompressed Gold" to player
        
on mine of lapis ore:
    {arg::%player%} = true
    if player has 32 lapis lazuli:
        remove 32 lapis lazuli from player
        give sea lantern of aqua affinity 1 with all flags hidden named "&b&lCompressed lapis" to player

Posted by: sallamhallam from the skUnity Discord.
 
Status
Not open for further replies.