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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript to Java

Discussion in 'Java' started by couger44, May 17, 2019.

  1. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    312
    Likes Received:
    10
    What is the java code for this one from skript?

    Code (Skript):
    1. command /dp [<string>]:
    2.     permission: world.dp
    3.     permission message: §cNo permission.
    4.     trigger:
    5.         arg 1 is "si":
    6.             drop 10 enchanted golden apple at {dp.1}'s location
    Code (Java):
    1.  
    2. //How can I do that in java?
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,760
    Likes Received:
    124
    Which part?
     
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    312
    Likes Received:
    10
    Even though I know something about java, in some codes that I did it gave me errors, so I would prefer that all the code previously posted be transformed into java.
     
    #3 couger44, May 17, 2019
    Last edited: May 17, 2019
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    1,760
    Likes Received:
    124
    I recommend learning Java properly then, because although that is easy to do, that is a heck of a lot to write just because someone wants to transfer that to Java.

    Theres tutorials on SpigotMC (in the wiki) on how to create commands, that's the basic part there, the drop part, check the Spigot API docs, its in there as well.

    No ones going to spoon feed / re-write your Skript code in java.
     
  5. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    312
    Likes Received:
    10
    I asked for the simple reason, that when I used the "drop" effect, I threw the items, the players could pick it up, but when they went to their inventory and threw it away, it was returned.
     
Loading...