Added ProtectedPlayer.java for storing data on protected players. Created an event for players joining and adding the joined player to a list of protected players.

This commit is contained in:
micle
2021-06-03 15:28:05 +01:00
parent 9ae2e0b52d
commit 9a6489bf56
4 changed files with 62 additions and 0 deletions

View File

@ -1,10 +1,14 @@
package com.micle.loginprotection.setup;
import com.micle.loginprotection.events.OnEntityJoinEventHandler;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
public class Registration {
public static void register() {
IEventBus mod_event_bus = FMLJavaModLoadingContext.get().getModEventBus();
MinecraftForge.EVENT_BUS.register(new OnEntityJoinEventHandler());
}
}