mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-11 21:43:54 +00:00
OPs can now have persistent tags (#108)
* new high end piece of software
- refactor all the shit to isEnabled
- idk debug
- gotta keep the messages consistent
- worldedit 🅱️ roke
- lockup description
- add /nh as an alias for namehistory
- yo /setl actually checks for w/e now cool
- gtfo and unban now are less bugs
- /whitelist is no longer written in tfm43 code and in beta
- l a m b a d a in help
- enable the bridges
- i worked on a converter for the login messages but then seth already made it work so fuck me i wasted an hour of my life
* whitelist
* i enabled them for testing
* OPs can now have persistent tags!
* Summary (required)
This commit is contained in:
@ -32,6 +32,9 @@ public class VPlayer implements ConfigLoadable, ConfigSavable, Validatable
|
||||
@Getter
|
||||
@Setter
|
||||
private Boolean forumEnabled = false;
|
||||
@Getter
|
||||
@Setter
|
||||
private String tag = null;
|
||||
|
||||
public VPlayer(String name)
|
||||
{
|
||||
@ -53,6 +56,7 @@ public class VPlayer implements ConfigLoadable, ConfigSavable, Validatable
|
||||
forumUsername = cs.getString("forumUsername", null);
|
||||
discordEnabled = cs.getBoolean("discordEnabled", false);
|
||||
forumEnabled = cs.getBoolean("forumEnabled", false);
|
||||
tag = cs.getString("tag", null);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -64,6 +68,7 @@ public class VPlayer implements ConfigLoadable, ConfigSavable, Validatable
|
||||
cs.set("forumUsername", forumUsername);
|
||||
cs.set("discordEnabled", discordEnabled);
|
||||
cs.set("forumEnabled", forumEnabled);
|
||||
cs.set("tag", tag);
|
||||
cs.set("ips", Lists.newArrayList(ips));
|
||||
}
|
||||
|
||||
@ -85,7 +90,6 @@ public class VPlayer implements ConfigLoadable, ConfigSavable, Validatable
|
||||
@Override
|
||||
public boolean isValid()
|
||||
{
|
||||
return name != null
|
||||
&& !ips.isEmpty();
|
||||
return name != null && !ips.isEmpty();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user