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 Qusetion about placeholderapi skript

Discussion in 'Skript' started by YK_DZ, Jan 14, 2022 at 4:30 AM.

  1. YK_DZ

    YK_DZ Member

    Joined:
    Friday
    Messages:
    4
    Likes Received:
    0
    Hi
    I use Ersatz to create a placeholder skript
    The script is like this:
    Code (Text):
    1. command /dailyweather: # use this command to randomly choose the other weather
    2.   trigger:
    3.     set {_cmdWeather::*} to "dailyWeatherSun", "dailyWeatherWind", "dailyWeatherRain" and "dailyWeatherStorm"
    4.     make console execute "%random element of {_cmdWeather::*}%"
    5.  
    6. command /dailyWeatherSun:
    7.   trigger:
    8.     make console execute command "weather sun lock world"
    9.     make console execute command "broadcast Sun"
    10.  
    11. command /dailyWeatherWind:
    12.   trigger:
    13.     set {_season} to placeholder "rs_season" # From a plugin called RealisticSeasons
    14.     if {_season} is "Spring":
    15.       make console execute command "broadcast SW"
    16.     if {_season} is "Summer":
    17.       make console execute command "broadcast SUW"
    18.     if {_season} is "Fall":
    19.       make console execute command "broadcast FW"
    20.     if {_season} is "Winter":
    21.       make console execute command "broadcast WW"
    22.  
    23. command /dailyWeatherRain:
    24.   trigger:
    25.     make console execute command "weather rain lock world"
    26.     make console execute command "broadcast R"
    27.  
    28. command /dailyWeatherStorm:
    29.   trigger:
    30.     make console execute command "weather storm lock world"
    31.     make console execute command "broadcast ST"
    But when the /dailyWeatherWind was execute, this error will appear
    https://paste.ubuntu.com/p/nCx7hhNfjG/

    What can i do to solve this problem?
    --- Double Post Merged, Jan 14, 2022 at 5:25 AM, Original Post Date: Jan 14, 2022 at 4:30 AM ---
    Oh I just change the placehoder to rs_season_world and all things work correctly
    I this the rs_season need a player world to work
     

Share This Page

Loading...