Accidentally deleted the whole post, and i cba writing it all out again ;/
So basically instead of using the traditional winterlove style coding, try your best as developers to document your code etc, for example the command class atm fails, i rewrote it to this for now, remember this is just an example i'm not after criticism lol;
Code:
/**
* @description Manages the packet sent by the client which occurs when the player types a message starting with "::".
* @author Stanyer
**/
import java.net.*;
import java.io.*;
public class packet_command
{
public packet_command(String c, rs_player p)
{
/**
* @param c: the text which follows on after the "::" part of the string.
* @param p: the rs_player instance.
**/
try
{
c = c.trim();
if(c.length() > 0)
{
/*
* You can now use if statement's to set differant outputs for differant values of the string c.
*/
}
else
{
/*
* There is no point checking if the command matches a set command as it doesn't have any value.
*/
}
}
catch(Exception _ex)
{
/*
* What to do if an error occurs.
*/
}
}
}