Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5214

Can't set item cooldown with Player#setCooldown(Material, ticks)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-9de398a-9c887d4
    • Yes

      code for reproduce
      @EventHandler
      private void dfgdfg(PlayerMoveEvent e) {
      if(e.getPlayer().getCooldown(Material.SHIELD) == 0 && e.getPlayer().isHandRaised())

      { e.getPlayer().setCooldown(Material.SHIELD, 30); //e.getPlayer().updateInventory(); System.out.println("SET"); }

      }

            Unassigned Unassigned
            Vamlod Voladey Ag
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: