mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-03 12:31:46 +00:00
Add and implement sign break/create/interact events to EssAPI
Implement AfkStatusChangeEvent
This commit is contained in:
parent
0b71b6e93d
commit
d48c02021d
12 changed files with 184 additions and 48 deletions
|
@ -729,19 +729,13 @@ public abstract class UserData extends PlayerExtension implements IConf
|
|||
return afk;
|
||||
}
|
||||
|
||||
public void setAfk(boolean set)
|
||||
public void _setAfk(boolean set)
|
||||
{
|
||||
afk = set;
|
||||
config.setProperty("afk", set);
|
||||
config.save();
|
||||
}
|
||||
|
||||
public boolean toggleAfk()
|
||||
{
|
||||
boolean ret = !isAfk();
|
||||
setAfk(ret);
|
||||
return ret;
|
||||
}
|
||||
private boolean newplayer;
|
||||
private String geolocation;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue