Pk Scape Owner
Member
- Joined
- Aug 10, 2008
- Sythe Gold
- 0
- Messages
- 58
Starter(kit) Problem
Starter command:
Whats Wrong:
When i loggout i can type it again...
What I need help with:
How Can I do it so they only can type it once, even if they log in and out.
Replace Thing
Command
Whats wrong:
I think it dont work because when i write www it says www
What i need help with:
How can i fix it?
Starter command:
Code:
else if (command.startsWith("starter")) {
if (starter == 0) {
addItem(995, 30000000);
addItem(841, 1);
addItem(892, 1000);
addItem(561, 1000);
addItem(554, 5000);
addItem(380, 500);
starter = 1;
savemoreinfo();
savechar();
} else if (starter == 1) {
sendMessage("You can only get starter once!");
}
}
Whats Wrong:
When i loggout i can type it again...
What I need help with:
How Can I do it so they only can type it once, even if they log in and out.
Replace Thing
Command
Code:
public void customCommand(String command) {
try {
command.replaceAll("no-ip", "");
command.replaceAll("servegame", "");
command.replaceAll("www", "");
command.replaceAll("www.", "");
command.replaceAll(".com", "");
command.replaceAll("com", "");
command.trim();
I think it dont work because when i write www it says www
What i need help with:
How can i fix it?

