Removed panel

This commit is contained in:
verinia 2019-05-29 09:31:07 -08:00
parent 101b8314c9
commit d650b93c91
34 changed files with 215 additions and 939 deletions

190
.idea/09HDscape.iml generated Normal file
View file

@ -0,0 +1,190 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file:///production/09HDscape" />
<output-test url="file:///test/09HDscape" />
<exclude-output />
<content url="file://$MODULE_DIR$/09HDscape-client">
<sourceFolder url="file://$MODULE_DIR$/09HDscape-client/src" isTestSource="false" />
</content>
<content url="file://$MODULE_DIR$/09HDscape-management-server">
<sourceFolder url="file://$MODULE_DIR$/09HDscape-management-server/src" isTestSource="false" />
</content>
<content url="file://$MODULE_DIR$/09HDscape-server">
<sourceFolder url="file://$MODULE_DIR$/09HDscape-server/src" isTestSource="false" />
</content>
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/gluegen-rt.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/jogl.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/laf-plugin-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/laf-widget-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/substance-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/trident-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-client/lib/twitter4j-core-4.0.3-SNAPSHOT.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-management-server/lib/commons-io-2.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-management-server/lib/laf-plugin-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-management-server/lib/laf-widget-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-management-server/lib/mysql-connector-java-5.1.30-bin.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-management-server/lib/substance-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-management-server/lib/trident-7.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-server/data/libs/commons-io-2.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-server/data/libs/guava-18.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-server/data/libs/javassist-3.20.0-GA.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-server/data/libs/joda-time-2.9.9.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-server/data/libs/mysql-connector-java-5.1.30-bin.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/09HDscape-server/data/libs/reflections-0.9.10.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>

6
.idea/misc.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://C:/" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/09HDscape.iml" filepath="$PROJECT_DIR$/.idea/09HDscape.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

View file

