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 8caef44d72
commit 093f15edf3
4 changed files with 62 additions and 0 deletions

View File

@ -1,12 +1,17 @@
package com.micle.loginprotection;
import com.micle.loginprotection.data.ProtectedPlayer;
import com.micle.loginprotection.setup.Registration;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import java.util.ArrayList;
import java.util.List;
@Mod(LoginProtection.MOD_ID)
public class LoginProtection {
public static final String MOD_ID = "loginprotection";
public static List<ProtectedPlayer> protected_players = new ArrayList<>();
public LoginProtection() {
Registration.register();