Package me.ulrich.koth.manager
Class KothManager
java.lang.Object
me.ulrich.koth.manager.KothManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanchangeBorderColorMaxTime(UUID kothUUID, KothEnum.BorderColors newvalue) booleanchangeCaptureAmountKoth(UUID kothUUID, int i) booleanchangeCaptureModeKoth(UUID kothUUID, KothEnum.CaptureMode mode) booleanchangeCenterKoth(UUID kothUUID, org.bukkit.Location location) booleanchangeColorNameKoth(UUID kothUUID, String name) booleanchangeEnabledKey(UUID kothUUID, boolean newvalue) booleanchangeEnabledMaxTime(UUID kothUUID, boolean newvalue) booleanchangeEndActionMaxTime(UUID kothUUID, KothEnum.EndAction newvalue) booleanchangeIconKoth(UUID name, org.bukkit.inventory.ItemStack hand) booleanchangeKeyAmountKoth(UUID kothUUID, int i) booleanchangeKeyStateKoth(boolean newvalue) booleanchangeKothWarp(UUID kothUUID, org.bukkit.Location location) booleanchangeLootChance(UUID kothUUID, int min) booleanchangeLootGroup(UUID kothUUID, boolean newvalue) booleanchangeLootMaxAmount(UUID kothUUID, int min) booleanchangeLootType(UUID kothUUID, KothEnum.LootType newvalue, int amount) booleanchangeMaxTimeAmountKoth(UUID kothUUID, int i) booleanchangeMode(UUID kothUUID, Optional<String> mode) booleanchangeProximityAmountKoth(UUID kothUUID, int i) booleanchangeSettingsKoth(UUID kothUUID, KothEnum.GeneralSettingsType allowwithoutgroup, boolean value) booleanchangeTypeProximity(UUID kothUUID, KothEnum.ProximityType newvalue) voidcheckPreKothAlerts(UUID kothId, Calendar today, Calendar kothCalendar) 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 kothUUID) voiddeleteKothData(UUID clanId) List<org.bukkit.entity.Player>getAgent()Optional<org.bukkit.Location>getCoordKoth(UUID uuid) Optional<org.bukkit.inventory.ItemStack>getKoth(org.bukkit.Location to) getKothALD(org.bukkit.Location to) getKothByLocation(org.bukkit.Location to) Optional<org.bukkit.inventory.ItemStack>getKothKey(KothData koth, int amount) getKothName(UUID kothUUID) getKothOwned(UUID playerUUID) getKothOwner(UUID koth) getKothUUID(String kothName) org.bukkit.LocationgetRegionPlayer(UUID uuid) org.bukkit.LocationOptional<org.bukkit.inventory.ItemStack>getStarterItem(KothData koth, int amount) Optional<org.bukkit.inventory.ItemStack>getWand()booleanhasKothOwner(UUID koth) booleanhasRegionPlayer(UUID uuid) booleanbooleanvoidknockBack(org.bukkit.entity.Player player, org.bukkit.Location location) booleankothExists(String name) booleankothExists(UUID name) voidbooleanbooleanplayerIsAdminMode(org.bukkit.entity.Player player) voidreloadKothData(UUID clanId) static org.bukkit.util.VectorrotateVectorAroundY(org.bukkit.util.Vector vector, double degrees) voidsaveKothData(KothData clan) voidsetAdminMode(List<org.bukkit.entity.Player> adminMode) voidsetKeyLootEnabled(boolean keyLootEnabled) voidsetKothData(HashMap<UUID, KothData> kothData) voidsetLeftAction(org.bukkit.Location leftAction) voidsetPlayerRegion(HashMap<UUID, IslandJoinLeaveData> playerRegion) voidsetRightAction(org.bukkit.Location rightAction) voidsetStarterStateEnabled(boolean starterStateEnabled) voidteleportDelay(org.bukkit.entity.Player player, org.bukkit.Location location, boolean checkcooldown) booleanteleportKoth(org.bukkit.entity.Player player, UUID uuid) booleantogglePlayerAdminMode(org.bukkit.entity.Player player) booleantoggleStarterEnabled(boolean state) booleanupdateCounter(UUID kothUUID)
-
Constructor Details
-
KothManager
-
-
Method Details
-
saveKothData
-
deleteKothData
-
reloadKothData
-
loadAllKothData
public void loadAllKothData() -
playerIsAdminMode
public boolean playerIsAdminMode(org.bukkit.entity.Player player) -
hasRegionPlayer
-
getRegionPlayer
-
toggleStarterEnabled
public boolean toggleStarterEnabled(boolean state) -
togglePlayerAdminMode
public boolean togglePlayerAdminMode(org.bukkit.entity.Player player) -
kothExists
-
createNewKoth
-
createNewKoth
-
createNewKoth
-
deleteKoth
-
moveKoth
-
changeEnabledKey
-
changeLootGroup
-
updateCounter
-
changeLootType
-
changeLootChance
-
changeLootMaxAmount
-
changeKeyAmountKoth
-
changeTypeProximity
-
changeProximityAmountKoth
-
changeCaptureAmountKoth
-
changeKothWarp
-
changeColorNameKoth
-
changeMode
-
changeEnabledMaxTime
-
changeBorderColorMaxTime
-
changeEndActionMaxTime
-
changeMaxTimeAmountKoth
-
changeCaptureModeKoth
-
changeCenterKoth
-
changeKeyStateKoth
public boolean changeKeyStateKoth(boolean newvalue) -
changeSettingsKoth
public boolean changeSettingsKoth(UUID kothUUID, KothEnum.GeneralSettingsType allowwithoutgroup, boolean value) -
teleportKoth
-
getCoordKoth
-
getKoth
-
kothExists
-
hasKothOwner
-
getKothOwner
-
getKothOwned
-
getKoth
-
getKothName
-
getKothUUID
-
getKothByLocation
-
getKoth
-
getKothALD
-
getWand
-
getKeyWand
-
getKothKey
-
getStarterItem
-
clearWand
public boolean clearWand() -
checkWand
public boolean checkWand() -
changeIconKoth
-
knockBack
public void knockBack(org.bukkit.entity.Player player, org.bukkit.Location location) -
rotateVectorAroundY
public static org.bukkit.util.Vector rotateVectorAroundY(org.bukkit.util.Vector vector, double degrees) -
getPlugin
-
getLeftAction
public org.bukkit.Location getLeftAction() -
setLeftAction
public void setLeftAction(org.bukkit.Location leftAction) -
getRightAction
public org.bukkit.Location getRightAction() -
setRightAction
public void setRightAction(org.bukkit.Location rightAction) -
getKothData
-
setKothData
-
isKeyLootEnabled
public boolean isKeyLootEnabled() -
setKeyLootEnabled
public void setKeyLootEnabled(boolean keyLootEnabled) -
getPlayerRegion
-
setPlayerRegion
-
getAdminMode
-
setAdminMode
-
isStarterStateEnabled
public boolean isStarterStateEnabled() -
setStarterStateEnabled
public void setStarterStateEnabled(boolean starterStateEnabled) -
checkPreKothAlerts
-
teleportDelay
public void teleportDelay(org.bukkit.entity.Player player, org.bukkit.Location location, boolean checkcooldown) -
getAgent
-