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.

Script SafeTrade 1.1

Great player to player safe item trading script.

Tags:
  1. Bug Fixes, Item Blacklisting

    Revelationage
    Fixed Bugs:
    - A player can no longer accept the trade of someone who is already in a trade
    - /tradetoggle now requires a permission (trade.use)

    New Feature:
    - Item Blacklisting based off of name, lore, item id, and exact item

    Example blacklist.yml
    Code (YAML):
    1. ## This is the item blacklist for trading.
    2. ## Use /tblacklist <create,remove,set> <id> for managing the item blacklist.
    3. ##
    4. ## Detection Types:
    5. ##   'Name' = Detect blacklisted item by name (For DetectionType Option)
    6. ##   'Lore' = Detect blacklisted item by lore (For DetectionType Option)
    7. ##   'Both' = Detect blacklisted item by name and lore (For DetectionType Option)
    8. ##   'id' = Detect blacklisted item by item id (For DetectionType Option)
    9. ##   'ExactItem' = Detect blacklisted item by exact item (For DetectionType Option)
    10. ##
    11. ## Text Detection Types:
    12. ##   'Contains' = If name or lore of blacklisted item CONTAINS certain text (For TextDetectionType Option)
    13. ##   'Is' = If name or lore of blacklisted item IS certain text (For TextDetectionType Option)
    14. ##
    15. ## ItemName = The text to find in the name of a item (Applies when DetectionType is set to 'Name' or 'Both')
    16. ## ItemLore = The text to find in the lore of a item (Applies when DetectionType is set to 'Lore' or 'Both'
    17. ## ItemID = The item id of the item you want to blacklist (Applies when DetectionType is set to 'ID')
    18. ## ExactItem = Detection for an exact item (Applies when DetectionType is set to 'ExactItem'. To set an exact item, use /tblacklist set <id>)
    19.  
    20. '1':
    21.     DetectionType: Name
    22.     TextDetectionType: Contains
    23.     ItemName: '&dGod Sword'
    24.  
    25. '2':
    26.     DetectionType: Lore
    27.     TextDetectionType: Contains
    28.     ItemLore: '&7&oUntradeable...'
    29.  
    30. '3':
    31.     DetectionType: Both
    32.     TextDetectionType: Is
    33.     ItemName: '&cForbidden Item'
    34.     ItemLore: '&7&oThis item cannot be traded.'
    35.  
    36. '4':
    37.     DetectionType: id
    38.     ItemID: '276'
    39.  
    40. '5':
    41.     DetectionType: ExactItem
    42.     ExactItem:
    43.         ==: org.bukkit.inventory.ItemStack
    44.         type: DIAMOND_SWORD
    45.         meta:
    46.             ==: ItemMeta
    47.             meta-type: UNSPECIFIC
    48.             display-name: §bBlargghhh
    49.             lore:
    50.            - §9Trolls use this weapon...
    51.  
    AlvianMinecraft likes this.
Return to update list...