mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-02 02:33:08 +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();
|
boolean isAfk();
|
||||||
|
|
||||||
|
void setIgnoreMsg(boolean ignoreMsg);
|
||||||
|
|
||||||
|
boolean isIgnoreMsg();
|
||||||
|
|
||||||
void setConfigProperty(String node, Object object);
|
void setConfigProperty(String node, Object object);
|
||||||
|
|
||||||
Set<String> getConfigKeys();
|
Set<String> getConfigKeys();
|
||||||
|
|
|
@ -46,6 +46,7 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
private boolean recipeSee = false;
|
private boolean recipeSee = false;
|
||||||
private boolean enderSee = false;
|
private boolean enderSee = false;
|
||||||
private transient long teleportInvulnerabilityTimestamp = 0;
|
private transient long teleportInvulnerabilityTimestamp = 0;
|
||||||
|
private boolean ignoreMsg = false;
|
||||||
|
|
||||||
public User(final Player base, final IEssentials ess) {
|
public User(final Player base, final IEssentials ess) {
|
||||||
super(base, ess);
|
super(base, ess);
|
||||||
|
@ -593,6 +594,16 @@ public class User extends UserData implements Comparable<User>, IReplyTo, net.es
|
||||||
return isAuthorized("essentials.vanish.interact");
|
return isAuthorized("essentials.vanish.interact");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isIgnoreMsg() {
|
||||||
|
return ignoreMsg;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setIgnoreMsg(boolean ignoreMsg) {
|
||||||
|
this.ignoreMsg = ignoreMsg;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isVanished() {
|
public boolean isVanished() {
|
||||||
return vanished;
|
return vanished;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue