Fixed stuff
This commit is contained in:
parent
ffbd560c26
commit
65aad75a14
4 changed files with 9 additions and 4 deletions
Binary file not shown.
|
@ -12,6 +12,6 @@ commands:
|
||||||
description: Send message in Out-of-Character
|
description: Send message in Out-of-Character
|
||||||
usage: "&cUsage: /ooc <message>&r"
|
usage: "&cUsage: /ooc <message>&r"
|
||||||
unlol:
|
unlol:
|
||||||
description: Unlol the last lol. Context: https://www.reddit.com/r/TheButtonMinecraft/comments/3urd29//cxnecs8
|
description: Unlol the last lol.
|
||||||
author: NorbiPeti
|
author: NorbiPeti
|
||||||
depend: [Essentials, Towny, TownyChat, Minigames]
|
depend: [Essentials, Towny, TownyChat, Minigames]
|
||||||
|
|
|
@ -126,8 +126,10 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||||
continue;
|
continue;
|
||||||
if (!mp.UserNames.contains(author))
|
if (!mp.UserNames.contains(author))
|
||||||
mp.UserNames.add(author);
|
mp.UserNames.add(author);
|
||||||
if (mp.FlairState.equals(FlairStates.NoComment))
|
if (mp.FlairState.equals(FlairStates.NoComment)) {
|
||||||
mp.FlairState = FlairStates.Commented;
|
mp.FlairState = FlairStates.Commented;
|
||||||
|
ConfirmUserMessage(mp);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Thread.sleep(10);
|
Thread.sleep(10);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
|
@ -262,7 +264,10 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||||
public static void ConfirmUserMessage(MaybeOfflinePlayer mp) {
|
public static void ConfirmUserMessage(MaybeOfflinePlayer mp) {
|
||||||
Player p = Bukkit.getPlayer(mp.UUID);
|
Player p = Bukkit.getPlayer(mp.UUID);
|
||||||
if (mp.FlairState.equals(FlairStates.Commented) && p != null)
|
if (mp.FlairState.equals(FlairStates.Commented) && p != null)
|
||||||
p.sendMessage("§9" + "?§r §6Type /u accept or /u ignore§r");
|
if (mp.UserNames.size() > 1)
|
||||||
|
p.sendMessage("§9Multiple Reddit users commented your name. You can select with /u accept.§r §6Type /u accept or /u ignore§r");
|
||||||
|
else
|
||||||
|
p.sendMessage("§9A Reddit user commented your name. Is that you?§r §6Type /u accept or /u ignore§r");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Collection<? extends Player> GetPlayers() {
|
public static Collection<? extends Player> GetPlayers() {
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue