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.


Discussion in 'Other' started by MeHow, Nov 18, 2017.

  1. MeHow

    MeHow Active Member

    Feb 6, 2017
    Likes Received:
    Hello everyone,
    I am MeHow . I am working with JAVA and Skript so I want to show you what differences are between java and skript.

    In Java you have to write more than in Skript.

    If you want to do wait you need:
    In skript:
    Code (Skript):
    1. wait 2 seconds
    In Java:
    Code (Skript):
    1. new BukkitRunnable() {
    3.     @Override
    4.     public void run(){
    5.         code();
    6.     }
    7. }.runTaskLater(Main.getInstance(), 20*sec);
    If you want to loop list you need:
    In skript:
    Code (Skript):
    1. loop {list::*}:
    In Java:
    Code (Skript):
    1. for(String whatLooped : list){
    3. }
    If you want to create command with argument you need:
    In skript:
    Code (Skript):
    1. command /test [<text>]:
    In java:
    Code (Skript):
    1. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    2. }
    So I gave you 3 differences between java and skript.

    If you want more these OFF-Topic posts give me like.
    GeXyd, redbau, JonPlay and 1 other person like this.

Share This Page