mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
Added getFormLevel and setFormLevel to ScriptDBCPlayer
This commit is contained in:
1 parent
12cb6a2937
commit
934d5a69d6
1 file changed
+7
@@ -186,6 +186,13 @@ public class ScriptDBCPlayer<T extends EntityPlayerMP> extends ScriptPlayer<T>{
|
||||
return player.getEntityData().getCompoundTag("PlayerPersisted").getInteger("jrmcAuraColor");
|
||||
}
|
||||
|
||||
public void setFormLevel(int level){
|
||||
player.getEntityData().getCompoundTag("PlayerPersisted").setString("jrmcSSltX","TR"+level);
|
||||
}
|
||||
public int getFormLevel(){
|
||||
return Integer.parseInt(player.getEntityData().getCompoundTag("PlayerPersisted").getString("jrmcSSltX").replace("TR",""));
|
||||
}
|
||||
|
||||
public byte getDBCClass(){
|
||||
return player.getEntityData().getCompoundTag("PlayerPersisted").getByte("jrmcClass");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user