/* ** j###t ########## #### #### ** j###t ########## #### #### ** j###T "###L J###" ** ######P' ########## ######### ** ######k, ########## T######T ** ####~###L #### ** #### q###L ########## .##### ** #### \###L ########## #####" ** ** $Id: ClanMotd.java,v 1.2 1997/07/21 10:56:30 subtle Exp subtle $ ** ** Class History ** ** Date Name Description ** ---------|------------|----------------------------------------------- ** 17Jul97 snapper creation ** 21Jul97 subtle added failure message ** */ package key.commands.clan; import key.*; import java.util.StringTokenizer; import java.util.Enumeration; import java.io.IOException; public class ClanMotd extends Command { public ClanMotd() { setKey( "motd" ); usage = ""; } public void run( Player p, StringTokenizer args, String fullLine, CategoryCommand caller, InteractiveConnection ic, Flags flags ) throws IOException { Screen motd = (Screen) p.getClan().getProperty( "motd" ); if( motd != null ) ic.send( motd ); else ic.sendFailure( "There doesn't seem to be a clan message at the moment." ); } }