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 HELP

Discussion in 'Skript' started by novastosha, Apr 18, 2020.

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

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Why this is not working

    It does work in java but here with Skript and using Skript-mirror

    No reason why


    set {_wc} to new WorldCreator(arg 2)
    {_wc}.type(WorldType.FLAT)
     
  2. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    243
    Likes Received:
    22
    Did you even import anything? Also what is arg 2?
     
  3. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    The second argument is string
    Imports:
    Code (Python):
    1. import:
    2.     org.bukkit.WorldCreator
    3.     org.bukkit.WorldType
    4.     org.bukkit.Bukkit
     
  4. AsuDev

    VIP

    Joined:
    Jan 27, 2017
    Messages:
    243
    Likes Received:
    22
    This code works fine for me when I test it.
    Code (Skript):
    1. import:
    2.     org.bukkit.WorldCreator
    3.     org.bukkit.WorldType
    4.  
    5. command /createworld:
    6.     trigger:
    7.         set {_world} to new WorldCreator("newworld")
    8.         {_world}.type(WorldType.FLAT)
    9.         {_world}.createWorld()
     
  5. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    344
    Likes Received:
    22
    Oooh, I still doen't work even i'm making this in java its my main lang so yeh
     
Thread Status:
Not open for further replies.

Share This Page

Loading...