Solved how to use plugins on skript's

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

Status
Not open for further replies.

mynameisjosep

Member
Apr 25, 2020
29
0
0
23
guys i am using GangsPlus plugin
so i want to use GangsPlus plugin variables at skripts
i want do create a code like this
Code:
on damage:
    attacker is a player:
        victim is a player:
            if %gangsplus_in_gang% is "&aYes":
                cancel event
so gangsplus plugin is a gang create plugin like /f create
if player has a gang %gangsplus_in_gang% would be "&aYes"
so i want this if on damage if %gangsplus_in_gang% is yes dont give damage to player
 
Last edited:
Is it this plugin you have? https://www.spigotmc.org/resources/gangs-1-7-1-15.2604/
[doublepost=1590661739,1590660822][/doublepost]To do the following, you'll need skript-placeholders and PlaceholderAPI:

This command will return "no" if you're not in a gang.
Code:
command /ingang [<player>]:
    trigger:
        if arg 1 is set:
            set {_ingang} to placeholder "gangsplus_in_gang" from arg 1
            send "Result of placeholder is: %{_ingang}%"
        else:
            set {_ingang} to placeholder "gangsplus_in_gang" from player
            send "Result of placeholder is: %{_ingang}%"

Read skript-placeholders's documentation here: https://skripthub.net/docs/?addon=skript-placeholders
 
Is it this plugin you have? https://www.spigotmc.org/resources/gangs-1-7-1-15.2604/
[doublepost=1590661739,1590660822][/doublepost]To do the following, you'll need skript-placeholders and PlaceholderAPI:

This command will return "no" if you're not in a gang.
Code:
command /ingang [<player>]:
    trigger:
        if arg 1 is set:
            set {_ingang} to placeholder "gangsplus_in_gang" from arg 1
            send "Result of placeholder is: %{_ingang}%"
        else:
            set {_ingang} to placeholder "gangsplus_in_gang" from player
            send "Result of placeholder is: %{_ingang}%"

Read skript-placeholders's documentation here: https://skripthub.net/docs/?addon=skript-placeholders
can you do this on victim if victim %{_ingang}% is yes
[doublepost=1590671400][/doublepost]
Is it this plugin you have? https://www.spigotmc.org/resources/gangs-1-7-1-15.2604/
[doublepost=1590661739,1590660822][/doublepost]To do the following, you'll need skript-placeholders and PlaceholderAPI:

This command will return "no" if you're not in a gang.
Code:
command /ingang [<player>]:
    trigger:
        if arg 1 is set:
            set {_ingang} to placeholder "gangsplus_in_gang" from arg 1
            send "Result of placeholder is: %{_ingang}%"
        else:
            set {_ingang} to placeholder "gangsplus_in_gang" from player
            send "Result of placeholder is: %{_ingang}%"

Read skript-placeholders's documentation here: https://skripthub.net/docs/?addon=skript-placeholders
how can i set this at players example {_ingang::%player%}
 
can you do this on victim if victim %{_ingang}% is yes
[doublepost=1590671400][/doublepost]
how can i set this at players example {_ingang::%player%}
Code:
set {_ingang::%player%} to placeholder "gangsplus_in_gang" from player
 
Code:
set {_ingang::%player%} to placeholder "gangsplus_in_gang" from player
thank you for helping i will give you best answer but its didn't fixed my problem cuz i tried to download placeholders but not working but you helped me thanks.
 
Status
Not open for further replies.