WorldMOTD API
The API for this plugin is currently very small. If you would like a feature to be added, PM me the details! ArrayLists are used for the MOTD for the purpose of looping through them to produce the multiple line MOTD. Simple yet effective.
/* *Returns a string of currently online players separated by a comma. */ String playerList = WorldmotdAPI.getPlayerList();
/* *Returns an ArrayList of the MOTD that will be displayed when the player changes worlds. */ ArrayList<String> worldMotd = WorldmotdAPI.getWorldMotd(Player p, String World);
/* *Returns an ArrayList of the MOTD that is displayed when a player logs in to a a specific world. */ ArrayList<String> loginMotd = WorldmotdAPI.getLoginMotd(Player p, String World);
Comments