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

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need The Skript that limit each player to place all type of concrete at once with permissions

Discussion in 'Requests' started by nightXRage, May 14, 2021.

  1. nightXRage

    nightXRage Member

    Joined:
    May 14, 2021
    Messages:
    2
    Likes Received:
    0
    I Need The Skript that limit each player to place all type of concrete at once with permissions and all of the concretes in one permission

    example: concretes.limit.The Limit Number

    also something in scoreboard that show how much concrete player can place like 0/10 on scoreboard and if player place a concrete the score change to 1/10

    if you can help me with it pls do it thanks.
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    I'm sure there is a better way but with this you have to give the player multiple permissions, e.g. you want a limit of 5 then the player needs:
    concretes.limit.1 concretes.limit.2 concretes.limit.3 concretes.limit.4 concretes.limit.5

    Code (Text):
    1. on place of any concrete:
    2.   if {concretelimit::%player's uuid%} is not set:
    3.     set {concretelimit::%player's uuid%} to 0
    4.   if player has permission "concretes.limit.%{concretelimit::%player's uuid%}%":
    5.     add 1 to {concretelimit::%player's uuid%}
    6.   else:
    7.     cancel event
     

Share This Page

Loading...