Removed event handler for player tick since grace period is done with timers now.
This commit is contained in:
@ -1,14 +0,0 @@
|
|||||||
package dev.micle.loginprotection.events;
|
|
||||||
|
|
||||||
import dev.micle.loginprotection.LoginProtection;
|
|
||||||
import net.minecraftforge.event.TickEvent;
|
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
||||||
|
|
||||||
public class OnPlayerTickEventHandler {
|
|
||||||
@SubscribeEvent
|
|
||||||
public void PlayerTickEvent(TickEvent.PlayerTickEvent event) {
|
|
||||||
if (LoginProtection.protected_players.getPlayer(event.player.getUUID()) == null) { return; }
|
|
||||||
|
|
||||||
LoginProtection.protected_players.updateGracePeriod(event.player.getUUID());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user