mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Add IgnoreMsg API
This commit is contained in:
parent
fae159cdbd
commit
c592a9d361
2 changed files with 15 additions and 0 deletions
|
@ -127,6 +127,10 @@ public interface IUser {
|
|||
|
||||
boolean isAfk();
|
||||
|
||||
void setIgnoreMsg(boolean ignoreMsg);
|
||||
|
||||
boolean isIgnoreMsg();
|
||||
|
||||
void setConfigProperty(String node, Object object);
|
||||
|
||||
Set<String> getConfigKeys();
|
||||
|
|
|
@ -46,6 +46,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
|||
private boolean recipeSee = false;
|
||||
private boolean enderSee = false;
|
||||
private transient long teleportInvulnerabilityTimestamp = 0;
|
||||
private boolean ignoreMsg = false;
|
||||
|
||||
public User(final Player base, final IEssentials ess) {
|
||||
super(base, ess);
|
||||
|
@ -593,6 +594,16 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
|||
return isAuthorized("essentials.vanish.interact");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIgnoreMsg() {
|
||||
return ignoreMsg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIgnoreMsg(boolean ignoreMsg) {
|
||||
this.ignoreMsg = ignoreMsg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isVanished() {
|
||||
return vanished;
|
||||
|
|
Loading…
Reference in a new issue