Skript How Skript does their looping in java

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

jackYodil

Member
Jan 28, 2017
28
5
0
32
Skript does it like this (Java) (loop all players):

code_language.skript:
for (Player p : Bukkit.getOnlinePlayers()) {
     //Code Here
    //Example Code
    p.sendMessage("Hello!");

Skript does looping a list like this:
Java:
public ArrayList<String> stringhere;

for(String msg : stringhere) {
   //code here

These are not exact replicas but they work :emoji_slight_smile:

Hope this helped some of you java users!
 
Last edited:
Emm that's not how Skript does the loops exactly, if you look at the Loop.class, also, why you write this here? That's basic of Java so a Java developer will know that and the most part of the people here are scripters so.