diff --git a/.github/workflows/release-dev.yml b/.github/workflows/release-dev.yml index 7505fad..ef3a3ce 100644 --- a/.github/workflows/release-dev.yml +++ b/.github/workflows/release-dev.yml @@ -13,15 +13,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v7 with: ref: main - - name: Set up JDK 21 - uses: actions/setup-java@v3 + - name: Set up JDK 25 + uses: actions/setup-java@v6 with: distribution: 'adopt' - java-version: '21' + java-version: '25' - name: Make gradlew executable run: chmod +x ./gradlew diff --git a/LICENSE b/LICENSE index 261eeb9..6e80513 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright [2024-2026] [SimpleCloud] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 2c977e0..838afd0 100644 --- a/README.md +++ b/README.md @@ -37,60 +37,90 @@ Keep your staff informed about server state changes with real-time notifications Here you can see the configuration file for the plugin. All possible options are explained in the comments. ```yaml -# The date format pattern the notify plugin uses. -# For more information, see the official Java documentation: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/text/SimpleDateFormat.html -date-format: dd.MM.yyyy HH:mm:ss - -# Filter server states to notify about. -server-state-filter: - # server-state obviously sets the server state to filter for -- server-state: STARTING - # The message that is being sent to the permitted players goes here. - # Don't get irritated by the |- format, it's just a multiline string. You can also pass oneliners. - # Possible placeholders you can use here are: - # - : The group name the server belongs to - # - : The numerical id of the server - # - : The UUID of the server - # - : The state of the server after the update - # - : The IP that the server is running on - # - : The port that the server is bound to - # - : The amount of players currently online on the server - # - : The maximum amount of players that can join the server - # - : The date of the last update of the server - # - : The date of the initial update (creation) of the server - message: |- - Information of - Timestamp: - State: - Server-IP: - Port: - Players: /'>Server updated its state to . - # Users will need this permission to receive the message. Leave it empty (just '') to allow everyone to receive it. - permission: notify.receive.state-changed.starting - - # You can add more server states to filter like this: -- server-state: AVAILABLE - # To design your own messages, we recommend using the minimessage web-ui: https://webui.advntr.dev/ - message: |- - Information of - Timestamp: - State: - Server-IP: - Port: - Players: /'>Server updated its state to . - # The default permission is notify.receive.state-changed.[server-state] - permission: notify.receive.state-changed.available - -- server-state: STOPPING - message: |- - Information of - Timestamp: - State: - Server-IP: - Port: - Players: /'>Server updated its state to . - # Here you can see that everyone will receive the message, as the permission is empty. - permission: '' +version: 1 + +# ─────────────────────────────────────────────────────────────────────────────── +# Format Settings +# ─────────────────────────────────────────────────────────────────────────────── +format: + date: "dd.MM.yyyy HH:mm:ss" + +# ─────────────────────────────────────────────────────────────────────────────── +# Variables +# Reusable variables that can be used throughout the messages. +# Usage: will be replaced with the defined value. +# ─────────────────────────────────────────────────────────────────────────────── +variables: + prefix: "" + +# ─────────────────────────────────────────────────────────────────────────────── +# Command Messages +# ─────────────────────────────────────────────────────────────────────────────── +command: + help: + title: " <#0EA5E9>SimpleCloud Notify commands" + entry: "<#E2E8F0>" + empty: " <#F59E0B>No notify commands are available for you." + + usage: + invalid: " <#DC2626>Use <#F8FAFC> <#DC2626>instead." + entry: "<#E2E8F0>" + invalid-state: " <#DC2626>Use <#F8FAFC>enable <#DC2626>or <#F8FAFC>disable<#DC2626>." + invalid-toggle-value: " <#DC2626>Use <#F8FAFC>true <#DC2626>or <#F8FAFC>false<#DC2626>." + missing-player: " <#DC2626>Missing player <#F8FAFC><#DC2626>." + + permission: + denied: " <#DC2626>You do not have permission to use this command." + + notify: + enabled: " <#A3E635>Server notifications are now <#F8FAFC>enabled<#A3E635>." + disabled: " <#A3E635>Server notifications are now <#F8FAFC>disabled<#A3E635>." + already-enabled: " <#F59E0B>Server notifications are already <#F8FAFC>enabled<#F59E0B>." + already-disabled: " <#F59E0B>Server notifications are already <#F8FAFC>disabled<#F59E0B>." + + set: + enabled: " <#A3E635>Server notifications are now <#F8FAFC>enabled <#A3E635>for :true> <#F8FAFC><#A3E635>." + disabled: " <#A3E635>Server notifications are now <#F8FAFC>disabled <#A3E635>for :true> <#F8FAFC><#A3E635>." + already-enabled: " <#F59E0B>Server notifications are already <#F8FAFC>enabled <#F59E0B>for :true> <#F8FAFC><#F59E0B>." + already-disabled: " <#F59E0B>Server notifications are already <#F8FAFC>disabled <#F59E0B>for :true> <#F8FAFC><#F59E0B>." + + reload: + config: + success: " <#A3E635>Notify configuration was reloaded." + failed: " <#DC2626>Notify configuration could not be reloaded." + + error: + player-not-found: " <#DC2626>Player <#F8FAFC> <#DC2626>was not found." + player-not-online: " <#DC2626>Player <#F8FAFC> <#DC2626>is not online." + only-players: " <#DC2626>This command can only be used by players." + storage-unavailable: " <#DC2626>Notify settings are currently unavailable." + internal: " <#DC2626>An internal error occurred. Try again later." + +# ─────────────────────────────────────────────────────────────────────────────── +# Notifications +# Notification messages for different server and group states. +# +# NOTE: If you delete a state entry, the corresponding notification will not be sent. +# ─────────────────────────────────────────────────────────────────────────────── +notifications: + hover: + server: |- + <#E2E8F0>Server information +
<#94A3B8>Time<#475569>: <#E2E8F0>