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.3

Great player to player safe item trading script.

  1. Bug Fixes, Item Blacklisting

    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. ##   'Type' = Detect blacklisted item by item type (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. ## ItemType = The item type 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>)
    20. '1':
    21.     DetectionType: Name
    22.     TextDetectionType: Contains
    23.     ItemName: '&dGod Sword'
    25. '2':
    26.     DetectionType: Lore
    27.     TextDetectionType: Contains
    28.     ItemLore: '&7&oUntradeable...'
    30. '3':
    31.     DetectionType: Both
    32.     TextDetectionType: Is
    33.     ItemName: '&cForbidden Item'
    34.     ItemLore: '&7&oThis item cannot be traded.'
    36. '4':
    37.     DetectionType: Type
    38.     ItemType: 'diamond sword'
    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...
    AlvianMinecraft likes this.
Return to update list...