I found the way in the PEX and I simplified it:
First I need to declare a Field variable:
public static Field mezo;
After that, at OnEnable method I need to get CraftHumanEntitys perm field:
try{
mezo=Class.forName("org.bukkit.craftbukkit.v1_7_R1.entity.CraftHumanEntity").getDeclaredField("perm");
}
catch(Throwable h){
}
And at every player join I need to register the player:
Jogkezelheto uj=new Jogkezelheto(j);
try{
mezo.setAccessible(true);
mezo.set(j,uj);
}
catch (Throwable h){
}
Jogkezelheto is my class, which extends the PermissibleBase, such as the PermissiblePex is PEX. And it's working!