1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-15 11:04:29 +02:00

Track UUID for future use.

This commit is contained in:
KHobbits
2014-02-02 17:05:41 +00:00
parent 33156c4f83
commit 0b2526fc46
3 changed files with 10 additions and 1 deletions

4
.gitignore vendored
View File

@@ -46,4 +46,6 @@
.idea/
*.iml
target/
dependency-reduced-pom.xml
dependency-reduced-pom.xml
/Essentials/config.yml
/Essentials/userdata/testplayer1.yml

View File

@@ -230,6 +230,7 @@ public class EssentialsPlayerListener implements Listener
return;
}
user.trackUUID();
user.setLastLogin(currentTime);
user.setDisplayNick();
updateCompass(user);

View File

@@ -870,6 +870,12 @@ public abstract class UserData extends PlayerExtension implements IConf
config.save();
}
public void trackUUID()
{
config.setProperty("uuid", base.getUniqueId());
config.save();
}
public void setConfigProperty(String node, Object object)
{
final String prefix = "info.";