Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf4625e853 | ||
|
|
702b973523 | ||
|
|
d79a6d430b | ||
|
|
b1ca586adb | ||
|
|
4d1a30acb9 |
No files matched your search
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 Woolyenough
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,4 +1,4 @@
|
||||
Paper plugin for easily modifying the MOTD, player limit, and listed player info (message when hovering cursor over the player count). Compatible exclusively with Paper, utilising the modern `PaperServerListPingEvent` listener. Designed for simplicity.
|
||||
Paper plugin for easily modifying the MOTD, player limit, and listed player info (message when hovering cursor over the player count). Compatible exclusively with Paper, utilising the modern `PaperServerListPingEvent` listener. Designed for simplicity & tailored for the newest versions of the game.
|
||||
|
||||
## Commands & Permissions:
|
||||
- `/max-players <int>` (alias: `/set-max-players`) - set server player limit from in-game (also sets it in config)
|
||||
@@ -10,15 +10,15 @@ Both commands require the permission `custommotd.admin`.
|
||||
```yaml
|
||||
# Uses Adventure's MiniMessage: https://docs.advntr.dev/minimessage/format.html
|
||||
motd:
|
||||
line1: "First line"
|
||||
line2: "Second line"
|
||||
line1: "<red>First <gradient:#aa0000:#0000aa>line</gradient>"
|
||||
line2: "<blue><u>Second</u> line"
|
||||
|
||||
# Uses legacy colour codes (e.g., §a, §1)
|
||||
enable_hover_message: true
|
||||
player_hover_message:
|
||||
- "First line"
|
||||
- "Second line"
|
||||
- "§a§lFirst line"
|
||||
- "§cSecond line"
|
||||
|
||||
# Set -1 to leave unchanged
|
||||
max_players: 50
|
||||
```
|
||||
```
|
||||
+2
-2
@@ -19,7 +19,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT"
|
||||
compileOnly "io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT"
|
||||
}
|
||||
|
||||
def targetJavaVersion = 21
|
||||
@@ -50,7 +50,7 @@ processResources {
|
||||
}
|
||||
|
||||
shadowJar{
|
||||
archiveFileName = "CustomMotd.jar"
|
||||
archiveFileName = "CustomMOTD.jar"
|
||||
}
|
||||
artifacts {
|
||||
archives shadowJar
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
rootProject.name = 'CustomMotd'
|
||||
@@ -1,7 +1,7 @@
|
||||
name: CustomMotd
|
||||
name: CustomMOTD
|
||||
version: '${version}'
|
||||
main: wtf.wooly.custommotd.CustomMotd
|
||||
api-version: '1.20'
|
||||
api-version: '1.21'
|
||||
authors: [Woolyenough]
|
||||
website: https://modrinth.com/project/custom-motd
|
||||
|
||||
|
||||
Reference in new issue
Block a user