diff --git a/src/com/projectkorra/projectkorra/command/BindCommand.java b/src/com/projectkorra/projectkorra/command/BindCommand.java index 85dc3bbd..c49f44e3 100644 --- a/src/com/projectkorra/projectkorra/command/BindCommand.java +++ b/src/com/projectkorra/projectkorra/command/BindCommand.java @@ -60,7 +60,11 @@ public class BindCommand extends PKCommand { // bending bind [ability] [#] if (args.size() == 2) { - bind(sender, args.get(0), Integer.parseInt(args.get(1))); + try { + bind(sender, args.get(0), Integer.parseInt(args.get(1))); + } catch (NumberFormatException ex) { + sender.sendMessage(ChatColor.RED + wrongNumber); + } } } diff --git a/src/com/projectkorra/projectkorra/waterbending/Torrent.java b/src/com/projectkorra/projectkorra/waterbending/Torrent.java index cc5a2277..a719bc8f 100644 --- a/src/com/projectkorra/projectkorra/waterbending/Torrent.java +++ b/src/com/projectkorra/projectkorra/waterbending/Torrent.java @@ -120,7 +120,7 @@ public class Torrent extends WaterAbility { if (isTransparent(player, block) && block.getType() != Material.ICE) { TempBlock tblock = new TempBlock(block, Material.ICE, (byte) 0); FROZEN_BLOCKS.put(tblock, player); - FROZEN_BLOCKS_DELAY.put(tblock, System.currentTimeMillis()); + FROZEN_BLOCKS_DELAY.put(tblock, System.currentTimeMillis() + (new Random().nextInt((500 + 500) + 1) - 500)); playIcebendingSound(block.getLocation()); } }