mirror of
https://github.com/jpenilla/MiniMOTD.git
synced 2026-11-07 01:42:36 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a847dc5dd8 | ||
|
|
77f3ccf734 |
No files matched your search
+1
-1
@@ -8,7 +8,7 @@ plugins {
|
||||
|
||||
allprojects {
|
||||
group = "xyz.jpenilla"
|
||||
version = "1.2.3+${latestCommitHash()}-SNAPSHOT"
|
||||
version = "1.2.4+${latestCommitHash()}-SNAPSHOT"
|
||||
description = "Use MiniMessage text formatting in your servers MOTD."
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ public abstract class MiniMOTDConfig<I> {
|
||||
index = motds.size() == 1 ? 0 : ThreadLocalRandom.current().nextInt(motds.size());
|
||||
motd = motds.get(index).replace("{onlinePlayers}", String.valueOf(onlinePlayers))
|
||||
.replace("{maxPlayers}", String.valueOf(maxPlayers))
|
||||
.replace("{br}", System.lineSeparator());
|
||||
.replace("{br}", "\n");
|
||||
} else {
|
||||
motd = null;
|
||||
index = 0;
|
||||
|
||||
@@ -45,4 +45,4 @@ bungeeOnly:
|
||||
fakePlayers: "25%"
|
||||
|
||||
# Setting this to true will disable the hover text showing online player usernames
|
||||
disablePlayerListHover: false
|
||||
disablePlayerListHover: false
|
||||
Reference in new issue
Block a user