Uses of Class
com.palmergames.bukkit.towny.object.Translatable
Package
Description
-
Uses of Translatable in com.palmergames.bukkit.towny
Modifier 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
Modifier and TypeMethodDescriptionstatic void
BaseCommand.checkPermOrThrowWithMessage
(org.bukkit.permissions.Permissible permissible, String node, Translatable errormsg) -
Uses of Translatable in com.palmergames.bukkit.towny.confirmations
Modifier and TypeMethodDescriptionConfirmationTransaction.getInsufficientFundsMessage()
Confirmation.getTitle()
Gets the title of the confirmation message.ModifierConstructorDescriptionConfirmationTransaction
(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
Modifier and TypeMethodDescriptionvoid
PlayerDeniedBedUseEvent.setDenialMessage
(Translatable cancelMessage) ModifierConstructorDescriptionPlayerDeniedBedUseEvent
(org.bukkit.entity.Player player, org.bukkit.Location location, boolean consideredEnemy, Translatable denialMessage) -
Uses of Translatable in com.palmergames.bukkit.towny.exceptions
ModifierConstructorDescriptionInvalidNameException
(Translatable translatable) NoPermissionException
(Translatable errormsg) NotRegisteredException
(Translatable message) ResidentNPCException
(Translatable errormsg) TownyException
(Translatable message) -
Uses of Translatable in com.palmergames.bukkit.towny.object
Modifier 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()
Modifier 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
Modifier 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
Modifier and TypeMethodDescription@Nullable Translatable
BorderUtil.FloodfillResult.feedback()
Returns the value of thefeedback
record component.ModifierConstructorDescriptionFloodfillResult
(@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.