Rubix Development | Documentation
Support DiscordLicense Dashboard
  • 👋Welcome to the Rubix Development documentation
  • Overview
    • 🔶Licensing system
  • Plugins
    • 🥘RubixPearls
      • 🎍API Documentation
        • 🪝API Hooks
        • 😎Cooldowns
        • ⚡Events
  • Spigots
    • 🧊RubixSpigot
Powered by GitBook
On this page

Was this helpful?

  1. Plugins
  2. RubixPearls
  3. API Documentation

API Hooks

This is everything you should know about the API hooks. That currently only support for Lazarus or Azurite HCF core.

/**
 * Represents the Hook clas
 */
public class Hook {

    /**
     * Gets whether this player is on ender pearl cooldown or not.
     *
     * @param player Player to check
     *
     * @return whether this player is on ender pearl cooldown or not
     */
    public boolean isOnCooldown(Player player) {
        throw new IllegalArgumentException("Hook not found");
    }

    /**
     * Removes ender pearl cooldown from player
     *
     * @param player Player to remove ender pearl cooldown
     *
     */
    public void removeCooldown(Player player) {
        throw new IllegalArgumentException("Hook not found");
    }

    /**
     * Adds ender pearl cooldown to player
     *
     * @param player Player to add ender pearl cooldown
     *
     */
    public void addCooldown(Player player) { throw new IllegalArgumentException("Hook not found"); }

}
PreviousAPI DocumentationNextCooldowns

Last updated 1 year ago

Was this helpful?

🥘
🎍
🪝