Advertisement
JackOUT

Untitled

Aug 3rd, 2021
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1. package games.coob.skywars.api;
  2.  
  3. import games.coob.skywars.menu.KitSelectionMenu;
  4. import games.coob.skywars.model.ArenaPlayer;
  5. import lombok.AccessLevel;
  6. import lombok.NoArgsConstructor;
  7. import org.bukkit.entity.Player;
  8.  
  9. /**
  10.  * This class is the main API class for the Orion plugin.
  11.  */
  12. @NoArgsConstructor(access = AccessLevel.PRIVATE)
  13. public class SkyWarsAPI {
  14.  
  15.     /**
  16.      * Return the {@link SkyWarsPlayerCache} for the given player
  17.      * containing various ArenaPlayer information stored in the
  18.      * data.db file.
  19.      *
  20.      * @param player the player
  21.      * @return the player cache
  22.      */
  23.     public static SkyWarsPlayerCache getCache(final Player player) {
  24.         return ArenaPlayer.getCache(player);
  25.     }
  26.  
  27.     /**
  28.      * Return the {@link SkyWarsKitCache} for the given player
  29.      * containing different types of kit menus.
  30.      *
  31.      * @param player the player
  32.      * @return the menu to open
  33.      */
  34.     public static SkyWarsKitCache getKitMenus(final Player player) {
  35.         return KitSelectionMenu.
  36.     }
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement