let's add titles shall we

This commit is contained in:
Ivan
2019-11-30 12:43:16 -05:00
parent 9a50903c14
commit 4344ae58bf
4 changed files with 15 additions and 0 deletions

View File

@ -47,6 +47,7 @@ public class Command_warn extends FreedomCommand
String warnReason = StringUtils.join(ArrayUtils.subarray(args, 1, args.length), " ");
msg(player, ChatColor.RED + "[WARNING] You received a warning: " + warnReason);
player.sendTitle(ChatColor.RED + "You've been warned.", ChatColor.YELLOW + "Reason: " + warnReason, 20, 100, 60);
msg(ChatColor.GREEN + "You have successfully warned " + player.getName());
final StringBuilder adminNotice = new StringBuilder()
.append(ChatColor.RED)