2014-05-13 06:15:46 +02:00
|
|
|
package appeng.helpers;
|
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import appeng.api.config.SecurityPermissions;
|
2014-09-20 22:27:09 +02:00
|
|
|
import appeng.api.networking.security.ISecurityRegistry;
|
2014-05-13 06:15:46 +02:00
|
|
|
|
2014-09-21 01:44:25 +02:00
|
|
|
public class PlayerSecurityWrapper implements ISecurityRegistry
|
2014-05-13 06:15:46 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
final HashMap<Integer, EnumSet<SecurityPermissions>> target;
|
|
|
|
|
2014-09-21 01:44:25 +02:00
|
|
|
public PlayerSecurityWrapper(HashMap<Integer, EnumSet<SecurityPermissions>> playerPerms) {
|
2014-05-13 06:15:46 +02:00
|
|
|
target = playerPerms;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void addPlayer(int PlayerID, EnumSet<SecurityPermissions> permissions)
|
|
|
|
{
|
|
|
|
target.put( PlayerID, permissions );
|
|
|
|
}
|
|
|
|
}
|