12
1

Nmr. 2 #242

Manuell gemergt
YoyoNow hat 3 Commits von adding_billo_april nach master 2021-04-01 00:12:22 +02:00 zusammengeführt
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -42,7 +42,8 @@ import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.Date;
import java.time.Instant;
import java.time.temporal.ChronoField;
import java.util.logging.Level;
public class FightSystem extends JavaPlugin {
@ -146,7 +147,7 @@ public class FightSystem extends JavaPlugin {
Fight.getBlueTeam().setSchem(Schematic.getSchemFromDB(Config.PrepareSchemID));
}
ISAPRIL = new Date().getDay() == 1 && new Date().getMonth() == 4;
ISAPRIL = Instant.now().get(ChronoField.DAY_OF_MONTH) == 1 && Instant.now().get(ChronoField.MONTH_OF_YEAR) == 4;
}
@Override

Datei anzeigen

@ -94,7 +94,7 @@ public class DenyWorldInteraction implements Listener {
}
}
@EventHandler()
@EventHandler
public void onPlayerJoin(PlayerJoinEvent event) {
if(FightSystem.ISAPRIL) {
PacketContainer demo = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE);