Setting CommentedOnReddit even if the user didn't get a flair.
This commit is contained in:
parent
f319889f10
commit
abead0e7a7
4 changed files with 3 additions and 3 deletions
Binary file not shown.
Binary file not shown.
|
@ -14,7 +14,7 @@ public class MaybeOfflinePlayer { // 2015.08.08.
|
||||||
// doesn't matter if they accepted it or not
|
// doesn't matter if they accepted it or not
|
||||||
public boolean AcceptedFlair;
|
public boolean AcceptedFlair;
|
||||||
public boolean IgnoredFlair;
|
public boolean IgnoredFlair;
|
||||||
public boolean FlairDecided; // 2015.08.09.
|
public boolean FlairDecided; // 2015.08.09. //TODO: Detect date
|
||||||
public boolean FlairRecognised; // 2015.08.10.
|
public boolean FlairRecognised; // 2015.08.10.
|
||||||
public boolean CommentedOnReddit; // 2015.08.10.
|
public boolean CommentedOnReddit; // 2015.08.10.
|
||||||
public boolean RPMode; // 2015.08.25.
|
public boolean RPMode; // 2015.08.25.
|
||||||
|
|
|
@ -162,6 +162,8 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||||
String finalflair;
|
String finalflair;
|
||||||
p.FlairDecided = true;
|
p.FlairDecided = true;
|
||||||
p.FlairRecognised = true;
|
p.FlairRecognised = true;
|
||||||
|
p.CommentedOnReddit = true;
|
||||||
|
p.UserName = username;
|
||||||
switch (flairclass) {
|
switch (flairclass) {
|
||||||
case "press-1":
|
case "press-1":
|
||||||
finalflair = "§c(" + text + ")§r";
|
finalflair = "§c(" + text + ")§r";
|
||||||
|
@ -202,8 +204,6 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
p.Flair = finalflair; // 2015.08.08.
|
p.Flair = finalflair; // 2015.08.08.
|
||||||
p.CommentedOnReddit = true; // 2015.08.10.
|
|
||||||
p.UserName = username; // 2015.08.08.
|
|
||||||
System.out.println("Added flair for " + p.PlayerName);
|
System.out.println("Added flair for " + p.PlayerName);
|
||||||
AppendPlayerDisplayFlair(p, Bukkit.getPlayer(uuid));
|
AppendPlayerDisplayFlair(p, Bukkit.getPlayer(uuid));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue