mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-09-28 22:47:50 +02:00
fixed string out of bounds exception
This commit is contained in:
parent
cbca408f81
commit
b13e53e434
@ -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());
|
||||
|
@ -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: >
|
||||
|
Loading…
Reference in New Issue
Block a user