Class API

java.lang.Object
nl.minetopiasdb.api.API

public class API extends Object
Some of the old MinetopiaSDB v1 API methods.
  • Constructor Summary

    Constructors
    Constructor
    Description
    API()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.milkbowl.vault.economy.Economy
    Get the Vault economy hook.
    static boolean
    hasScoreboard​(org.bukkit.entity.Player player)
    Check if a player has the scoreboard enabled.
    static void
    toggleScoreboard​(org.bukkit.entity.Player player)
    Toggle the scoreboard for the provided player
    static void
    updateScoreboard​(org.bukkit.entity.Player player)
    Update the scoreboard content for the provided player.
    static void
    updateScoreboardTitle​(org.bukkit.entity.Player player)
    Update the scoreboard title for the provided player.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • API

      public API()
  • Method Details

    • hasScoreboard

      public static boolean hasScoreboard(org.bukkit.entity.Player player)
      Check if a player has the scoreboard enabled.
      Parameters:
      player - player
      Returns:
      true if scoreboard is enabled.
    • toggleScoreboard

      public static void toggleScoreboard(org.bukkit.entity.Player player)
      Toggle the scoreboard for the provided player
      Parameters:
      player - player
    • updateScoreboard

      public static void updateScoreboard(org.bukkit.entity.Player player)
      Update the scoreboard content for the provided player.
      Parameters:
      player - player
    • updateScoreboardTitle

      public static void updateScoreboardTitle(org.bukkit.entity.Player player)
      Update the scoreboard title for the provided player.
      Parameters:
      player - player
    • getEcon

      public static net.milkbowl.vault.economy.Economy getEcon()
      Get the Vault economy hook.
      Returns:
      Vault economy hook for easier integration.