RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
LMSGameEvent.java
1package com.osroyale.content.lms;
2
3import com.osroyale.content.lms.crate.LMSCrate;
4import com.osroyale.content.lms.lobby.LMSLobby;
5import com.osroyale.game.task.Task;
6
26
27public class LMSGameEvent extends Task {
28
29 public LMSGameEvent() {
30 super(1);
31 }
32
33 @Override
34 protected void execute() {
35 if(!LMSGame.gameInProgress) return;
36
38 LMSGame.gamePlayers.stream().forEach(player -> LMSGame.processPlayer(player));
39
42
43 if (LMSGame.crateTicks == 300) {
45 if(LMSGame.lmsCrate == null)
47 }
48
49 if(LMSGame.gameTicks == 100)
51
52 if (LMSGame.gameTicks >= 100)
54
55 if (--LMSGame.startingTicks >= 0) {
56 if (LMSGame.startingTicks > 0)
57 LMSGame.gamePlayers.stream().forEach(player -> player.speak(LMSGame.startingTicks + ".."));
58 else if (LMSGame.startingTicks == 0) {
59 LMSGame.gamePlayers.stream().forEach(player -> player.speak("FIGHT!"));
60 LMSGame.canAttack = true;
61 }
62 }
63 }
64
65}
static List< Player > gamePlayers
Definition LMSGame.java:80
static void processPlayer(Player player)
Definition LMSGame.java:535
Task(boolean instant, int delay)
Definition Task.java:75