Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
@Permission("eternalcore.eternalcore")
class EternalCoreCommand {

private static final String RELOAD_MESSAGE = "<b><gradient:#29fbff:#38b3ff>EternalCore:</gradient></b> <green>Configuration has ben successfully reloaded in %d ms.</green>";
private static final String RELOAD_MESSAGE = "<b><gradient:#29fbff:#38b3ff>EternalCore:</gradient></b> "
+ "<color:#9d6eef>Configuration has been successfully reloaded in %d ms.</color:#9d6eef>";

private final ConfigurationManager configurationManager;
private final MiniMessage miniMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
@Accessors(fluent = true)
public class ENAdminChatMessages extends OkaeriConfig implements AdminChatMessages {

@Comment({"# {PLAYER} - Player who sent message on adminchat, {TEXT} - message"})
Notice format = Notice.chat("<dark_gray>[<dark_red>AdminChat<dark_gray>] <red>{PLAYER}<dark_gray>: <white>{TEXT}");
@Comment("# {PLAYER} - player name, {TEXT} - message content")
Notice format = Notice.chat("<dark_gray>[<color:#9d6eef>Admin<dark_gray>] <gradient:#9d6eef:#A1AAFF>{PLAYER}</gradient><dark_gray>: <white>{TEXT}");

Notice enabled = Notice.chat("<green>► <white>Enabled persistent admin chat!");
Notice enabled = Notice.chat("<color:#9d6eef>► <white>Enabled persistent admin chat!");

Notice disabled = Notice.chat("<green>► <white>Disabled persistent admin chat!");
Notice disabled = Notice.chat("<color:#9d6eef>► <white>Disabled persistent admin chat!");

Notice enabledReminder = Notice.actionbar("<green>AdminChat channel is enabled!");
Notice enabledReminder = Notice.actionbar("<color:#9d6eef>AdminChat channel is enabled!");
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
@Accessors(fluent = true)
public class PLAdminChatMessages extends OkaeriConfig implements AdminChatMessages {

@Comment({"# {PLAYER} - Gracz który wysłał wiadomość na czacie administracji, {TEXT} - Treść wysłanej wiadomości"})
Notice format = Notice.chat("<dark_gray>[<dark_red>Administracja<dark_gray>] <red>{PLAYER}<dark_gray>: <white>{TEXT}");
@Comment("# {PLAYER} - nazwa gracza, {TEXT} - treść wiadomości")
Notice format = Notice.chat(
"<dark_gray>[<color:#9d6eef>Admin<dark_gray>] <gradient:#9d6eef:#A1AAFF>{PLAYER}</gradient><dark_gray>: <white>{TEXT}");

Notice enabled = Notice.chat("<green>► <white>Włączono trwały czat administracji!");
Notice enabled = Notice.chat("<color:#9d6eef>► <white>Włączono trwały czat administracji!");

Notice disabled = Notice.chat("<green>► <white>Wyłączono trwały czat administracji!");
Notice disabled = Notice.chat("<color:#9d6eef>► <white>Wyłączono trwały czat administracji!");

Notice enabledReminder = Notice.actionbar("<green> Trwały czat administracji jest włączony!");
Notice enabledReminder = Notice.actionbar("<color:#9d6eef>Trwały czat administracji jest włączony!");
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
public class ENAfkMessages extends OkaeriConfig implements AfkMessages {

@Comment("# {PLAYER} - Player who is in AFK")
Notice afkOn = Notice.chat("<green>► <white>{PLAYER} is AFK!");
Notice afkOff = Notice.chat("<green>► <white>{PLAYER} is no more AFK!");
Notice afkOn = Notice.chat("<color:#9d6eef>► <white>{PLAYER} is AFK!");
Notice afkOff = Notice.chat("<color:#9d6eef>► <white>{PLAYER} is no more AFK!");

@Comment({" ", "# {TIME} - Time after the player can execute the command."})
Notice afkDelay = Notice.chat("<red>► <dark_red>You can use this command only after <red>{TIME}!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@

import com.eternalcode.multification.notice.Notice;
import eu.okaeri.configs.OkaeriConfig;
import lombok.Getter;
import eu.okaeri.configs.annotation.Comment;
import lombok.Getter;
import lombok.experimental.Accessors;

@Getter
@Accessors(fluent = true)
public class PLAfkMessages extends OkaeriConfig implements AfkMessages {

@Comment("# {PLAYER} - Gracz ")
Notice afkOn = Notice.chat("<green>► <white>{PLAYER} jest AFK!");
Notice afkOn = Notice.chat("<color:#9d6eef>► <white>{PLAYER} jest AFK!");

@Comment("# {PLAYER} - Gracz ")
Notice afkOff = Notice.chat("<green>► <white>{PLAYER} już nie jest AFK!");
Notice afkOff = Notice.chat("<color:#9d6eef>► <white>{PLAYER} już nie jest AFK!");

@Comment({" ", "# {TIME} - Czas po którym gracz może użyć komendy"})
Notice afkDelay = Notice.chat("<red>► <dark_red>Możesz użyć tej komendy dopiero po <dark_red>{TIME}!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,25 @@
public class ENAutoMessageMessages extends OkaeriConfig implements AutoMessageMessages {

@Comment({
"",
"# If you want to use placeholder %server_online% you need to install",
"# PlaceholderAPI plugin and download placeholders for Server",
"# like /papi ecloud download Server",
"# If you want to use placeholder %server_online% you need to install",
"# PlaceholderAPI plugin and download placeholders for Server",
"# like /papi ecloud download Server",
})
public Map<String, Notice> messages = Map.of(
"1", BukkitNotice.builder()
.actionBar("<dark_gray>» <gold>There are <white>%server_online% <gold>people online on the server!")
.sound(Sound.ITEM_ARMOR_EQUIP_IRON, 1.0f, 1.0f)
.build(),

"2", BukkitNotice.builder()
.chat("<dark_gray>» <gold>You need help from an admin?")
.chat("<dark_gray>» <gold>Type command <white>/helpop <gold>to ask!")
.chat("<dark_gray>» <green><click:suggest_command:'/helpop'>Click to execute!</click></green>")
.sound(Sound.BLOCK_ANVIL_BREAK, 1.0f, 1.0f)
.build()
);

Notice enabled = Notice.chat("<green>► <white>Enabled auto messages!");
Notice disabled = Notice.chat("<green>► <white>Disabled auto messages!");
"1", BukkitNotice.builder()
.actionBar("<color:#9d6eef>► <white>There are <color:#9d6eef>%server_online% <white>people online on the server!")
.sound(Sound.ITEM_ARMOR_EQUIP_IRON, 1.0f, 1.0f)
.build(),

"2", BukkitNotice.builder()
.chat("<color:#9d6eef>► <white>You need help from an admin?")
.chat("<color:#9d6eef>► <white>Type command <color:#9d6eef>/helpop <white>to ask!")
.chat("<color:#9d6eef>► <color:#9d6eef><click:suggest_command:'/helpop'>Click to execute!</click></color:#9d6eef>")
.sound(Sound.BLOCK_ANVIL_BREAK, 1.0f, 1.0f)
.build());

Notice enabled = Notice.chat("<color:#9d6eef>► <white>Enabled auto messages!");
Notice disabled = Notice.chat("<color:#9d6eef>► <white>Disabled auto messages!");

@Override
public Collection<Notice> messages() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,26 @@
@Accessors(fluent = true)
public class PLAutoMessageMessages extends OkaeriConfig implements AutoMessageMessages {
@Comment({
"",
"# Jeżeli chcesz użyć placeholder'a %server_online% musisz zainstalować plugin",
"# PlaceholderAPI oraz pobrać placeholdery dla Server'a",
"# za pomocą komendy /papi ecloud download Server",
"# Jeżeli chcesz użyć placeholder'a %server_online% musisz zainstalować plugin",
"# PlaceholderAPI oraz pobrać placeholdery dla Server'a",
"# za pomocą komendy /papi ecloud download Server",
})
public Map<String, Notice> messages = Map.of(
"1", BukkitNotice.builder()
.actionBar("<dark_gray>» <gold>Na serwerze jest: <white>%server_online% <gold>graczy online!")
.sound(Sound.ITEM_ARMOR_EQUIP_IRON, 1.0f, 1.0f)
.build(),
"1", BukkitNotice.builder()
.actionBar(
"<color:#9d6eef>► <white>Na serwerze jest: <color:#9d6eef>%server_online% <white>graczy online!")
.sound(Sound.ITEM_ARMOR_EQUIP_IRON, 1.0f, 1.0f)
.build(),

"2", BukkitNotice.builder()
.chat("<dark_gray>» <gold>Potrzebujesz pomocy od admina?")
.chat("<dark_gray>» <gold>Użyj komendy <white>/helpop <gold>aby zgłosić problem!")
.chat("<dark_gray>» <green><click:suggest_command:'/helpop'>Kliknij aby wykonać!</click></green>")
.sound(Sound.BLOCK_ANVIL_BREAK, 1.0f, 1.0f)
.build()
);
"2", BukkitNotice.builder()
.chat("<color:#9d6eef>► <white>Potrzebujesz pomocy od admina?")
.chat("<color:#9d6eef>► <white>Użyj komendy <color:#9d6eef>/helpop <white>aby zgłosić problem!")
.chat("<color:#9d6eef>► <color:#9d6eef><click:suggest_command:'/helpop'>Kliknij aby wykonać!</click></color:#9d6eef>")
.sound(Sound.BLOCK_ANVIL_BREAK, 1.0f, 1.0f)
.build());

Notice enabled = Notice.chat("<green>► <white>Włączono automatyczne wiadomości!");
Notice disabled = Notice.chat("<green>► <white>Wyłączono automatyczne wiadomości!");
Notice enabled = Notice.chat("<color:#9d6eef>► <white>Włączono automatyczne wiadomości!");
Notice disabled = Notice.chat("<color:#9d6eef>► <white>Wyłączono automatyczne wiadomości!");

@Override
public Collection<Notice> messages() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
public class ENBroadcastMessages extends OkaeriConfig implements BroadcastMessages {

@Comment("# {BROADCAST} - Broadcast")
public String messageFormat = "<red><bold>BROADCAST:</bold> <gray>{BROADCAST}";
public String messageFormat = "<color:#9d6eef><bold>BROADCAST:</bold> <white>{BROADCAST}";

@Comment("# Used only in title broadcasts")
public String titleHeader = "<red><bold>BROADCAST:</bold>";
public String titleHeader = "<color:#9d6eef><bold>BROADCAST:</bold>";

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
public class PLBroadcastMessages extends OkaeriConfig implements BroadcastMessages {

@Comment("# {BROADCAST} - Ogłoszenie")
public String messageFormat = "<red><bold>OGŁOSZENIE:</bold> <gray>{BROADCAST}";
public String messageFormat = "<color:#9d6eef><bold>OGŁOSZENIE:</bold> <white>{BROADCAST}";

@Comment("# Używane tylko w ogłoszeniach tytułowych")
public String titleHeader = "<red><bold>OGŁOSZENIE:</bold>";
public String titleHeader = "<color:#9d6eef><bold>OGŁOSZENIE:</bold>";

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
public class ENBurnMessages extends OkaeriConfig implements BurnMessages {

@Comment("# Available placeholders: {PLAYER} - burned player, {TICKS} - number of ticks the player is on fire")
Notice burnedSelf = Notice.chat("<green>► <white>You have been set on fire for <green>{TICKS}<white> ticks!");
Notice burnedSelf = Notice.chat("<color:#9d6eef>► <white>You have been set on fire for <color:#9d6eef>{TICKS}<white> ticks!");

@Comment(" ")
Notice burnedOther = Notice.chat("<green>► {PLAYER} <white>has been set on fire for <green>{TICKS} <white>ticks!");
Notice burnedOther = Notice.chat("<color:#9d6eef>► {PLAYER} <white>has been set on fire for <color:#9d6eef>{TICKS} <white>ticks!");
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
public class PLBurnMessages extends OkaeriConfig implements BurnMessages {

@Comment("# Dostępne placeholdery: {PLAYER} - podpalony gracz, {TICKS} - liczba ticków podpalenia")
Notice burnedSelf = Notice.chat("<green>► <white>Zostałeś podpalony na <green>{TICKS}<white> ticków!");
Notice burnedSelf = Notice.chat("<color:#9d6eef>► <white>Zostałeś podpalony na <color:#9d6eef>{TICKS}<white> ticków!");

@Comment(" ")
Notice burnedOther = Notice.chat("<green>► {PLAYER} <white>został podpalony na <green>{TICKS}<white> ticków!");
Notice burnedOther = Notice.chat("<color:#9d6eef>► {PLAYER} <white>został podpalony na <color:#9d6eef>{TICKS}<white> ticków!");
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Getter
@Accessors(fluent = true)
public class ENButcherMessages extends OkaeriConfig implements ButcherMessages {
Notice killed = Notice.chat("<green>► <white>You killed <green>{KILLED} <white>mobs!");
Notice killed = Notice.chat("<color:#9d6eef>► <white>You killed <color:#9d6eef>{KILLED} <white>mobs!");
Notice safeChunksLimitExceeded = Notice.chat("<red>✘ <dark_red>You have exceeded the number of safe chunks <red>{SAFE_CHUNKS}");
Notice invalidChunkNumber = Notice.chat("<red>✘ <dark_red>Incorrect number of chunks!");
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Getter
@Accessors(fluent = true)
public class PLButcherMessages extends OkaeriConfig implements ButcherMessages {
Notice killed = Notice.chat("<green>► <white>Zabiłeś <green>{KILLED} <white>mobów!");
Notice killed = Notice.chat("<color:#9d6eef>► <white>Zabiłeś <color:#9d6eef>{KILLED} <white>mobów!");
Notice safeChunksLimitExceeded = Notice.chat("<red>✘ <dark_red>Przekroczyłeś liczbę bezpiecznych chunków <dark_red>{SAFE_CHUNKS}");
Notice invalidChunkNumber = Notice.chat("<red>✘ <dark_red>Niepoprawna liczba chunków!");
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
@Getter
@Accessors(fluent = true)
public class ENChatMessages extends OkaeriConfig implements ChatMessages {
Notice chatDisabled = Notice.chat("<green>► <white>Chat has been disabled by <green>{PLAYER}<white>!");
Notice chatEnabled = Notice.chat("<green>► <white>Chat has been enabled by <green>{PLAYER}<white>!");
Notice chatCleared = Notice.chat("<green>► <white>Chat has been cleared by <green>{PLAYER}<white>!");
Notice chatDisabled = Notice.chat("<color:#9d6eef>► <white>Chat has been disabled by <color:#9d6eef>{PLAYER}<white>!");
Notice chatEnabled = Notice.chat("<color:#9d6eef>► <white>Chat has been enabled by <color:#9d6eef>{PLAYER}<white>!");
Notice chatCleared = Notice.chat("<color:#9d6eef>► <white>Chat has been cleared by <color:#9d6eef>{PLAYER}<white>!");

@Comment
Notice chatAlreadyDisabled = Notice.chat("<red>✘ <dark_red>Chat is already disabled!");
Notice chatAlreadyEnabled = Notice.chat("<red>✘ <dark_red>Chat is already enabled!");

@Comment
Notice slowModeSet = Notice.chat("<green>► <white>Slow mode has been set to {SLOWMODE}");
Notice slowModeDisabled = Notice.chat("<green>► <white>Slow mode has been disabled by <green>{PLAYER}<white>!");
Notice slowModeSet = Notice.chat("<color:#9d6eef>► <white>Slow mode has been set to {SLOWMODE}");
Notice slowModeDisabled = Notice.chat("<color:#9d6eef>► <white>Slow mode has been disabled by <color:#9d6eef>{PLAYER}<white>!");

@Comment({" ", "# {TIME} - Slow mode time"})
Notice slowModeNotReady = Notice.chat("<red>✘ <dark_red>You can send the next message in <red>{TIME}<dark_red>!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
@Getter
@Accessors(fluent = true)
public class PLChatMessages extends OkaeriConfig implements ChatMessages {
Notice chatDisabled = Notice.chat("<green>► <white>Czat został wyłączony przez <green>{PLAYER}<white>!");
Notice chatEnabled = Notice.chat("<green>► <white>Czat został włączony przez <green>{PLAYER}<white>!");
Notice chatCleared = Notice.chat("<green>► <white>Czat został wyczyszczony przez <green>{PLAYER}<white>!");
Notice chatDisabled = Notice.chat("<color:#9d6eef>► <white>Czat został wyłączony przez <color:#9d6eef>{PLAYER}<white>!");
Notice chatEnabled = Notice.chat("<color:#9d6eef>► <white>Czat został włączony przez <color:#9d6eef>{PLAYER}<white>!");
Notice chatCleared = Notice.chat("<color:#9d6eef>► <white>Czat został wyczyszczony przez <color:#9d6eef>{PLAYER}<white>!");

@Comment
Notice chatAlreadyDisabled = Notice.chat("<red>✘ <dark_red>Czat jest już wyłączony!");
Notice chatAlreadyEnabled = Notice.chat("<red>✘ <dark_red>Czat jest już włączony!");

@Comment
Notice slowModeSet = Notice.chat("<green>► <white>Tryb powolnego wysyłania został ustawiony na {SLOWMODE}");
Notice slowModeDisabled = Notice.chat("<green>► <white>Tryb powolnego wysyłania został wyłączony przez <green>{PLAYER}<white>!");
Notice slowModeSet = Notice.chat("<color:#9d6eef>► <white>Tryb powolnego wysyłania został ustawiony na {SLOWMODE}");
Notice slowModeDisabled = Notice.chat("<color:#9d6eef>► <white>Tryb powolnego wysyłania został wyłączony przez <color:#9d6eef>{PLAYER}<white>!");
@Comment({" ", "# {TIME} - Czas powolnego wysyłania wiadomości"})
Notice slowModeNotReady = Notice.chat("<red>✘ <dark_red>Następną wiadomość możesz wysłać za <red>{TIME}<dark_red>!");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import com.eternalcode.multification.notice.Notice;
import eu.okaeri.configs.OkaeriConfig;
import eu.okaeri.configs.annotation.Comment;
import lombok.Getter;
import lombok.experimental.Accessors;

@Getter
@Accessors(fluent = true)
public class ENClearMessages extends OkaeriConfig implements ClearMessages {

Notice inventoryCleared = Notice.chat("<green>► <white>Your inventory has been cleared");
Notice targetInventoryCleared = Notice.chat("<green>► <white>Player inventory: <green>{PLAYER} <white>has been cleared");
Notice inventoryCleared = Notice.chat("<color:#9d6eef>► <white>Your inventory has been cleared");
Notice targetInventoryCleared = Notice.chat("<color:#9d6eef>► <white>Player inventory: <color:#9d6eef>{PLAYER} <white>has been cleared");

}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import com.eternalcode.multification.notice.Notice;
import eu.okaeri.configs.OkaeriConfig;
import eu.okaeri.configs.annotation.Comment;
import lombok.Getter;
import lombok.experimental.Accessors;

@Getter
@Accessors(fluent = true)
public class PLClearMessages extends OkaeriConfig implements ClearMessages {

Notice inventoryCleared = Notice.chat("<green>► <white>Twój ekwipunek został wyczyszczony!");
Notice targetInventoryCleared = Notice.chat("<green>► <white>Ekwipunek gracza <green>{PLAYER} <white>został wyczyszczony");
Notice inventoryCleared = Notice.chat("<color:#9d6eef>► <white>Twój ekwipunek został wyczyszczony!");
Notice targetInventoryCleared = Notice.chat("<color:#9d6eef>► <white>Ekwipunek gracza <color:#9d6eef>{PLAYER} <white>został wyczyszczony");

}
Loading