Skip to content

Commit f35a65f

Browse files
committed
refactor(pulse): update to 1.4.2 version
1 parent da2606b commit f35a65f

File tree

20 files changed

+179
-141
lines changed

20 files changed

+179
-141
lines changed

pulse/en/docs/index.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ FlectonePulse is a plugin for Minecraft servers that allows full customization o
4242
### 3. How to configure message formatting?
4343
FlectonePulse has a versatile text formatting system supporting various color formats, from classic codes to modern gradients.
4444

45-
| **Input Color** | **Converted to** |
46-
|-------------------------------------------------------|-------------------------------------------------------------|
47-
| `&0`-`&9`, `&a`-`&f` | `<black>`, `<dark_blue>` ... `<white>` |
48-
| `&l`/`&m`/`&n`/`&o`/`&k`/`&r` | `<b>` / `<st>` / `<u>` / `<i>` / `<obf>` / `<reset>` |
49-
| `&#rrggbb`, `#rrggbb`, `&x&r&r&g&g&b&b`, `<##rrggbb>` | `<#rrggbb>` |
50-
| MiniMessage Tags | `<color:#rrggbb>`, `<rainbow>`, `<click:...>`, `<font>`, etc. |
45+
<!--@include: @/parts/legacyColors.md-->
5146

5247
*For flexibility, you can use `&` or `§` as interchangeable symbols.*
5348

@@ -189,6 +184,16 @@ The main issue has been fixed in recent Mohist versions, so FlectonePulse works
189184

190185
:::
191186

