mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +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.JLabel;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
|
|
||||||
|
import org.parabot.core.WebConstants;
|
||||||
import org.parabot.environment.Environment;
|
import org.parabot.environment.Environment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -29,7 +30,7 @@ public class ServerWidget extends JPanel {
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
try {
|
try {
|
||||||
load(new URL("http://parnassian.host56.com/" + name
|
load(new URL(WebConstants.HOME + name
|
||||||
+ ".jar"), name);
|
+ ".jar"), name);
|
||||||
} catch (MalformedURLException e1) {
|
} catch (MalformedURLException e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import org.parabot.core.classpath.ClassPath;
|
|||||||
import org.parabot.environment.servers.ServerProvider;
|
import org.parabot.environment.servers.ServerProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
*
|
||||||
|
* An environment to load a server
|
||||||
*
|
*
|
||||||
* @author Clisprail
|
* @author Clisprail
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user