JAVA VS SKRIPT

  • 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!

MeHow

Active Member
Feb 6, 2017
140
13
18
22
Lithuania
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_language.skript:
wait 2 seconds

In Java:
code_language.skript:
new BukkitRunnable() {

    @Override
    public void run(){
        code();
    }
}.runTaskLater(Main.getInstance(), 20*sec);

If you want to loop list you need:
In skript:
code_language.skript:
loop {list::*}:

In Java:
code_language.skript:
for(String whatLooped : list){

}

If you want to create command with argument you need:
In skript:
code_language.skript:
command /test [<text>]:

In java:
code_language.skript:
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
}

So I gave you 3 differences between java and skript.

If you want more these OFF-Topic posts give me like.