GLOBAL RSPS GUI [Only registered and activated users can see links. ]
Source: (Not noob friendly) [Only registered and activated users can see links. ]
JAR Library: (Recommened) [Only registered and activated users can see links. ]
Code:
Changlog:
-Displayed memory fixed
-Added dynamic players tab
-Combined everything needed by the server in one easy to use file
-Added the support of system look and feel
-Fixed a bug with displaying console text
and more!
Spoiler for Old Versions:
v0.1 source: [Only registered and activated users can see links. ]
v0.1 jar: [Only registered and activated users can see links. ]
Introduction:
I originally started this project with no future intended and didnt expect to be able to do much with it because of the flexibility I wanted to obtain with it, but after long hours of work and some trial and error I have come up with the perfect solution for all servers large or small, public or private, commercial or non-profit. I present to you the Global RuneScape Private Server Graphical User Interface, your total server solution you can easily manager your players on your server from an interface or read you console logs in a much easier way. No longer are you restricted to the black console window! Below you will find a tutorial on how to achieve all off this and more! thanks for reading!
----
Tutorial Part:
----
Spoiler for If using the source:
If you are using the source, it is recommended you compile it and make a jar(you will need to drag the Main.java and GuiHandler.java to the src/org/alexmason/cp folder) after compiling you need to place the GuiHandler.java in your server source files
Spoiler for If using the jar:
You will need to make a file called GuiHandler.java and place it with your server files:
Code:
//package org.alexmason.cp;
import javax.swing.*;
import java.awt.*;
import java.io.*;
import org.alexmason.cp.tab.*;
import org.alexmason.cp.tab.impl.PlayersTabImpl;
public class GuiHandler extends PrintStream implements PlayersTabImpl {
public String title = "RSPS Gui";
public boolean useSystemLAF = false; //Set true if using windows to use windows Look and Feel
public JPanel[] tabs = {(new SystemTab()), //What tabs you want to load SystemTab, ConsoleTab, and PlayersTab are included in the jar and source
(new ConsoleTab()),
(new PlayersTab(this))
};
//These are what each button does in the players tab
public void ban(DefaultListModel listModel) {
listModel.addElement("Ban");
System.out.println(listModel.size()+"");
}
public void mute(DefaultListModel listModel) {
listModel.addElement("Mute");
System.out.println(listModel.size()+"");
}
public void unmute(DefaultListModel listModel) {
listModel.addElement("Unmute");
System.out.println(listModel.size()+"");
}
public void kick(DefaultListModel listModel) {
listModel.addElement("Kick");
System.out.println(listModel.size()+"");
}
public void viewBank(DefaultListModel listModel) {
listModel.addElement("Bank");
System.out.println(listModel.size()+"");
}
public void viewInventory(DefaultListModel listModel) {
listModel.addElement("Inventory");
System.out.println(listModel.size()+"");
}
public void viewStats(DefaultListModel listModel) {
listModel.addElement("Stats");
System.out.println(listModel.size()+"");
}
public void clearView(DefaultListModel listModel) {
listModel.addElement("Clear");
System.out.println(listModel.size()+"");
}
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
//###########LEAVE EVERYTHING BELOW ALONE##############
public GuiHandler() {
super(new ByteArrayOutputStream()); //For the printstream
System.setOut(this);
System.setErr(this);
if(useSystemLAF) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch(Exception e) {
e.printStackTrace();
}
}
Gui g = new Gui(title, tabs);
g.load();
}
public void println(String str) {
ConsoleTab.append(str+"\n");
}
public void print(String str) {
ConsoleTab.append(str);
}
}
You need to edit all of the following methods in GuiHandler.java so they can work: