Anyone?
|
sometimes you dc if your owner and try to make a cc again how can you fix it?
add exception? and disconnect false? someone fix it pl0x?
if (command.startsWith("ccmake")) {
if(command.length() <= 22) {
if(clanName == "none" && clanLeader == "nobody") {
clanName = command.substring(7);
clanLeader = playerName;
for(int i=0; i<=17; i++) {
if(clanMembers[i] == null) {
sM("Clan "+command.substring(7)+" has been created successfully.");
clanMembers[i] = playerName;
break;
}
}
updateCCMenu();
} else {
sM("You are already in a clan!");
}
} else {
sM("Your clan name can be no longer than 15 characters.");
}
}
Anyone?
Code:if (command.startsWith("ccmake")) { try { if(command.length() <= 22) if(clanName == "none" && clanLeader == "nobody") { clanName = command.substring(7); clanLeader = playerName; for(int i=0; i<=17; i++) { if(clanMembers[i] == null) { sM("Clan "+command.substring(7)+" has been created successfully."); clanMembers[i] = playerName; break; } updateCCMenu(); } else sM("You are already in a clan!"); } else sM("Your clan name can be no longer than 15 characters."); } catch(exception caughtE) System.out.println("[ERROR]: Caught ccmake error."); }
Tyvm
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |