mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 21:17:00 +01:00
Added player.saveData and player.loadData.
This commit is contained in:
parent
5a04262051
commit
0f3f3c552a
2 changed files with 9 additions and 1 deletions
|
@ -39,7 +39,7 @@ public class ServerConfigurationManager {
|
|||
private File k;
|
||||
private File l;
|
||||
private File m;
|
||||
private PlayerFileData n;
|
||||
public PlayerFileData n; // CraftBukkit - private->public
|
||||
private boolean o;
|
||||
|
||||
// CraftBukkit start
|
||||
|
|
|
@ -201,6 +201,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
return getHandle().Z();
|
||||
}
|
||||
|
||||
public void loadData() {
|
||||
server.getHandle().n.b(getHandle());
|
||||
}
|
||||
|
||||
public void saveData() {
|
||||
server.getHandle().n.a(getHandle());
|
||||
}
|
||||
|
||||
public void updateInventory() {
|
||||
getHandle().m();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue