Flectone Logo FlectonePulse

Padding

Module that adds padding

Usage:

  • <padding:10> adds 10 spaces
  • <padding:10:'hello world'> adds 10 spaces to the left
  • <padding:CENTER:10:'hello world'> adds 5 spaces to the left and right

You can also specify starting and ending characters. For example, <padding:CENTER:10:'hello world':'Hi, ':'Goodbye'> adds 5 spaces at the start and end, writes "Hi, " at the beginning, and "Goodbye" at the end

You can create a custom template by specifying type and length, and in the localization file set symbol the character used for padding (default is a space). You can also set start and end characters there. For example: <padding:example_left_5>


Localization

Path localizations → language.yml → message.format.padding
padding:
  values:
    example_left_5:
      symbol: "->"
      start: ""
      end: ""
    example_center_10:
      symbol: "-"
      start: "="
      end: "="
padding:
  values:
    example_left_5:
      symbol: "->"
      start: ""
      end: ""
    example_center_10:
      symbol: "-"
      start: "="
      end: "="

values

List of template keys and values with characters

symbol

Character used for padding, default is a space

start

Character placed at the beginning of the padding

end

Character placed at the end of the padding


Setting

Path message.yml → format.padding
padding:
  enable: true
  values:
    example_left_5:
      type: "LEFT"
      length: 5
    example_center_10:
      type: "CENTER"
      length: 10

enable

Enables or disables the functionality of the module

values

List of template keys and values with settings

type

TypeExplanation
LEFTPadding will be on the left
RIGHTPadding will be on the right
CENTERPadding will be centered (works the same as CENTER_LEFT)
CENTER_LEFTPadding will be centered. If the padding value is odd, the extra character is added to the left
CENTER_RIGHTPadding will be centered. If the padding value is odd, the extra character is added to the right

length

The padding value, i.e., how many characters will be added


Permissions

Path permission.yml → message.format.padding
padding:
  name: "flectonepulse.module.message.format.padding"
  type: "OP"
  values:
    example_left_5:
      name: "flectonepulse.module.message.format.padding.example_left_5"
      type: "TRUE"
    example_center_10:
      name: "flectonepulse.module.message.format.padding.example_center_10"
      type: "TRUE"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSEAvailable to no one, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to NON-operators of the server

values

Info

If the player doesn't have permission, they won't see the padding

List of template keys and values with permissions

Last updated July 23, 2026
Edit on GitHub

On this page

Authors of page