Added new data class for list of protected players. Created new event for entities getting damaged and made it so that protected players don't take damage.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package com.micle.loginprotection;
|
||||
|
||||
import com.micle.loginprotection.data.ProtectedPlayer;
|
||||
import com.micle.loginprotection.data.ProtectedPlayers;
|
||||
import com.micle.loginprotection.setup.Registration;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
@ -11,7 +12,7 @@ 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 static ProtectedPlayers protected_players = new ProtectedPlayers();
|
||||
|
||||
public LoginProtection() {
|
||||
Registration.register();
|
||||
|
||||
Reference in New Issue
Block a user