Added /unlaugh and fixed /u ignore
This commit is contained in:
parent
e1e1ffe6b3
commit
199f28ac06
5 changed files with 19 additions and 19 deletions
Binary file not shown.
|
@ -12,6 +12,8 @@ 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.
|
description: Unlaugh the last laugh.
|
||||||
|
unlaugh:
|
||||||
|
description: Unlaugh the last laugh.
|
||||||
author: NorbiPeti
|
author: NorbiPeti
|
||||||
depend: [Essentials, Towny, Minigames]
|
depend: [Essentials, Towny, Minigames]
|
||||||
|
|
|
@ -112,24 +112,21 @@ public class Commands implements CommandExecutor {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "ignore": {
|
case "ignore": {
|
||||||
/*
|
if (p.FlairState.equals(FlairStates.Accepted)) {
|
||||||
* if (p.FlairState.equals(FlairStates.NoComment)) {
|
|
||||||
* player.sendMessage(
|
|
||||||
* "§cError: You need to write your username to the reddit thread at /r/TheButtonMinecraft§r"
|
|
||||||
* ); return true; } if
|
|
||||||
* (p.FlairState.equals(FlairStates.Commented)) {
|
|
||||||
* player.sendMessage(
|
|
||||||
* "Sorry, but your flair isn't recorded. Please ask a mod to set it for you."
|
|
||||||
* ); return true; } if
|
|
||||||
* (!p.FlairState.equals(FlairStates.Ignored)) {
|
|
||||||
* p.FlairState = FlairStates.Ignored; p.SetFlairTime("");
|
|
||||||
* p.UserName = ""; player.sendMessage(
|
|
||||||
* "§bYou have removed your flair. You can still use /u accept to get one.§r"
|
|
||||||
* ); } else
|
|
||||||
* player.sendMessage("§cYou already removed your flair.§r"
|
|
||||||
* );
|
|
||||||
*/
|
|
||||||
player.sendMessage("§cSorry, but ignoring the flair is no longer possible. As with the original Button, you can't undo what already happened.");
|
player.sendMessage("§cSorry, but ignoring the flair is no longer possible. As with the original Button, you can't undo what already happened.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (p.FlairState.equals(FlairStates.Commented)) {
|
||||||
|
player.sendMessage("Sorry, but your flair isn't recorded. Please ask a mod to set it for you.");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!p.FlairState.equals(FlairStates.Ignored)) {
|
||||||
|
p.FlairState = FlairStates.Ignored;
|
||||||
|
p.SetFlairTime("");
|
||||||
|
p.UserName = "";
|
||||||
|
player.sendMessage("§bYou have removed your flair. You can still use /u accept to get one.§r");
|
||||||
|
} else
|
||||||
|
player.sendMessage("§cYou already removed your flair.§r");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "admin": // 2015.08.09.
|
case "admin": // 2015.08.09.
|
||||||
|
@ -194,6 +191,7 @@ public class Commands implements CommandExecutor {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
case "unlaugh":
|
||||||
case "unlol": {
|
case "unlol": {
|
||||||
Player p = null;
|
Player p = null;
|
||||||
if (Lastlol != null
|
if (Lastlol != null
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue