Parse PlaceholderAPI into skript

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

You can use skript-placeholders for PlaceholderAPI support.


After installing the plugin and running the server, try using a Placeholder value in Skript as a test. You can do it like this:


(Example from the DOCS)

Python:
command /ping <player>:
    trigger:
set {_ping} to the placeholder "player_ping" from arg-1 # PlaceholderAPI


If you successfully retrieve the {_ping} value, it means the plugin is working correctly.
 
Code:
on inventory click:
    if slot is chestplate or helmet or leggings or boots:
        cancel event
 
ok, then try

Code:
on inventory click:
    if event-slot is helmet:
        cancel event
    if event-slot is chestplate:
        cancel event
    if event-slot is leggings:
        cancel event
    if event-slot is boots:
        cancel event