mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Updated way of loading
This commit is contained in:
@@ -13,6 +13,7 @@ import javax.swing.JButton;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import org.parabot.core.WebConstants;
|
||||
import org.parabot.environment.Environment;
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,7 @@ public class ServerWidget extends JPanel {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
try {
|
||||
load(new URL("http://parnassian.host56.com/" + name
|
||||
load(new URL(WebConstants.HOME + name
|
||||
+ ".jar"), name);
|
||||
} catch (MalformedURLException e1) {
|
||||
e1.printStackTrace();
|
||||
|
||||
@@ -9,6 +9,8 @@ import org.parabot.core.classpath.ClassPath;
|
||||
import org.parabot.environment.servers.ServerProvider;
|
||||
|
||||
/**
|
||||
*
|
||||
* An environment to load a server
|
||||
*
|
||||
* @author Clisprail
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user