Deprecated API
Contents
-
ElementDescriptionas of 0.99.1.2, use
TownySQLSource.getConnection()
to obtain a connection instead.
-
MethodDescriptionsince 0.100.1.2 use
NationCommand.nationAdd(Nation, Town)
instead.since 0.100.2.96 useTownyDataSource.removeNation(Nation, com.palmergames.bukkit.towny.event.DeleteNationEvent.Cause)
instead.since 0.100.2.9 useTownyDataSource.removeTown(Town, com.palmergames.bukkit.towny.event.DeleteTownEvent.Cause)
instead.as of 0.99.1.2, useTownySQLSource.getConnection()
to obtain a connection instead.Deprecated as of 0.100.1.10, please usePluginIntegrations.isNPC(Entity)
instead.since 0.100.4.6 useAccount.getWorld()
instead.Deprecated as of 0.99.5.9, the cell map types are an implementation detail and not guaranteed.since 0.100.0.9 useProximityUtil.gatherOutOfRangeTowns(Nation)
instead.since 0.99.6.2, useNation.getLevelNumber()
instead. Get the Nation's current Nation Level.Note that Nation Levels are not hard-coded. They can be defined by the server administrator, and may be different from the default configuration.
since 0.99.6.2 useTownySettings.getNationLevelFromGivenInt(int)
instead. Get the Nation's Level for a supposed population size.Note that Nation Levels are not hard-coded. They can be defined by the server administrator, and may be different from the default configuration.
since 0.99.6.2 useTownySettings.getNationLevelMax()
instead. Get the maximum level a Nation may achieve.since 0.100.0.9 useProximityUtil.removeOutOfRangeTowns(Nation)
instead.Deprecated as of 0.99.5.9, location caching is no longer used.Deprecated as of 0.99.0.10, clearing teleport requests is no longer needed. UseTownyAPI.abortTeleportRequest(Resident)
to abort an active teleport request.since 0.100.4.6. UseResidentModeHandler.toggleModes(Resident, String[], boolean, boolean)
instead.Deprecated as of 0.99.0.10, teleport request related values are no longer modifiable once the teleport has been requested.Deprecated as of 0.99.0.10, teleport request related values are no longer modifiable once the teleport has been requested.Deprecated as of 0.99.0.10, teleport request related values are no longer modifiable once the teleport has been requested.Deprecated as of 0.99.0.10, teleport request related values are no longer modifiable once the teleport has been requested.Deprecated as of 0.99.0.10, teleport request related values are no longer modifiable once the teleport has been requested.since 0.100.4.6. UseResidentModeHandler.toggleModes(Resident, String[], boolean, boolean)
instead.Deprecated as of 0.99.5.9, please usePosition.world()
instead.since 0.99.6.3 useTown.getLevelNumber()
instead. Get the Town's current level, based on its population.Note that Town Levels are not hard-coded. They can be defined by the server administrator, and may be different from the default configuration.
since 0.99.6.3 useTownySettings.getTownLevelFromGivenInt(int, Town)
instead. Get the town level for a given population size.Great for debugging, or just to see what the town level is for a given amount of residents. But for most cases you'll want to use
Town.getLevel()
, which uses the town's current population.
Note that Town Levels are not hard-coded. They can be defined by the server administrator, and may be different from the default configuration.since 0.99.6.3 useTown.getLevelNumber()
instead. Returns the Town Level ID.since 0.99.6.3 useTownySettings.getTownLevelMax()
instead. Get the maximum level a Town may achieve.Deprecated as of 0.99.5.3, it is no longer possible to mutate the world/coordinates of a townblock.Deprecated as of 0.99.5.3, it is no longer possible to mutate the world/coordinates of a townblock.Deprecated as of 0.99.5.3, it is no longer possible to mutate the world/coordinates of a townblock.since 0.99.0.2 useTownyWorld.getMinDistanceFromOtherTownsHomeBlocks(Coord)
instead.since 0.99.0.2 useTownyWorld.getMinDistanceFromOtherTownsHomeBlocks(Coord, Town)
instead.in lieu ofTownyWorld.isExplodedBlockAllowedToRevert(Material)
in 0.99.1.5.since 0.100.2.10 useTransaction.getCommandSender()
instead.Deprecated as of 0.99.0.6, useProtectionRegenTask.getTask()
instead.Deprecated as of 0.99.0.6, useProtectionRegenTask.setTask(ScheduledTask)
instead.since 0.100.4.6, useResidentModeHandler.getModes(Player)
instead.since 0.100.2.13, unused by Towny for many years. UseBukkitTools.getWorld(String)
instead.since 0.100.4.6, useResidentModeHandler.clearModes(Player)
instead.since 0.100.4.6, useResidentModeHandler.clearModes(Player)
instead.since 0.100.4.6, useResidentModeHandler.toggleModes(Player, String[], boolean)
instead.since 0.100.4.6, useTownyEconomyHandler.add(Account, double)
instead.since 0.100.4.6, useTownyEconomyHandler.getBalance(Account)
instead.since 0.100.4.6, useTownyEconomyHandler.hasAccount(Account)
instead.since 0.100.4.6, useTownyEconomyHandler.hasEnough(Account, double)
instead.since 0.100.4.6, useTownyEconomyHandler.removeAccount(Account)
instead.since 0.100.4.6, useTownyEconomyHandler.setBalance(Account, double)
instead.since 0.100.4.6, useTownyEconomyHandler.subtract(Account, double)
instead.since 0.99.6.2 useTownySettings.getNationLevelWithModifier(int)
instead.since 0.100.0.9, useTownySettings.getNationProximityToCapital()
instead.since 0.99.6.3 useTownySettings.getTownLevelWithModifier(int, Town)
instead.Deprecated as of 0.99.0.6, use theTowny.getScheduler()
instead.Deprecated as of 0.99.0.6, use theTowny.getScheduler()
instead.Deprecated as of 0.99.0.6, use theTowny.getScheduler()
instead.Deprecated as of 0.99.0.6, use theTowny.getScheduler()
instead.Deprecated as of 0.99.0.6, use theTowny.getScheduler()
instead.0.100.1.10 use any of the other checkAndFilter methods found in this class.
-
ConstructorDescriptionsince 0.100.0.10 use
ConfirmationTransaction(Supplier, EconomyHandler, String)
instead.since 0.100.0.10 useConfirmationTransaction(Supplier, EconomyHandler, String, Translatable)
instead.since 0.100.4.6 useAccount(EconomyHandler, String, UUID, Supplier)
instead.since 0.100.4.6 useAccount(EconomyHandler, String, UUID, Supplier)
instead.