public static void regent(User user, User target = null) { Election e = new Election(); if (target == null) { target = user; } e.ForceLeader(target.Name, ""); if (target.Player.FriendlyName != "Archpoet") { send_msg( " <color=#DD2222>*</color> <color=#EE44CC>" + UserManager.UILink(target.Name) + " is now the</color> " + "<color=#FFCC44>Regent</color> <color=#EE44CC>of the Realm.</color>", ChatCategory.Default, DefaultChatTags.Government ); System.Threading.Thread.Sleep(100); send_pm( " <color=#22DD22>*</color> <color=#44CCEE>You have been made Regent of the Realm.</color>", target.Player, ChatCategory.Default, DefaultChatTags.Government ); } else { send_msg( " <color=#DD2222>*</color> <color=#EE44CC>The</color> " + "<color=#FFCC44>King</color> <color=#EE44CC>has returned. Long live the</color> " + "<color=#FFCC44>King!</color>", ChatCategory.Default, DefaultChatTags.Government ); System.Threading.Thread.Sleep(100); send_pm( " <color=#22DD22>*</color> <color=#44CCEE>Welcome back, Your Majesty. <3</color>", target.Player, ChatCategory.Default, DefaultChatTags.Government ); } }