Applied-Energistics-2-tiler.../helpers/PlayerSecuirtyWrapper.java

24 lines
569 B
Java
Raw Normal View History

2014-05-13 06:15:46 +02:00
package appeng.helpers;
import java.util.EnumSet;
import java.util.HashMap;
import appeng.api.config.SecurityPermissions;
import appeng.api.networking.security.ISecurityRegister;
public class PlayerSecuirtyWrapper implements ISecurityRegister
{
final HashMap<Integer, EnumSet<SecurityPermissions>> target;
public PlayerSecuirtyWrapper(HashMap<Integer, EnumSet<SecurityPermissions>> playerPerms) {
target = playerPerms;
}
@Override
public void addPlayer(int PlayerID, EnumSet<SecurityPermissions> permissions)
{
target.put( PlayerID, permissions );
}
}