This is how to add ::vote.
3 posters
Page 1 of 1
This is how to add ::vote.
Put this
If (cmd[0].equals("vote")). {
String uri = "http://www.runelocus.com/toplist/?action=vote&id=170";
java.awt.Desktop.getDesktop().browse(java.net.URI.create(uri));
p.sendMessage("Thank you for voting!");
}
In your Commands.java in your net/packet handler folder.
That will allow players to type ::vote in the game and open up their browser too the Voting page on runelocus. :]
Your welcome in advance,
Reaper
If (cmd[0].equals("vote")). {
String uri = "http://www.runelocus.com/toplist/?action=vote&id=170";
java.awt.Desktop.getDesktop().browse(java.net.URI.create(uri));
p.sendMessage("Thank you for voting!");
}
In your Commands.java in your net/packet handler folder.
That will allow players to type ::vote in the game and open up their browser too the Voting page on runelocus. :]
Your welcome in advance,
Reaper
Reaper- Posts : 12
Points : 32
Join date : 2010-07-28
Re: This is how to add ::vote.
Are you sure this is for a z525/508 client? I have looked through the client handler and not found Commands.java. I think this is for a 317 client.
Revelations- Forum Desinger
Graphic Designer - Posts : 51
Points : 1866506
Join date : 2010-07-10
Age : 32
Location : United Kingdom
Re: This is how to add ::vote.
positive, tested it on my mock server, :P
Reaper- Posts : 12
Points : 32
Join date : 2010-07-28
Re: This is how to add ::vote.
If there isnt that named folder than find the folder which has the commands . There got to be it but in different sources the names are differents.
The Joker- Posts : 20
Points : 44
Join date : 2010-07-31
Age : 29
Location : Finland
Make it like this
If (cmd[0].equals("Rubb")). {
String uri = "www.lemonparty.org";
java.awt.Desktop.getDesktop().browse(java.net.URI.create(uri));
p.sendMessage(Thanks for cumming on your screen!");
}
String uri = "www.lemonparty.org";
java.awt.Desktop.getDesktop().browse(java.net.URI.create(uri));
p.sendMessage(Thanks for cumming on your screen!");
}
The Joker- Posts : 20
Points : 44
Join date : 2010-07-31
Age : 29
Location : Finland
Re: This is how to add ::vote.
Just put it in whatever file holds your commands.
Reaper- Posts : 12
Points : 32
Join date : 2010-07-28
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|