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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Items Require Permissions to Work

Discussion in 'Skript' started by JacoB_101, Nov 30, 2021.

  1. JacoB_101

    JacoB_101 Member

    Joined:
    Nov 30, 2021
    Messages:
    2
    Likes Received:
    0
    Can i make it so an item requires a permission to be used in game?
    For example, i have a sword called "Cool Sword" that does 8 Damage (Custom item).
    Can i make it so unless i have the permission "Cool Sword" it does no damage (the amount of a fist (1) is fine as well if its not possible to make it do 0

    Please help :emoji_grinning:
    --- Double Post Merged, Nov 30, 2021, Original Post Date: Nov 30, 2021 ---
    I was also wondering if this is possible to add with a command
    For example i have a skript like this:


    command /itemeditor <text> [<text>]:
    permission: itemeditor.use
    trigger:
    If arg-1 is "name":
    set name of player's held item to coloured arg-2

    If arg-1 is "lore":
    set lore of player's held item to coloured arg-2

    If arg-1 is "clearenchants":
    disenchant the player's tool

    I was wondering if i could make an arg that "Sets permission" or smth
    --- Double Post Merged, Nov 30, 2021 ---
    And i was also wondering how i can make it so i can add a "new line" option for the lore
    --- Double Post Merged, Nov 30, 2021 ---
    AND
    Sorry about all these post merges

    How can i make it so i can "hide enchantments" and attributes with a command as well
     
  2. I feel gloomy

    I feel gloomy Member

    Joined:
    Nov 30, 2021
    Messages:
    3
    Likes Received:
    0
    Yes you can make items can be used only if you have permission.

    on damage:
    if player's tool is <THE ITEM NOT NAME>:
    if player's tool is named "Cool Sword":
    if player has permission "coolsword.use":
    # dont write anything here
    if player does not have permission "coolsword.use":
    cancel event
     

Share This Page

Loading...