fixed string out of bounds exception

This commit is contained in:
Boos 2012-04-29 13:55:11 +02:00
parent cbca408f81
commit b13e53e434
2 changed files with 3 additions and 3 deletions

View File

@ -79,9 +79,9 @@ public class boosCoolDownListener<a> implements Listener {
preSub2 = preCommand + ' ' + preSub + ' ' + preSub2;
}
if (messageSub2.length() > 1) {
int l = messageSub.indexOf(' ', 1);
int l = messageSub2.indexOf(' ', 1);
if (l < 0) {
l = messageSub.length();
l = messageSub2.length();
}
preSub3 = messageSub2.substring(1, l);
messageSub3 = messageSub2.substring(l, messageSub2.length());

View File

@ -1,6 +1,6 @@
name: boosCooldown
main: cz.boosik.boosCooldown.boosCoolDown
version: 2.6.5
version: 2.6.6
author: boosik
softdepend: [Vault,PermissionsEX]
description: >