Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Added player.saveData and player.loadData.
Dieser Commit ist enthalten in:
Ursprung
5a04262051
Commit
0f3f3c552a
@ -39,7 +39,7 @@ public class ServerConfigurationManager {
|
|||||||
private File k;
|
private File k;
|
||||||
private File l;
|
private File l;
|
||||||
private File m;
|
private File m;
|
||||||
private PlayerFileData n;
|
public PlayerFileData n; // CraftBukkit - private->public
|
||||||
private boolean o;
|
private boolean o;
|
||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
@ -201,6 +201,14 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
return getHandle().Z();
|
return getHandle().Z();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void loadData() {
|
||||||
|
server.getHandle().n.b(getHandle());
|
||||||
|
}
|
||||||
|
|
||||||
|
public void saveData() {
|
||||||
|
server.getHandle().n.a(getHandle());
|
||||||
|
}
|
||||||
|
|
||||||
public void updateInventory() {
|
public void updateInventory() {
|
||||||
getHandle().m();
|
getHandle().m();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren