/* * This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that * it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If * not, see <http://www.gnu.org/licenses/>. */ package silentium.gameserver.board.Manager; import java.util.StringTokenizer; import silentium.gameserver.model.actor.instance.L2PcInstance; public class TopBBSManager extends BaseBBSManager { protected TopBBSManager() { } public static TopBBSManager getInstance() { return SingletonHolder._instance; } @Override public void parseCmd(String command, L2PcInstance activeChar) { if (command.equals("_bbshome")) { loadStaticHtm("index.htm", activeChar); } else if (command.startsWith("_bbshome;")) { StringTokenizer st = new StringTokenizer(command, ";"); st.nextToken(); loadStaticHtm(st.nextToken(), activeChar); } } @Override public void parseWrite(String ar1, String ar2, String ar3, String ar4, String ar5, L2PcInstance activeChar) { } @Override protected String getFolder() { return "top/"; } private static class SingletonHolder { protected static final TopBBSManager _instance = new TopBBSManager(); } }