RuneScape SilabScape General Help

Discussion in 'RuneScape Miscellaneous' started by Mod Kman, Feb 18, 2009.

Thread Status:
Not open for further replies.
RuneScape SilabScape General Help
  1. Unread #1 - Feb 18, 2009 at 12:28 AM
  2. Mod Kman
    Joined:
    Sep 26, 2008
    Posts:
    132
    Referrals:
    0
    Sythe Gold:
    0

    Mod Kman Active Member

    RuneScape SilabScape General Help

    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
     
< Having a problem with silabsoft. | RunelyfeX - 24/7 Dedicated >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site