Add IgnoreMsg API

This commit is contained in:
vemacs 2015-07-28 19:45:33 -06:00
parent fae159cdbd
commit c592a9d361
2 changed files with 15 additions and 0 deletions

View File

@ -127,6 +127,10 @@ public interface IUser {
boolean isAfk();
void setIgnoreMsg(boolean ignoreMsg);
boolean isIgnoreMsg();
void setConfigProperty(String node, Object object);
Set<String> getConfigKeys();

View File

@ -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;