-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMessagesConfig.java
More file actions
34 lines (28 loc) · 1.15 KB
/
MessagesConfig.java
File metadata and controls
34 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.eternalcode.example.config;
import com.eternalcode.multification.notice.Notice;
import net.dzikoysk.cdn.entity.Description;
import net.kyori.adventure.bossbar.BossBar;
import java.time.Duration;
public class MessagesConfig {
@Description("# Join message")
public Notice joinedTheServer = Notice.builder()
.chat("<green><player> has joined the server!")
.bossBar(
BossBar.Color.GREEN,
BossBar.Overlay.PROGRESS,
Duration.ofSeconds(5),
1.0F,
"<green><player> has joined the server!"
)
.sound("minecraft:entity.player.levelup", 1.0F, 1.0F)
.build();
@Description("# Server switch message")
public Notice switchedServer = Notice.builder()
.chat("Switched to <server>!")
.sound("minecraft:entity.enderman.teleport", 1.0F, 1.0F)
.build();
public Notice reloadMessage = Notice.builder()
.chat("<pride:pride>Configuration has been reloaded!")
.sound("minecraft:ambient.basalt_deltas.additions", 1.0F, 1.0F)
.build();
}