Moved loginserver servaname XML file to data folder.

This commit is contained in:
MobiusDev
2017-07-20 08:43:25 +00:00
parent 5a7592db4e
commit 346d322601
5 changed files with 4 additions and 11 deletions

View File

@@ -32,7 +32,7 @@ import com.l2jmobius.gameserver.script.Parser;
import com.l2jmobius.gameserver.script.ParserNotCreatedException;
import com.l2jmobius.gameserver.script.ScriptDocument;
import com.l2jmobius.gameserver.script.ScriptEngine;
import com.l2jmobius.gameserver.util.file.filter.XMLFilter;
import com.l2jmobius.util.file.filter.XMLFilter;
/**
* @author Luis Arias

View File

@@ -137,7 +137,7 @@ public class GameServerTable
*/
private void loadServerNames()
{
try (InputStream in = new FileInputStream("servername.xml");
try (InputStream in = new FileInputStream("data/servername.xml");
UTF8StreamReader utf8 = new UTF8StreamReader())
{
final XMLStreamReaderImpl xpp = new XMLStreamReaderImpl();
@@ -397,14 +397,7 @@ public class GameServerTable
Collections.sort(_gameServerList, gsComparator);
}
private final Comparator<GameServer> gsComparator = new Comparator<GameServer>()
{
@Override
public int compare(GameServer gs1, GameServer gs2)
{
return (gs1.server_id < gs2.server_id ? -1 : gs1.server_id == gs2.server_id ? 0 : 1);
}
};
private final Comparator<GameServer> gsComparator = (gs1, gs2) -> (gs1.server_id < gs2.server_id ? -1 : gs1.server_id == gs2.server_id ? 0 : 1);
/**
* @param thread

View File

@@ -14,7 +14,7 @@
* 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 com.l2jmobius.gameserver.util.file.filter;
package com.l2jmobius.util.file.filter;
import java.io.File;
import java.io.FileFilter;