mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Parser now checks for dev mode
This commit is contained in:
@@ -1,12 +1,40 @@
|
||||
package org.parabot.core.parsers;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
import org.parabot.core.Core;
|
||||
import org.parabot.core.desc.ServerDescription;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Clisprail
|
||||
*
|
||||
*/
|
||||
public class ServerManifestParser {
|
||||
private URL url = null;
|
||||
|
||||
public ServerManifestParser(final URL url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets server descriptions
|
||||
* @return list of descriptions
|
||||
*/
|
||||
public ServerDescription[] getDescriptions() {
|
||||
if(Core.isDevMode()) {
|
||||
return localDesc();
|
||||
}
|
||||
return publicDesc();
|
||||
}
|
||||
|
||||
private ServerDescription[] publicDesc() {
|
||||
return null;
|
||||
}
|
||||
|
||||
private ServerDescription[] localDesc() {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user