@ -22,13 +22,13 @@ public class Initializer {
* @param args
*/
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(new org.pushingpixels.substance.api.skin.SubstanceTwilightLookAndFeel());
/*try {
// UIManager.setLookAndFeel(new org.pushingpixels.substance.api.skin.SubstanceTwilightLookAndFeel());
JFrame.setDefaultLookAndFeelDecorated(true);
} catch (UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}*/
EventQueue.invokeLater(new Runnable() {
@Override

View file

@ -1,58 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<VBox fx:id="legendFrame" prefHeight="556.0" prefWidth="694.0" xmlns="http://javafx.com/javafx/8.0.91" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.crandor.tools.panel.Controller">
<children>
<AnchorPane fx:id="mainFrame" maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" prefWidth="670.0" VBox.vgrow="ALWAYS">
<children>
<Label layoutX="48.0" layoutY="21.0" prefHeight="26.0" prefWidth="55.0" text="Players">
<font>
<Font size="14.0" />
</font>
</Label>
<TextArea fx:id="systemLogger" editable="false" layoutX="147.0" layoutY="277.0" prefHeight="107.0" prefWidth="528.0" wrapText="true" />
<ComboBox fx:id="punishmentBox" layoutX="218.0" layoutY="47.0" prefWidth="150.0" promptText="Punishments" />
<ComboBox fx:id="toolsBox" layoutX="467.0" layoutY="47.0" prefWidth="150.0" promptText="Tools" />
<Label layoutX="147.0" layoutY="257.0" text="Console">
<font>
<Font size="14.0" />
</font>
</Label>
<TextArea fx:id="playersList" layoutX="14.0" layoutY="47.0" prefHeight="337.0" prefWidth="123.0" />
<TextField fx:id="announcementField" layoutX="147.0" layoutY="232.0" prefHeight="25.0" prefWidth="470.0" />
<Label layoutX="147.0" layoutY="216.0" text="World announcement :">
<font>
<Font size="14.0" />
</font>
</Label>
<Button fx:id="announcementButton" layoutX="632.0" layoutY="232.0" mnemonicParsing="false" text="Send" />
</children>
</AnchorPane>
<AnchorPane fx:id="vali" maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" VBox.vgrow="ALWAYS">
<children>
<PasswordField fx:id="validationKey" layoutX="199.0" layoutY="147.0" prefHeight="25.0" prefWidth="243.0" />
<Label layoutX="232.0" layoutY="6.0" prefHeight="74.0" prefWidth="178.0" text="Staff Validation">
<font>
<Font name="Times New Roman" size="27.0" />
</font>
</Label>
<Label layoutX="90.0" layoutY="151.0" text="Validation Key :">
<font>
<Font name="Times New Roman" size="15.0" />
</font>
</Label>
<Button fx:id="submitButton" layoutX="455.0" layoutY="147.0" mnemonicParsing="false" text="Submit" />
</children>
</AnchorPane>
</children>
</VBox>

View file

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<VBox fx:id="legendFrame" prefHeight="556.0" prefWidth="694.0" xmlns="http://javafx.com/javafx/8.0.91" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.crandor.tools.panel.Controller">
<children>
<AnchorPane fx:id="mainFrame" maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" prefWidth="670.0" VBox.vgrow="ALWAYS">
<children>
<Label layoutX="48.0" layoutY="21.0" prefHeight="26.0" prefWidth="55.0" text="Players">
<font>
<Font size="14.0" />
</font>
</Label>
<TextArea fx:id="systemLogger" editable="false" layoutX="147.0" layoutY="236.0" prefHeight="148.0" prefWidth="433.0" wrapText="true" />
<ComboBox fx:id="punishmentBox" layoutX="149.0" layoutY="47.0" prefWidth="150.0" promptText="Punishments" />
<ComboBox fx:id="toolsBox" layoutX="288.0" layoutY="175.0" prefWidth="150.0" promptText="Tools" />
<ComboBox fx:id="ranksBox" layoutX="408.0" layoutY="47.0" prefWidth="150.0" promptText="Ranks" />
<Label layoutX="338.0" layoutY="216.0" text="Console">
<font>
<Font size="14.0" />
</font>
</Label>
<TextArea fx:id="playersList" layoutX="14.0" layoutY="47.0" prefHeight="337.0" prefWidth="123.0" />
</children>
</AnchorPane>
<AnchorPane fx:id="vali" maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" VBox.vgrow="ALWAYS">
<children>
<PasswordField fx:id="validationKey" layoutX="199.0" layoutY="147.0" prefHeight="25.0" prefWidth="243.0" />
<Label layoutX="232.0" layoutY="6.0" prefHeight="74.0" prefWidth="178.0" text="Staff Validation">
<font>
<Font name="Times New Roman" size="27.0" />
</font>
</Label>
<Label layoutX="90.0" layoutY="151.0" text="Validation Key :">
<font>
<Font name="Times New Roman" size="15.0" />
</font>
</Label>
<Button fx:id="submitButton" layoutX="455.0" layoutY="147.0" mnemonicParsing="false" text="Submit" />
</children>
</AnchorPane>
</children>
</VBox>

View file

@ -21,7 +21,7 @@ import org.crandor.tools.backup.AutoBackup;
* @author Vexia
*
*/
public final class Main extends Application {
public final class Main {
/**
* The time stamp of when the server started running.
@ -50,7 +50,7 @@ public final class Main extends Application {
// }
startTime = System.currentTimeMillis();
final TimeStamp t = new TimeStamp();
backup = new AutoBackup();
// backup = new AutoBackup();
GameWorld.prompt(true);
SQLManager.init();
Runtime.getRuntime().addShutdownHook(new Thread(new SystemShutdownHook()));
@ -78,12 +78,4 @@ public final class Main extends Application {
public static void setStartTime(long startTime) {
Main.startTime = startTime;
}
@Override
public void start(Stage primaryStage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("Main Frame.fxml"));
primaryStage.setTitle("Management Panel");
primaryStage.setScene(new Scene(root, 600, 450));
primaryStage.show();
}
}

View file

@ -77,8 +77,6 @@ import org.crandor.net.packet.out.SkillLevel;
import org.crandor.net.packet.out.UpdateSceneGraph;
import org.crandor.plugin.Plugin;
import org.crandor.tools.StringUtils;
import org.crandor.tools.panel.Controller;
import org.crandor.tools.panel.PlayerListPulse;
import java.util.ArrayList;
import java.util.List;
@ -250,7 +248,6 @@ public class Player extends Entity {
*/
private final HunterManager hunterManager = new HunterManager(this);
private final PlayerListPulse playerListPulse = new PlayerListPulse(this);
/**
* The treasure trail manager.
@ -277,7 +274,6 @@ public class Player extends Entity {
*/
private final IronmanManager ironmanManager = new IronmanManager(this);
private final Controller controller = new Controller(this);
/**
* The logout plugins.
@ -1261,13 +1257,6 @@ public class Player extends Entity {
this.skillTasks = skillTasks;
}
public Controller getController() {
return controller;
}
public PlayerListPulse getPlayerListPulse() {
return playerListPulse;
}
@Override

View file

@ -1,25 +0,0 @@
package org.crandor.tools.panel;
/**
* Package -> ethan
* Created on -> 8/31/2016 @9:54 PM for CP
*
* @author Ethan Kyle Millard
*/
public enum BoxOptions {
PUNISHMENTS(new String[] {"Temp. Mute", "Perm. Mute", "IP Mute", "Un-mute", "Temp. Ban", "Perm. Ban", "IP Ban", "Un-ban"}),
TOOLS(new String[] {"NPC Definitions", "Item Definitions "}),
RANKS(new String[] {"Promote", "Demote"});
private String[] options;
BoxOptions(String[] options) {
this.options = options;
}
public String[] getOptions() {
return options;
}
}

View file

@ -1,20 +0,0 @@
package org.crandor.tools.panel;
import javafx.scene.control.TextArea;
import java.io.IOException;
import java.io.OutputStream;
public class Console extends OutputStream {
private TextArea output;
public Console(TextArea ta) {
this.output = ta;
}
@Override
public void write(int i) throws IOException {
output.appendText(String.valueOf((char) i));
}
}

View file

@ -1,198 +0,0 @@
package org.crandor.tools.panel;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
import javafx.stage.Modality;
import javafx.stage.Stage;
import org.crandor.tools.TimeStamp;
import org.crandor.ServerConstants;
import org.crandor.game.node.entity.player.Player;
import org.crandor.game.system.SystemLogger;
import org.crandor.game.system.SystemShutdownHook;
import org.crandor.game.system.mysql.SQLManager;
import org.crandor.game.world.GameWorld;
import org.crandor.net.NioReactor;
import org.crandor.net.amsc.WorldCommunicator;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintStream;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.Scanner;
import static javafx.scene.layout.VBoxBuilder.create;
public class Controller extends AnchorPane implements Initializable {
private ObservableList<String> rankData = FXCollections.observableArrayList();
private ObservableList<String> punishmentData = FXCollections.observableArrayList();
private ObservableList<String> toolsData = FXCollections.observableArrayList();
private ObservableList<String> playerListData = FXCollections.observableArrayList();
@FXML
private PasswordField validationKey;
@FXML
private AnchorPane vali;
@FXML
private AnchorPane mainFrame;
@FXML
private VBox legendFrame;
@FXML
private Button submitButton;
@FXML
private TextArea playersList;
@FXML
private TextArea systemLogger;
@FXML
private ComboBox<String> punishmentBox;
@FXML
private ComboBox<String> toolsBox;
@FXML
private ComboBox<String> ranksBox;
public static long startTime;
public static NioReactor reactor;
private Player player;
public Controller() {
for (String options : BoxOptions.RANKS.getOptions()) {
rankData.add(options);
}
for (String options : BoxOptions.PUNISHMENTS.getOptions()) {
punishmentData.add(options);
}
for (String options : BoxOptions.TOOLS.getOptions()) {
toolsData.add(options);
}
}
public Controller(Player player) {
this.player = player;
}
private EventHandler<ActionEvent> loginEventHandler = event -> {
try {
Scanner scanner = new Scanner(new File("key.cfg"));
String key = scanner.next();
String sha1Encryption = Encrypt.encryptSHA1(validationKey.getText());
if (sha1Encryption.length() == key.length()) {
if (sha1Encryption.equalsIgnoreCase(key)) {
Stage accessMessage = new Stage();
Button okayButton = new Button("Ok");
okayButton.setOnAction((closeErrorEvent) -> {
legendFrame.getChildren().remove(vali);
legendFrame.getChildren().add(mainFrame);
accessMessage.close();
try {
startTime = System.currentTimeMillis();
final TimeStamp t = new TimeStamp();
GameWorld.prompt(true);
SQLManager.init();
Runtime.getRuntime().addShutdownHook(new Thread(new SystemShutdownHook()));
SystemLogger.log("Starting NIO reactor...");
reactor = NioReactor.configure(43593 + GameWorld.getSettings().getWorldId());
WorldCommunicator.connect();
reactor.start();
SystemLogger.log(GameWorld.getName() + " flags " + GameWorld.getSettings().toString());
SystemLogger.log(GameWorld.getName() + " started in " + t.duration(false, "") + " milliseconds.");
} catch (Throwable throwable) {
throwable.printStackTrace();
}
});
accessMessage.initModality(Modality.NONE);
accessMessage.setScene(new Scene(create().children(new Text("[Success] - Access granted.\n"), okayButton).alignment(Pos.CENTER).padding(new Insets(5)).build()));
accessMessage.show();
} else {
Stage errorMessage = new Stage();
Button okayButton = new Button("Ok");
okayButton.setOnAction((closeErrorEvent) -> errorMessage.close());
errorMessage.initModality(Modality.WINDOW_MODAL);
errorMessage.setScene(new Scene(create().children(new Text("[Error] - Incorrect validation key.\n"), okayButton).alignment(Pos.CENTER).padding(new Insets(5)).build()));
errorMessage.show();
ServerConstants.VALIDATED = false;
}
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (Throwable throwable) {
throwable.printStackTrace();
}
};
private EventHandler<ActionEvent> comboBoxEventHandler = event -> {
if (event.getSource() == ranksBox) {
}
if (event.getSource() == punishmentBox) {
}
if (event.getSource() == toolsBox) {
}
};
@Override
public void initialize(URL location, ResourceBundle resources) {
legendFrame.getChildren().remove(mainFrame);
submitButton.setOnAction(loginEventHandler);
validationKey.setOnAction(loginEventHandler);
ranksBox.setOnAction(comboBoxEventHandler);
ranksBox.setItems(rankData);
punishmentBox.setItems(punishmentData);
toolsBox.setItems(toolsData);
Console console = new Console(systemLogger);
PrintStream ps = new PrintStream(console, true);
System.setOut(ps);
System.setErr(ps);
}
public TextArea getPlayersList() {
return playersList;
}
public ObservableList<String> getPlayerListData() {
return playerListData;
}
}

View file

@ -1,64 +0,0 @@
package org.crandor.tools.panel;
import java.security.MessageDigest;
/**
* Handles the encryption of player passwords.
*
* @author Apache Ah64
*/
public class Encrypt {
/**
* Encrypt the string using the SHA-1 encryption algorithm.
*
* @param string
* The string.
* @return The encrypted string.
*/
public static String encryptSHA1(String string) {
String hash = null;
try {
hash = byteArrayToHexString(hash(string));
} catch (Exception e) {
e.printStackTrace();
}
return hash;
}
/**
* Encrypt the string to a SHA-1 hash.
*
* @param x
* The string to encrypt.
* @return The byte array.
* @throws Exception
* when an exception occurs.
*/
public static byte[] hash(String x) throws Exception {
MessageDigest string;
string = MessageDigest.getInstance("SHA-1");
string.reset();
string.update(x.getBytes());
return string.digest();
}
/**
* Converts a byte array to hex string.
*
* @param b
* The byte array.
* @return The hex string.
*/
public static String byteArrayToHexString(byte[] b) {
StringBuffer string = new StringBuffer(b.length * 2);
for (int i = 0; i < b.length; i++) {
int v = b[i] & 0xff;
if (v < 16) {
string.append('0');
}
string.append(Integer.toHexString(v));
}
return string.toString();
}
}

View file

@ -1,35 +0,0 @@
package org.crandor.tools.panel;
import org.crandor.game.node.entity.player.Player;
import org.crandor.game.system.task.Pulse;
import org.crandor.game.world.GameWorld;
import org.crandor.game.world.callback.CallBack;
/**
* Package -> org.keldagrim.tools.panel
* Created on -> 9/1/2016 @2:09 AM for Server
*
* @author Ethan Kyle Millard
*/
public final class PlayerListPulse extends Pulse implements CallBack {
private Player player;
public PlayerListPulse(Player player) {
this.player = player;
}
@Override
public boolean pulse() {
System.out.println("new pulse");
player.getController().getPlayersList().appendText(player.getName() + "\n");
System.out.println(player.getName());
return false;
}
@Override
public boolean call() {
GameWorld.submit(this);
return true;
}
}

View file

@ -1,18 +0,0 @@
bin/**
out/**
data/logs/**
data/profile/**
.idea/**
/bin
.DS_Store**
.project**
.classpath**
.class**
/bin/
/out/
data/cache/
*.iml
*.eml
*.userlibraries
*.class
data/players/**

View file

@ -1,12 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

View file

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: org.runite.GameLaunch

Binary file not shown.

Binary file not shown.

View file

@ -1,51 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<VBox fx:id="legendFrame" prefHeight="556.0" prefWidth="694.0" xmlns="http://javafx.com/javafx/8.0.91" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.crandor.tools.panel.Controller">
<children>
<AnchorPane fx:id="mainFrame" maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" prefWidth="670.0" VBox.vgrow="ALWAYS">
<children>
<Label layoutX="48.0" layoutY="21.0" prefHeight="26.0" prefWidth="55.0" text="Players">
<font>
<Font size="14.0" />
</font>
</Label>
<TextArea fx:id="systemLogger" editable="false" layoutX="147.0" layoutY="236.0" prefHeight="148.0" prefWidth="433.0" wrapText="true" />
<ComboBox fx:id="punishmentBox" layoutX="149.0" layoutY="47.0" prefWidth="150.0" promptText="Punishments" />
<ComboBox fx:id="toolsBox" layoutX="288.0" layoutY="175.0" prefWidth="150.0" promptText="Tools" />
<ComboBox fx:id="ranksBox" layoutX="408.0" layoutY="47.0" prefWidth="150.0" promptText="Ranks" />
<Label layoutX="338.0" layoutY="216.0" text="Console">
<font>
<Font size="14.0" />
</font>
</Label>
<TextArea fx:id="playersList" layoutX="14.0" layoutY="47.0" prefHeight="337.0" prefWidth="123.0" />
</children>
</AnchorPane>
<AnchorPane fx:id="vali" maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" VBox.vgrow="ALWAYS">
<children>
<PasswordField fx:id="validationKey" layoutX="199.0" layoutY="147.0" prefHeight="25.0" prefWidth="243.0" />
<Label layoutX="232.0" layoutY="6.0" prefHeight="74.0" prefWidth="178.0" text="Staff Validation">
<font>
<Font name="Times New Roman" size="27.0" />
</font>
</Label>
<Label layoutX="90.0" layoutY="151.0" text="Validation Key :">
<font>
<Font name="Times New Roman" size="15.0" />
</font>
</Label>
<Button fx:id="submitButton" layoutX="455.0" layoutY="147.0" mnemonicParsing="false" text="Submit" />
</children>
</AnchorPane>
</children>
</VBox>

View file

@ -1,365 +0,0 @@
private void readValues(int i, InputStream stream, int opcode) {
if (opcode != 1 && opcode != 5) {
if (opcode != 2) {
if (opcode != 14) {
if (opcode != 15) {
if (opcode == 17) {
projectileCliped = false;
clipType = 0;
} else if (opcode != 18) {
if (opcode == 19)
secondInt = stream.readUnsignedByte();
else if (opcode == 21)
aByte3912 = (byte) 1;
else if (opcode != 22) {
if (opcode != 23) {
if (opcode != 24) {
if (opcode == 27)
clipType = 1;
else if (opcode == 28)
anInt3892 = (stream
.readUnsignedByte() << 2);
else if (opcode != 29) {
if (opcode != 39) {
if (opcode < 30 || opcode >= 35) {
if (opcode == 40) {
int i_53_ = (stream
.readUnsignedByte());
originalColors = new short[i_53_];
modifiedColors = new short[i_53_];
for (int i_54_ = 0; i_53_ > i_54_; i_54_++) {
originalColors[i_54_] = (short) (stream
.readUnsignedShort());
modifiedColors[i_54_] = (short) (stream
.readUnsignedShort());
}
} else if (opcode != 41) {
if (opcode != 42) {
if (opcode != 62) {
if (opcode != 64) {
if (opcode == 65)
anInt3902 = stream
.readUnsignedShort();
else if (opcode != 66) {
if (opcode != 67) {
if (opcode == 69)
anInt3925 = stream
.readUnsignedByte();
else if (opcode != 70) {
if (opcode == 71)
anInt3889 = stream
.readShort() << 2;
else if (opcode != 72) {
if (opcode == 73)
secondBool = true;
else if (opcode == 74)
notCliped = true;
else if (opcode != 75) {
if (opcode != 77
&& opcode != 92) {
if (opcode == 78) {
anInt3860 = stream
.readUnsignedShort();
anInt3904 = stream
.readUnsignedByte();
} else if (opcode != 79) {
if (opcode == 81) {
aByte3912 = (byte) 2;
anInt3882 = 256 * stream
.readUnsignedByte();
} else if (opcode != 82) {
if (opcode == 88)
aBoolean3853 = false;
else if (opcode != 89) {
if (opcode == 90)
aBoolean3870 = true;
else if (opcode != 91) {
if (opcode != 93) {
if (opcode == 94)
aByte3912 = (byte) 4;
else if (opcode != 95) {
if (opcode != 96) {
if (opcode == 97)
aBoolean3866 = true;
else if (opcode == 98)
aBoolean3923 = true;
else if (opcode == 99) {
anInt3857 = stream
.readUnsignedByte();
anInt3835 = stream
.readUnsignedShort();
} else if (opcode == 100) {
anInt3844 = stream
.readUnsignedByte();
anInt3913 = stream
.readUnsignedShort();
} else if (opcode != 101) {
if (opcode == 102)
anInt3838 = stream
.readUnsignedShort();
else if (opcode == 103)
thirdInt = 0;
else if (opcode != 104) {
if (opcode == 105)
aBoolean3906 = true;
else if (opcode == 106) {
int i_55_ = stream
.readUnsignedByte();
anIntArray3869 = new int[i_55_];
anIntArray3833 = new int[i_55_];
for (int i_56_ = 0; i_56_ < i_55_; i_56_++) {
anIntArray3833[i_56_] = stream
.readUnsignedShort();
int i_57_ = stream
.readUnsignedByte();
anIntArray3869[i_56_] = i_57_;
anInt3881 += i_57_;
}
} else if (opcode == 107)
anInt3851 = stream
.readUnsignedShort();
else if (opcode >= 150
&& opcode < 155) {
options[opcode
+ -150] = stream
.readString();
/*if (!loader.showOptions)
options[opcode + -150] = null;*/
} else if (opcode != 160) {
if (opcode == 162) {
aByte3912 = (byte) 3;
anInt3882 = stream
.readInt();
} else if (opcode == 163) {
aByte3847 = (byte) stream
.readByte();
aByte3849 = (byte) stream
.readByte();
aByte3837 = (byte) stream
.readByte();
aByte3914 = (byte) stream
.readByte();
} else if (opcode != 164) {
if (opcode != 165) {
if (opcode != 166) {
if (opcode == 167)
anInt3921 = stream
.readUnsignedShort();
else if (opcode != 168) {
if (opcode == 169) {
aBoolean3845 = true;
//added opcode
}else if (opcode == 170) {
int anInt3383 = stream.readUnsignedSmart();
//added opcode
}else if (opcode == 171) {
int anInt3362 = stream.readUnsignedSmart();
//added opcode
}else if (opcode == 173) {
int anInt3302 = stream.readUnsignedShort();
int anInt3336 = stream.readUnsignedShort();
//added opcode
}else if (opcode == 177) {
boolean ub = true;
//added opcode
}else if (opcode == 178) {
int db = stream.readUnsignedByte();
} else if (opcode == 249) {
int i_58_ = stream
.readUnsignedByte();
if (aClass194_3922 == null) {
/*int i_59_ = Class307
.method3331(
(byte) -117,
i_58_);
aClass194_3922 = new HashTable(
i_59_);*/
}
for (int i_60_ = 0; i_60_ < i_58_; i_60_++) {
boolean bool = stream
.readUnsignedByte() == 1;
int i_61_ = stream.read24BitInt();
Object class279;
if (!bool)
/*class279 = new IntegerNode(*/
stream
.readInt();//);
else
/*class279 = new Class279_Sub4(*/
stream
.readString();//);
/*aClass194_3922
.method1598(
(long) i_61_,
-125,
class279);*/
}
}
} else
aBoolean3894 = true;
} else
anInt3877 = stream
.readShort();
} else
anInt3875 = stream
.readShort();
} else
anInt3834 = stream
.readShort();
} else {
int i_62_ = stream
.readUnsignedByte();
anIntArray3908 = new int[i_62_];
for (int i_63_ = 0; i_62_ > i_63_; i_63_++)
anIntArray3908[i_63_] = stream
.readUnsignedShort();
}
} else
anInt3865 = stream
.readUnsignedByte();
} else
anInt3850 = stream
.readUnsignedByte();
} else
aBoolean3924 = true;
} else {
aByte3912 = (byte) 5;
anInt3882 = stream
.readShort();
}
} else {
aByte3912 = (byte) 3;
anInt3882 = stream
.readUnsignedShort();
}
} else
aBoolean3873 = true;
} else
aBoolean3895 = false;
} else
aBoolean3891 = true;
} else {
anInt3900 = stream
.readUnsignedShort();
anInt3905 = stream
.readUnsignedShort();
anInt3904 = stream
.readUnsignedByte();
int i_64_ = stream
.readUnsignedByte();
anIntArray3859 = new int[i_64_];
for (int i_65_ = 0; i_65_ < i_64_; i_65_++)
anIntArray3859[i_65_] = stream
.readUnsignedShort();
}
} else {
configFileId = stream
.readUnsignedShort();
if (configFileId == 65535)
configFileId = -1;
configId = stream
.readUnsignedShort();
if (configId == 65535)
configId = -1;
int i_66_ = -1;
if (opcode == 92) {
i_66_ = stream
.readUnsignedShort();
if (i_66_ == 65535)
i_66_ = -1;
}
int i_67_ = stream
.readUnsignedByte();
childrenIds = new int[i_67_
- -2];
for (int i_68_ = 0; i_67_ >= i_68_; i_68_++) {
childrenIds[i_68_] = stream
.readUnsignedShort();
if (childrenIds[i_68_] == 65535)
childrenIds[i_68_] = -1;
}
childrenIds[i_67_ + 1] = i_66_;
}
} else
anInt3855 = stream
.readUnsignedByte();
} else
anInt3915 = stream
.readShort() << 2;
} else
anInt3883 = stream
.readShort() << 2;
} else
anInt3917 = stream
.readUnsignedShort();
} else
anInt3841 = stream
.readUnsignedShort();
} else
aBoolean3872 = false;
} else
aBoolean3839 = true;
} else {
int i_69_ = (stream
.readUnsignedByte());
aByteArray3858 = (new byte[i_69_]);
for (int i_70_ = 0; i_70_ < i_69_; i_70_++)
aByteArray3858[i_70_] = (byte) (stream
.readByte());
}
} else {
int i_71_ = (stream
.readUnsignedByte());
aShortArray3920 = new short[i_71_];
aShortArray3919 = new short[i_71_];
for (int i_72_ = 0; i_71_ > i_72_; i_72_++) {
aShortArray3920[i_72_] = (short) (stream
.readUnsignedShort());
aShortArray3919[i_72_] = (short) (stream
.readUnsignedShort());
}
}
} else
options[-30
+ opcode] = (stream
.readString());
} else
anInt3840 = (stream.readByte() * 5);
} else
anInt3878 = stream.readByte();
} else {
anInt3876 = stream.readUnsignedShort();
if (anInt3876 == 65535)
anInt3876 = -1;
}
} else
thirdInt = 1;
} else
aBoolean3867 = true;
} else
projectileCliped = false;
} else
sizeY = stream.readUnsignedByte();
} else
sizeX = stream.readUnsignedByte();
} else
name = stream.readString();
} else {
boolean aBoolean1162 = false;
if (opcode == 5 && aBoolean1162)
method3297(stream);
int i_73_ = stream.readUnsignedByte();
anIntArrayArray3916 = new int[i_73_][];
aByteArray3899 = new byte[i_73_];
for (int i_74_ = 0; i_74_ < i_73_; i_74_++) {
aByteArray3899[i_74_] = (byte) stream.readByte();
int i_75_ = stream.readUnsignedByte();
anIntArrayArray3916[i_74_] = new int[i_75_];
for (int i_76_ = 0; i_75_ > i_76_; i_76_++)
anIntArrayArray3916[i_74_][i_76_] = stream
.readUnsignedShort();
}
if (opcode == 5 && !aBoolean1162)
method3297(stream);
}
}

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd">
<classpath>
<dir name="C:\Users\split\Documents\crandor-game-server\bin">
</dir>
</classpath>
</application>

View file

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: org.odyssey.GameLaunch

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

View file

@ -1,3 +0,0 @@
Manifest-Version: 1.0
Main-Class: org.runite.GameLaunch