Uses of Class
com.palmergames.bukkit.towny.object.Translatable
Packages that use Translatable
Package
Description
-
Uses of Translatable in com.palmergames.bukkit.towny
Methods in com.palmergames.bukkit.towny with parameters of type TranslatableModifier and TypeMethodDescriptionstatic void
TownyMessaging.sendErrorMsg
(Translatable message) Sends a translatable error message to the console, prefixed by [Towny] Error:static void
TownyMessaging.sendErrorMsg
(org.bukkit.command.CommandSender sender, Translatable translatable) Sends an Error message (red) to the sender and to the named Dev if DevMode is enabled.static void
TownyMessaging.sendErrorMsg
(org.bukkit.command.CommandSender sender, Translatable... translatables) Sends an Error message (red) to the sender and to the named Dev if DevMode is enabled.static void
TownyMessaging.sendGlobalMessage
(Translatable translatable) Send a message to All online players and the log.static void
TownyMessaging.sendMessage
(org.bukkit.command.CommandSender sender, Translatable translatable) Sends a message translated to the end-user's locale, with no prefix.static void
TownyMessaging.sendMessage
(org.bukkit.command.CommandSender sender, Translatable... translatables) Sends a message translated to the end-user's locale, with no prefix.static void
TownyMessaging.sendMsg
(Resident resident, Translatable message) Send a translatable message to a resident if they are online, prefixed by the default_towny_prefix.static void
TownyMessaging.sendMsg
(Translatable message) Sends a translatable message to the console, prefixed by the default_towny_prefix.static void
TownyMessaging.sendMsg
(org.bukkit.command.CommandSender sender, Translatable translatable) Sends a message in green, prefixed by the default_towny_prefix to the sender, translated to the end-user's locale.static void
TownyMessaging.sendMsg
(org.bukkit.command.CommandSender sender, Translatable... translatables) Sends a message in green, prefixed by the default_towny_prefix to the sender, translated to the end-user's locale.static void
TownyMessaging.sendMsgToOnlineAdmins
(Translatable message) Send a message to All online ops or players with towny.admin, and the log.static void
TownyMessaging.sendNationMessagePrefixed
(Nation nation, Translatable message) Send a message to All online residents of a nation and log, preceded by the default_towny_prefixstatic void
TownyMessaging.sendPrefixedNationMessage
(Nation nation, Translatable message) Send a message to All online residents of a nation and log preceded by the [NationName], translated for the end-user.static void
TownyMessaging.sendPrefixedTownMessage
(Resident resident, Translatable message) Sends a message to all online residents of the specified resident's town, if they have one.static void
TownyMessaging.sendPrefixedTownMessage
(Town town, Translatable message) Send a message to All online residents of a town and log preceded by the [Townname], translated for the end-user.static void
TownyMessaging.sendTownMessagePrefixed
(Town town, Translatable message) Send a message to All online residents of a town and log, preceded by the default_towny_prefix -
Uses of Translatable in com.palmergames.bukkit.towny.command
Methods in com.palmergames.bukkit.towny.command with parameters of type TranslatableModifier and TypeMethodDescriptionstatic void
BaseCommand.checkPermOrThrowWithMessage
(org.bukkit.permissions.Permissible permissible, String node, Translatable errormsg) -
Uses of Translatable in com.palmergames.bukkit.towny.confirmations
Methods in com.palmergames.bukkit.towny.confirmations that return TranslatableModifier and TypeMethodDescriptionConfirmationTransaction.getInsufficientFundsMessage()
Confirmation.getTitle()
Gets the title of the confirmation message.Methods in com.palmergames.bukkit.towny.confirmations with parameters of type TranslatableConstructors in com.palmergames.bukkit.towny.confirmations with parameters of type TranslatableModifierConstructorDescriptionConfirmationTransaction
(Supplier<Double> costSupplier, Account payee, String loggedMessage, Translatable insufficientFundsMessage) Deprecated.ConfirmationTransaction
(Supplier<Double> costSupplier, EconomyHandler townyObject, String loggedMessage, Translatable insufficientFundsMessage) A transaction which must succeed for a Confirmation to complete. -
Uses of Translatable in com.palmergames.bukkit.towny.event.player
Methods in com.palmergames.bukkit.towny.event.player that return TranslatableMethods in com.palmergames.bukkit.towny.event.player with parameters of type TranslatableModifier and TypeMethodDescriptionvoid
PlayerDeniedBedUseEvent.setDenialMessage
(Translatable cancelMessage) Constructors in com.palmergames.bukkit.towny.event.player with parameters of type TranslatableModifierConstructorDescriptionPlayerDeniedBedUseEvent
(org.bukkit.entity.Player player, org.bukkit.Location location, boolean consideredEnemy, Translatable denialMessage) -
Uses of Translatable in com.palmergames.bukkit.towny.exceptions
Constructors in com.palmergames.bukkit.towny.exceptions with parameters of type TranslatableModifierConstructorDescriptionInvalidNameException
(Translatable translatable) NoPermissionException
(Translatable errormsg) NotRegisteredException
(Translatable message) ResidentNPCException
(Translatable errormsg) TownyException
(Translatable message) -
Uses of Translatable in com.palmergames.bukkit.towny.object
Methods in com.palmergames.bukkit.towny.object that return TranslatableModifier and TypeMethodDescriptionTranslatable.append
(Translatable translatable) Translatable.append
(net.kyori.adventure.text.Component append) static Translatable
Translatable.locale
(@NotNull org.bukkit.command.CommandSender commandSender) static Translatable
static Translatable
Translatable.stripColors
(boolean strip) @NotNull Translatable
SpawnType.typeName()
Methods in com.palmergames.bukkit.towny.object with parameters of type TranslatableModifier and TypeMethodDescriptionTranslatable.append
(Translatable translatable) static String
Translation.translateTranslatables
(org.bukkit.command.CommandSender sender, Translatable... translatables) static String
Translation.translateTranslatables
(org.bukkit.command.CommandSender sender, String delimiter, Translatable... translatables) -
Uses of Translatable in com.palmergames.bukkit.towny.permissions
Methods in com.palmergames.bukkit.towny.permissions with parameters of type TranslatableModifier and TypeMethodDescriptionvoid
TownyPermissionSource.testPermissionOrThrow
(org.bukkit.permissions.Permissible permissible, String perm, Translatable errormsg) A method to test if a Permissible has a specific permission node, which will show a non-generic no permission message if the Permissible does not have the node. -
Uses of Translatable in com.palmergames.bukkit.towny.utils
Methods in com.palmergames.bukkit.towny.utils that return TranslatableModifier and TypeMethodDescription@Nullable Translatable
BorderUtil.FloodfillResult.feedback()
Returns the value of thefeedback
record component.Constructors in com.palmergames.bukkit.towny.utils with parameters of type TranslatableModifierConstructorDescriptionFloodfillResult
(@NotNull BorderUtil.FloodfillResult.Type type, @Nullable Translatable feedback, @NotNull Collection<WorldCoord> coords) Creates an instance of aFloodfillResult
record class.
ConfirmationTransaction(Supplier, EconomyHandler, String, Translatable)
instead.