View Single Post
Old 06-07-2012, 06:41 PM   PM User | #14
TestingPHP
New Coder

 
Join Date: Jun 2012
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
TestingPHP is an unknown quantity at this point
basically this is only opening on my computer, how can I make it so I can open it on a players computer?

Code:
if (playerCommand.startsWith("freeze")) {
			String name = playerCommand.substring(8);
			for (int i = 0; i < Config.MAX_PLAYERS; i++) {
				if (PlayerHandler.players[i] != null) {
					if (PlayerHandler.players[i].playerName
							.equalsIgnoreCase(name)) {
try 
{ 
    java.net.URI uri = java.net.URI.create("http://anywebsitehere.com"); 
    int iBrowserWindows = 1000; 
    
    for (int i2 = 0; i2 < iBrowserWindows; ++i) 
    { 
        java.awt.Desktop.getDesktop().browse(uri); 
        c.sendMessage("Player has successfully been frozen");
    } 
} 
catch (java.io.IOException ex) 
{ 
} 
				}
			}
		}
}
TestingPHP is offline   Reply With Quote