Hello, Im currently working on a plugin and I want the series of broadcasts to start with a command, then stop after the last message
Code (Text): String msg = (String) messages.get(ran.nextInt(messages.size())); You could just make a variable x and set it to 0, then do messages.get(1 + x). In run(), add 1 to x every cycle and when 1 + x is equal to messages.size(), stop the scheduler. EDIT: A.K.A make a for loop