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.

Solved how to use plugins on skript's

Discussion in 'Skript' started by mynameisjosep, May 27, 2020.

Thread Status:
Not open for further replies.
  1. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    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 (Text):
    1. on damage:
    2.     attacker is a player:
    3.         victim is a player:
    4.             if %gangsplus_in_gang% is "&aYes":
    5.                 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

     
    #1 mynameisjosep, May 27, 2020
    Last edited: May 28, 2020
  2. Best Answer:
    Post #4 by WeeHee, May 28, 2020
  3. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    20
    Is it this plugin you have? https://www.spigotmc.org/resources/gangs-1-7-1-15.2604/
    --- Double Post Merged, May 28, 2020, Original Post Date: May 28, 2020 ---
    To do the following, you'll need skript-placeholders and PlaceholderAPI:

    This command will return "no" if you're not in a gang.
    Code (Text):
    1. command /ingang [<player>]:
    2.     trigger:
    3.         if arg 1 is set:
    4.             set {_ingang} to placeholder "gangsplus_in_gang" from arg 1
    5.             send "Result of placeholder is: %{_ingang}%"
    6.         else:
    7.             set {_ingang} to placeholder "gangsplus_in_gang" from player
    8.             send "Result of placeholder is: %{_ingang}%"
    Read skript-placeholders's documentation here: https://skripthub.net/docs/?addon=skript-placeholders
     
  4. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    can you do this on victim if victim %{_ingang}% is yes
    --- Double Post Merged, May 28, 2020 ---
    how can i set this at players example {_ingang::%player%}
     
  5. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    20
    Code (Text):
    1. set {_ingang::%player%} to placeholder "gangsplus_in_gang" from player
     
  6. mynameisjosep

    mynameisjosep Member

    Joined:
    Apr 25, 2020
    Messages:
    29
    Likes Received:
    0
    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.
     
  7. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    20
    What gang plugin are you using? It should work.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...