RecordSystem (Beta) #199
@ -21,6 +21,7 @@ package de.steamwar.fightsystem.record;
|
|||||||
|
|
||||||
import de.steamwar.fightsystem.Config;
|
import de.steamwar.fightsystem.Config;
|
||||||
import de.steamwar.fightsystem.FightSystem;
|
import de.steamwar.fightsystem.FightSystem;
|
||||||
|
import de.steamwar.fightsystem.states.FightState;
|
||||||
import de.steamwar.sql.SteamwarUser;
|
import de.steamwar.sql.SteamwarUser;
|
||||||
import net.minecraft.server.v1_15_R1.BlockPosition;
|
import net.minecraft.server.v1_15_R1.BlockPosition;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
@ -274,6 +275,10 @@ public class RecordSystem {
|
|||||||
|
|
||||||
private static void checkWorldState(){
|
private static void checkWorldState(){
|
||||||
tick();
|
tick();
|
||||||
|
|
||||||
|
if(FightSystem.getFightState() == FightState.SPECTATE)
|
||||||
|
return;
|
||||||
|
|
||||||
for(TNTPrimed tnt : WORLD.getEntitiesByClass(TNTPrimed.class)){
|
for(TNTPrimed tnt : WORLD.getEntitiesByClass(TNTPrimed.class)){
|
||||||
entityMoves(tnt);
|
entityMoves(tnt);
|
||||||
entitySpeed(tnt);
|
entitySpeed(tnt);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren