mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-23 04:32:50 -04:00
Display pronouns in /whois, if selected
This commit is contained in:
parent
1bf0f7ae36
commit
225c17f629
@ -53,6 +53,10 @@ namespace MCGalaxy.DB
|
|||||||
internal static void CommonCoreLine(Player p, string fullName, string name, Group grp, int messages) {
|
internal static void CommonCoreLine(Player p, string fullName, string name, Group grp, int messages) {
|
||||||
p.Message("{0} &S({1}) has:", fullName, name);
|
p.Message("{0} &S({1}) has:", fullName, name);
|
||||||
p.Message(" Rank of {0}&S, wrote &a{1} &Smessages", grp.ColoredName, messages);
|
p.Message(" Rank of {0}&S, wrote &a{1} &Smessages", grp.ColoredName, messages);
|
||||||
|
|
||||||
|
Pronouns pro = Pronouns.GetFor(name);
|
||||||
|
if (pro == Pronouns.Default) { return; }
|
||||||
|
p.Message(" Pronouns: &a{0}", pro.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void MiscLine(Player p, string name, int deaths, int money) {
|
public static void MiscLine(Player p, string name, int deaths, int money) {
|
||||||
|
@ -36,7 +36,6 @@ namespace MCGalaxy {
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called once to initialize the defaults and write/read the config file as necessary.
|
/// Called once to initialize the defaults and write/read the config file as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="task"></param>
|
|
||||||
public static void Init(SchedulerTask task) {
|
public static void Init(SchedulerTask task) {
|
||||||
|
|
||||||
if (!Directory.Exists(PLAYER_PATH)) {
|
if (!Directory.Exists(PLAYER_PATH)) {
|
||||||
@ -221,7 +220,7 @@ namespace MCGalaxy {
|
|||||||
string path = PlayerPath(p.name);
|
string path = PlayerPath(p.name);
|
||||||
try {
|
try {
|
||||||
//Reduce clutter by simply erasing the file if it's default
|
//Reduce clutter by simply erasing the file if it's default
|
||||||
if (this.Name == Default.Name) { File.Delete(path); return; }
|
if (this == Default) { File.Delete(path); return; }
|
||||||
|
|
||||||
File.WriteAllText(path, Name);
|
File.WriteAllText(path, Name);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user