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
Pathlocalizations → 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
Pathmessage.yml → format.padding
padding:
enable: true
values:
example_left_5:
type: "LEFT"
length: 5
example_center_10:
type: "CENTER"
length: 10enable
Enables or disables the functionality of the module
values
List of template keys and values with settings
type
| Type | Explanation |
|---|---|
LEFT | Padding will be on the left |
RIGHT | Padding will be on the right |
CENTER | Padding will be centered (works the same as CENTER_LEFT) |
CENTER_LEFT | Padding will be centered. If the padding value is odd, the extra character is added to the left |
CENTER_RIGHT | Padding 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
Pathpermission.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
| Type | Explanation |
|---|---|
TRUE | Available to any player |
FALSE | Available to no one, must be granted separately (e.g., using LuckPerms) |
OP | Available to server operators |
NOT_OP | Available to NON-operators of the server |
values
If the player doesn't have permission, they won't see the padding
List of template keys and values with permissions
FlectonePulse