187+
### 21. Is your chat plugin incompatible with FlectonePulse?
188+
189+
By default, `FlectonePulse` has the `mode: "PACKET"` setting for [chats](/docs/message/chat/#mode). This prevents your plugin from working correctly
190+
191+
::: info INFO
192+
193+
You can change this to `mode: "BUKKIT"` to allow other plugins to interact with chat. In rare cases, you may use `mode: "PAPER"` if your plugin uses `Paper` listeners
194+
195+
:::
196+
192197
<div align="center">
193198
<h3>🚀 Start using FlectonePulse today!</h3>
194199
<br>

pulse/en/docs/message/format/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ The module responsible for formatting sent messages
2828

2929
<!--@include: @/parts/enable.md-->
3030

31+
### `convert-legacy-color`
32+
33+
Enables formatting of legacy colors
34+
35+
<!--@include: @/parts/legacyColors.md-->
36+
3137
### `adventure-tags`
3238

3339
These are [Kyori tags](https://docs.advntr.dev/minimessage/format.html#standard-tags) that may appear in messages.
@@ -62,13 +68,15 @@ These are [Kyori tags](https://docs.advntr.dev/minimessage/format.html#standard-
6268

6369
<!--@include: @/parts/permission/permissionTier3.md-->
6470

65-
### `all`
71+
### `legacy-colors`
72+
73+
This allows player to use legacy colors in their messages
6674

67-
Permission to use all available formatting options (all modules inside `format`)
75+
<!--@include: @/parts/legacyColors.md-->
6876

69-
::: info EXAMPLE
77+
::: tip NOTE
7078

71-
This will allow players to use `&c` in their messages, and it will be formatted as a color code
79+
If you need player's chat colors to be formatted, use `flectonepulse.module.message.format.color`
7280

7381
:::
7482

pulse/en/files/command.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ afk:
2424
#region anon
2525
anon:
2626
enable: true
27-
range: PROXY
27+
range: "PROXY"
2828
aliases:
2929
- "anon"
3030
destination:
@@ -37,7 +37,7 @@ anon:
3737
#region ball
3838
ball:
3939
enable: true
40-
range: PROXY
40+
range: "PROXY"
4141
aliases:
4242
- "ball"
4343
destination:
@@ -52,7 +52,7 @@ ban:
5252
enable: true
5353
suggest-offline-players: true
5454
show-connection-attempts: true
55-
range: PROXY
55+
range: "PROXY"
5656
aliases:
5757
- "ban"
5858
- "tempban"
@@ -77,7 +77,7 @@ banlist:
7777
#region broadcast
7878
broadcast:
7979
enable: true
80-
range: PROXY
80+
range: "PROXY"
8181
aliases:
8282
- "broadcast"
8383
destination:
@@ -431,7 +431,7 @@ clearmail:
431431
coin:
432432
enable: true
433433
draw: true
434-
range: PROXY
434+
range: "PROXY"
435435
aliases:
436436
- "coin"
437437
destination:
@@ -458,7 +458,7 @@ deletemessage:
458458
#region dice
459459
dice:
460460
enable: true
461-
range: PROXY
461+
range: "PROXY"
462462
min: 1
463463
max: 6
464464
aliases:
@@ -473,7 +473,7 @@ dice:
473473
#region do
474474
do:
475475
enable: true
476-
range: PROXY
476+
range: "PROXY"
477477
aliases:
478478
- "do"
479479
destination:
@@ -512,7 +512,7 @@ geolocate:
512512
#region helper
513513
helper:
514514
enable: true
515-
range: PROXY
515+
range: "PROXY"
516516
aliases:
517517
- "helper"
518518
destination:
@@ -549,7 +549,7 @@ ignorelist:
549549
#region kick
550550
kick:
551551
enable: true
552-
range: PROXY
552+
range: "PROXY"
553553
aliases:
554554
- "kick"
555555
destination:
@@ -587,7 +587,7 @@ maintenance:
587587
#region me
588588
me:
589589
enable: true
590-
range: PROXY
590+
range: "PROXY"
591591
aliases:
592592
- "me"
593593
destination:
@@ -601,7 +601,7 @@ me:
601601
mute:
602602
enable: true
603603
suggest-offline-players: true
604-
range: PROXY
604+
range: "PROXY"
605605
aliases:
606606
- "mute"
607607
destination:
@@ -626,7 +626,7 @@ mutelist:
626626
online:
627627
enable: true
628628
suggest-offline-players: true
629-
range: PROXY
629+
range: "PROXY"
630630
aliases:
631631
- "online"
632632
destination:
@@ -651,7 +651,7 @@ ping:
651651
#region poll
652652
poll:
653653
enable: true
654-
range: PROXY
654+
range: "PROXY"
655655
last-id: 1
656656
aliases:
657657
- "poll"
@@ -692,7 +692,7 @@ rockpaperscissors:
692692
#region spy
693693
spy:
694694
enable: true
695-
range: PROXY
695+
range: "PROXY"
696696
aliases:
697697
- "spy"
698698
categories:
@@ -714,7 +714,7 @@ spy:
714714
#region stream
715715
stream:
716716
enable: true
717-
range: PROXY
717+
range: "PROXY"
718718
aliases:
719719
- "stream"
720720
destination:
@@ -762,7 +762,7 @@ symbol:
762762
tell:
763763
enable: true
764764
suggest-offline-players: false
765-
range: PROXY
765+
range: "PROXY"
766766
aliases:
767767
- "tell"
768768
- "msg"
@@ -802,7 +802,7 @@ toponline:
802802
#region translateto
803803
translateto:
804804
enable: true
805-
range: PLAYER
805+
range: "PLAYER"
806806
service: GOOGLE
807807
aliases:
808808
- "translateto"
@@ -819,7 +819,7 @@ translateto:
819819
#region try
820820
try:
821821
enable: true
822-
range: PROXY
822+
range: "PROXY"
823823
min: 0
824824
max: 100
825825
good: 50
@@ -835,7 +835,7 @@ try:
835835
#region unban
836836
unban:
837837
enable: true
838-
range: PROXY
838+
range: "PROXY"
839839
aliases:
840840
- "unban"
841841
- "pardon"
@@ -849,7 +849,7 @@ unban:
849849
#region unmute
850850
unmute:
851851
enable: true
852-
range: PROXY
852+
range: "PROXY"
853853
aliases:
854854
- "unmute"
855855
destination:
@@ -862,7 +862,7 @@ unmute:
862862
#region unwarn
863863
unwarn:
864864
enable: true
865-
range: PROXY
865+
range: "PROXY"
866866
aliases:
867867
- "unwarn"
868868
destination:
@@ -876,7 +876,7 @@ unwarn:
876876
warn:
877877
enable: true
878878
suggest-offline-players: true
879-
range: PROXY
879+
range: "PROXY"
880880
aliases:
881881
- "warn"
882882
actions:

pulse/en/files/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
#region config
1212
console: "Console"
13-
version: "1.4.1"
13+
version: "1.4.2"
1414
language: "en_us"
1515
language-player: true
1616
unregister-own-commands: false

pulse/en/files/localizations/en_us.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ command:
337337
#region ping
338338
ping:
339339
null-player: "<color:#ff7171><b>⁉</b> This player does not exist"
340-
format: "<fcolor:1>🖧 <fcolor:2><player>'s <fcolor:1>ping is <ping>"
340+
format: "<fcolor:1>🖧 <display_name>'s ping is <ping>"
341341
#endregion ping
342342
#region poll
343343
poll:
@@ -367,7 +367,7 @@ command:
367367
sender: "<fcolor:1>Now goes <display_name>"
368368
receiver: "<fcolor:2>✂ <display_name> <fcolor:1>suggested a game of rock-paper-scissors"
369369
format-move: "<fcolor:2>✂ <fcolor:1>Choose your move <fcolor:2><click:run_command:\"/rps <target> rock <uuid>\">[🪨 rock]</click> <click:run_command:\"/rps <target> scissors <uuid>\">[✂ scissors]</click> <click:run_command:\"/rps <target> paper <uuid>\">[🧻 paper]</click>"
370-
format-win: "<color:#98FB98>✂ Winning <player>! <b><sender_move></b> on <b><receiver_move></b>"
370+
format-win: "<color:#98FB98>✂ Winning <display_name>! <b><sender_move></b> on <b><receiver_move></b>"
371371
format-draw: "<color:#98FB98>✂ It's a draw! You both chose <b><move>"
372372
strategies:
373373
paper: "paper"
@@ -419,8 +419,8 @@ command:
419419
field: "<fcolor:1><br>|[#][#][#]| <title> <current_move> <br><fcolor:1>|[#][#][#]| <br>|[#][#][#]| <last_move><br>"
420420
current-move: "<fcolor:2>☐ → <symbol>"
421421
last-move: "<fcolor:2>Last move (<move>)"
422-
format-move: "<fcolor:2><player>'s move"
423-
format-win: "<color:#98FB98><player> won this game</color:#98FB98>"
422+
format-move: "<fcolor:2><display_name>'s move"
423+
format-win: "<color:#98FB98><display_name> won this game</color:#98FB98>"
424424
format-draw: "<color:#98FB98>The game ended in a draw 👬</color:#98FB98>"
425425
sender: "<fcolor:1>☐ An offer to play was sent to <display_name>"
426426
receiver: "<click:run_command:\"/tictactoemove %d create\"><fcolor:1>☐ Received an invite to play tic-tac-toe with <display_name>, accept? [+]"

pulse/en/files/localizations/ru_ru.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ command:
337337
#region ping
338338
ping:
339339
null-player: "<color:#ff7171><b>⁉</b> Игрок не найден"
340-
format: "<fcolor:1>🖧 Пинг игрока <fcolor:2><player><fcolor:1> равен <ping>"
340+
format: "<fcolor:1>🖧 Пинг игрока <display_name>< равен <ping>"
341341
#endregion ping
342342
#region poll
343343
poll:
@@ -419,8 +419,8 @@ command:
419419
field: "<fcolor:1><br>|[#][#][#]| <title> <current_move> <br><fcolor:1>|[#][#][#]| <br>|[#][#][#]| <last_move><br>"
420420
current-move: "<fcolor:2>☐ → <symbol>"
421421
last-move: "<fcolor:2>Последний ход (<move>)"
422-
format-move: "<fcolor:2>Ход <player> "
423-
format-win: "<color:#98FB98><player> выиграл</color:#98FB98>"
422+
format-move: "<fcolor:2>Ход <display_name> "
423+
format-win: "<color:#98FB98><display_name> выиграл</color:#98FB98>"
424424
format-draw: "<color:#98FB98>Ничья 👬</color:#98FB98>"
425425
sender: "<fcolor:1>☐ Предложение сыграть в крестики-нолики отправлено для <display_name>"
426426
receiver: "<click:run_command:\"/tictactoemove %d create\"><fcolor:1>☐ Есть предложение сыграть в крестики-нолики от <display_name>, принять? [+]"

pulse/en/files/message.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ advancement:
1616
enable: true
1717
grant: true
1818
revoke: true
19-
range: SERVER
19+
range: "SERVER"
2020
destination:
2121
type: "CHAT"
2222
sound:
@@ -25,7 +25,7 @@ advancement:
2525
#region afk
2626
afk:
2727
enable: true
28-
range: SERVER
28+
range: "SERVER"
2929
delay: 3000
3030
ignore:
3131
- "afk"
@@ -125,7 +125,7 @@ chat:
125125
global:
126126
enable: true
127127
cancel: false
128-
range: PROXY
128+
range: "PROXY"
129129
priority: 5
130130
trigger: "!"
131131
null-receiver:
@@ -152,7 +152,7 @@ clear:
152152
#region death
153153
death:
154154
enable: true
155-
range: SERVER
155+
range: "SERVER"
156156
destination:
157157
type: "CHAT"
158158
sound:
@@ -177,6 +177,7 @@ enchant:
177177
#region format
178178
format:
179179
enable: true
180+
convert-legacy-color: true
180181
adventure-tags:
181182
- "HOVER"
182183
- "CLICK"
@@ -285,7 +286,7 @@ format:
285286
enable: false
286287
questions:
287288
server:
288-
range: PLAYER
289+
range: "PLAYER"
289290
destination:
290291
type: "CHAT"
291292
cooldown:
@@ -294,7 +295,7 @@ format:
294295
enable: false
295296
target: "(?i)\\b(what\\s+is\\s+this\\s+server|what\\'?s\\s+this\\s+server|what\\s+server\\s+is\\s+this)\\b"
296297
flectone:
297-
range: PLAYER
298+
range: "PLAYER"
298299
destination:
299300
type: "CHAT"
300301
cooldown:
@@ -391,7 +392,7 @@ greeting:
391392
join:
392393
enable: true
393394
first: true
394-
range: SERVER
395+
range: "SERVER"
395396
destination:
396397
type: "CHAT"
397398
sound:
@@ -436,7 +437,7 @@ op:
436437
#region quit
437438
quit:
438439
enable: true
439-
range: SERVER
440+
range: "SERVER"
440441
destination:
441442
type: "CHAT"
442443
sound:

0 commit comments

Comments
 (0)