mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Fix Array out of bounds exception on /bending give
This commit is contained in:
parent
7ededcf364
commit
1cb999dfcf
1 changed files with 5 additions and 0 deletions
|
@ -244,6 +244,11 @@ public class Commands {
|
||||||
* They are spawning in a grappling hook.
|
* They are spawning in a grappling hook.
|
||||||
* bending give [Player] grapplinghook [# of Uses]
|
* bending give [Player] grapplinghook [# of Uses]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (args.length != 3) {
|
||||||
|
s.sendMessage(ChatColor.GOLD + "Proper Usage: /bending give GrapplingHook <#OfUses>");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
int uses;
|
int uses;
|
||||||
try {
|
try {
|
||||||
uses = Integer.parseInt(args[3]);
|
uses = Integer.parseInt(args[3]);
|
||||||
|
|
Loading…
Reference in a new issue