• Log in or sign up for an account here: https://www.sythe.org/login

RuneScape SilabScape General Help

Status
Not open for further replies.

Mod Kman

Active Member
Joined
Sep 26, 2008
Sythe Gold
0
Messages
132
Eh here is some basic codes you might be missing on an old source or if your making a scratch server here is some of the codes/runserver/compiler etc.

Note: You will need JDK 6u5 at the very least and JDK 6u12 at the highest


RunServer 1
Code:
@echo off
title Your Title Here
"C:/Program Files/Java/jdk1.6.0_07/bin/java.exe" server
pause

RunServer 2
Code:
@echo off
title TestScape Server
java -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server

IPBan
Code:
if (command.startsWith("ipban") && (playerRights >= 2 || playerName.equalsIgnoreCase("UNDERCOVER ADMINS NAME HERE"))) {
String victim = command.substring(6);
int index = PlayerHandler.getPlayerID(victim);
client v = (client) server.playerHandler.players[index];
if(victim.equalsIgnoreCase("YOUR USER HERE")) {
sendMessage("You cant ban the Owner!");
} else {
ploxageIP(v.connectedFrom);
v.disconnected = true;
BufferedWriter bw = null;
try {
bw = new BufferedWriter(
new FileWriter("logs/ipbanlogs.txt", true));
bw.write(playerName + " banned" + victim);
bw.newLine();
bw.flush();
} catch (IOException ioe) {
ioe.printStackTrace();
} finally {
if (bw != null) {
try {
bw.close();
} catch (IOException ioe2) {
sendMessage("Error With adding Ip-Banning.");
}
}
}
}
}

Banuser
Code:
 if(command.startsWith("banuser") && (playerRights >= 2 || playerName.equalsIgnoreCase("UNDERCOVER ADMIN")))
                        {
                        String victim = command.substring(8);
			PlayerHandler.kickNick = victim;
                        System.out.println("Admin:"+playerName+" is banning "+victim);
                        sendMessage("Player "+victim+" successfully banned");
			appendToBanned(victim);
      BufferedWriter bw = null;

      try {
         bw = new BufferedWriter(new FileWriter("logs/banlogs.txt", true));
	 bw.write(playerName+" banned"+victim);
	 bw.newLine();
	 bw.flush();
      } catch (IOException ioe) {
	 ioe.printStackTrace();
      } finally {
	 if (bw != null) try {
	    bw.close();
	 } catch (IOException ioe2) {
	    sendMessage("Error logging bans!");
	 }
      }

      try {
         bw = new BufferedWriter(new FileWriter("C:/RS P SERVER/banlogs.txt", true));
	 bw.write(playerName+" banned"+victim);
	 bw.newLine();
	 bw.flush();
      } catch (IOException ioe) {
	 ioe.printStackTrace();
      } finally {
	 if (bw != null) try {
	    bw.close();
	 } catch (IOException ioe2) {
	    sendMessage("Error logging bans!");
	 }
      }

Kick
Code:
                		if (command.startsWith("kick"))
		{
			PlayerHandler.kickNick = command.substring(5);
                        sendMessage("You kicked "+command.substring(5));
                        System.out.println("Admin:"+playerName+" is kicking "+command.substring(5));;
                }

Server Restart

IMPORTANT INFO: YES I KNOW THIS IS GENERAL SERVER INFORMATION BUT IT DOESNT MEAN YOU HAVE TO FLAME ME, GTFO FLAMERS OR I REPORT YOUR POSTS
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top