Package me.ulrich.koth.api
Class KothAPIManager
java.lang.Object
me.ulrich.koth.api.KothAPIManager
- All Implemented Interfaces:
KothAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLootKoth(UUID name, org.bukkit.inventory.ItemStack hand) voidvoidapplyPlayerWinner(UUID kothUUID, org.bukkit.entity.Player winner) booleanchangeIconKoth(UUID name, org.bukkit.inventory.ItemStack hand) booleanbooleancreateNewKoth(String name, org.bukkit.Location loc1, org.bukkit.Location loc2) createNewKoth(String name, org.bukkit.Location loc1, org.bukkit.Location loc2, UUID owner) createNewKoth(String name, org.bukkit.Location loc1, org.bukkit.Location loc2, UUID owner, Optional<String> mode) booleandeleteKoth(UUID name) booleanendKothEvent(String kothName) booleanendKothEvent(UUID kothUUID) booleanendKothEvent(UUID kothUUID, org.bukkit.entity.Player winner) getActiveEventListData(boolean system) List<org.bukkit.entity.Player>List<org.bukkit.entity.Player>getAllRegionPlayers(UUID kothUUID) Optional<org.bukkit.Location>getCoordKoth(UUID uuid) static KothAPIManagerOptional<org.bukkit.inventory.ItemStack>getKoth(org.bukkit.Location location) getKothByLocation(org.bukkit.Location location) getKothEvent(UUID koth) Optional<org.bukkit.inventory.ItemStack>getKothKey(KothData koth, int amount) getKothMode(UUID kothUUID) getKothName(UUID kothUUID) getKothOwned(UUID playerUUID) getKothOwner(UUID koth) getKothStatus(UUID koth) getKothUUID(String kothName) getModes()getNextEvents(UUID kothUUID) getPlaceholdersList(Optional<ModeData> mode) List<org.bukkit.entity.Player>getRegionPlayers(UUID kothUUID, KothEnum.CubLoc loc) Optional<org.bukkit.inventory.ItemStack>getStarterItem(KothData koth, int amount) getTag()Optional<org.bukkit.inventory.ItemStack>getWand()booleanhasKothEvent(UUID koth) booleanhasKothOwner(UUID koth) booleanhasKothStarted(String kothName) booleanhasKothStarted(UUID kothUUID) booleanbooleanbooleanisCurrentMode(UUID kothUUID, Optional<ModeData> mode) booleanisDefaultMode(String name) booleanisDefaultMode(Optional<ModeData> mode) booleanisDefaultMode(UUID kothUUID) booleanisUseGUI()booleankothExists(UUID name) booleanvoidremoveControler(UUID kothUUID) voidsaveKothData(KothData clan) booleansaveKothLoots(org.bukkit.inventory.Inventory inventory, KothData koth) voidsaveLootsData(LootsData loot) booleanstartKothEvent(UUID kothUUID, org.bukkit.entity.Player sender) voidbooleanteleportKoth(org.bukkit.entity.Player player, UUID uuid) booleantogglePlayerAdminMode(org.bukkit.entity.Player player) booleantoggleStarterEnabled(boolean state) booleanunRegisterMode(String name)
-
Constructor Details
-
KothAPIManager
public KothAPIManager()
-
-
Method Details
-
getInstance
-
isUseGUI
public boolean isUseGUI() -
getTag
-
hasScoreboardImplemented
public boolean hasScoreboardImplemented()- Specified by:
hasScoreboardImplementedin interfaceKothAPI
-
addScoreboardImplement
- Specified by:
addScoreboardImplementin interfaceKothAPI
-
startKothEvent
- Specified by:
startKothEventin interfaceKothAPI
-
endKothEvent
- Specified by:
endKothEventin interfaceKothAPI
-
endKothEvent
- Specified by:
endKothEventin interfaceKothAPI
-
endKothEvent
- Specified by:
endKothEventin interfaceKothAPI
-
hasKothStarted
- Specified by:
hasKothStartedin interfaceKothAPI
-
hasKothStarted
- Specified by:
hasKothStartedin interfaceKothAPI
-
getKothName
- Specified by:
getKothNamein interfaceKothAPI
-
getKothUUID
- Specified by:
getKothUUIDin interfaceKothAPI
-
getKoth
-
getKoth
-
getKoth
-
getKothByLocation
- Specified by:
getKothByLocationin interfaceKothAPI
-
getAdminMode
- Specified by:
getAdminModein interfaceKothAPI
-
getPlayerRegion
- Specified by:
getPlayerRegionin interfaceKothAPI
-
getKothData
- Specified by:
getKothDatain interfaceKothAPI
-
getAllKothEvent
- Specified by:
getAllKothEventin interfaceKothAPI
-
parseText
-
parseText
-
toggleStarterEnabled
public boolean toggleStarterEnabled(boolean state) - Specified by:
toggleStarterEnabledin interfaceKothAPI
-
togglePlayerAdminMode
public boolean togglePlayerAdminMode(org.bukkit.entity.Player player) - Specified by:
togglePlayerAdminModein interfaceKothAPI
-
kothExists
- Specified by:
kothExistsin interfaceKothAPI
-
createNewKoth
public Optional<KothData> createNewKoth(String name, org.bukkit.Location loc1, org.bukkit.Location loc2) - Specified by:
createNewKothin interfaceKothAPI
-
createNewKoth
public Optional<KothData> createNewKoth(String name, org.bukkit.Location loc1, org.bukkit.Location loc2, UUID owner) - Specified by:
createNewKothin interfaceKothAPI
-
createNewKoth
public Optional<KothData> createNewKoth(String name, org.bukkit.Location loc1, org.bukkit.Location loc2, UUID owner, Optional<String> mode) - Specified by:
createNewKothin interfaceKothAPI
-
deleteKoth
- Specified by:
deleteKothin interfaceKothAPI
-
moveKoth
-
hasKothOwner
- Specified by:
hasKothOwnerin interfaceKothAPI
-
getKothOwner
- Specified by:
getKothOwnerin interfaceKothAPI
-
getKothOwned
- Specified by:
getKothOwnedin interfaceKothAPI
-
teleportKoth
- Specified by:
teleportKothin interfaceKothAPI
-
getCoordKoth
- Specified by:
getCoordKothin interfaceKothAPI
-
getWand
-
getKeyWand
- Specified by:
getKeyWandin interfaceKothAPI
-
getKothKey
- Specified by:
getKothKeyin interfaceKothAPI
-
getStarterItem
- Specified by:
getStarterItemin interfaceKothAPI
-
clearWand
public boolean clearWand() -
checkWand
public boolean checkWand() -
changeIconKoth
- Specified by:
changeIconKothin interfaceKothAPI
-
stopAllEvents
public void stopAllEvents()- Specified by:
stopAllEventsin interfaceKothAPI
-
removeControler
- Specified by:
removeControlerin interfaceKothAPI
-
applyPlayerWinner
- Specified by:
applyPlayerWinnerin interfaceKothAPI
-
getAllRegionPlayers
- Specified by:
getAllRegionPlayersin interfaceKothAPI
-
getActiveEventList
- Specified by:
getActiveEventListin interfaceKothAPI
-
getActiveEventListData
- Specified by:
getActiveEventListDatain interfaceKothAPI
-
getAllEvents
- Specified by:
getAllEventsin interfaceKothAPI
-
getNextEvents
- Specified by:
getNextEventsin interfaceKothAPI
-
getNextEvents
- Specified by:
getNextEventsin interfaceKothAPI
-
saveKothData
- Specified by:
saveKothDatain interfaceKothAPI
-
saveKothLoots
- Specified by:
saveKothLootsin interfaceKothAPI
-
addLootKoth
- Specified by:
addLootKothin interfaceKothAPI
-
saveLootsData
- Specified by:
saveLootsDatain interfaceKothAPI
-
getLootsData
- Specified by:
getLootsDatain interfaceKothAPI
-
getKothDefaultMode
- Specified by:
getKothDefaultModein interfaceKothAPI
-
getKothDefaultModeName
- Specified by:
getKothDefaultModeNamein interfaceKothAPI
-
getPlaceholdersList
- Specified by:
getPlaceholdersListin interfaceKothAPI
-
isDefaultMode
- Specified by:
isDefaultModein interfaceKothAPI
-
isCurrentMode
- Specified by:
isCurrentModein interfaceKothAPI
-
isDefaultMode
- Specified by:
isDefaultModein interfaceKothAPI
-
getKothMode
- Specified by:
getKothModein interfaceKothAPI
-
isDefaultMode
- Specified by:
isDefaultModein interfaceKothAPI
-
registerMode
public Optional<ModeData> registerMode(String name, Optional<Addon> addon, String icon, String desc) - Specified by:
registerModein interfaceKothAPI
-
unRegisterMode
- Specified by:
unRegisterModein interfaceKothAPI
-
hasMode
-
getMode
-
getModeId
-
getModes
-
hasKothEvent
- Specified by:
hasKothEventin interfaceKothAPI
-
getKothEvent
- Specified by:
getKothEventin interfaceKothAPI
-
getKothStatus
- Specified by:
getKothStatusin interfaceKothAPI
-
getRegionPlayers
- Specified by:
getRegionPlayersin interfaceKothAPI
-
getInsertGui
- Specified by:
getInsertGuiin interfaceKothAPI
-