Plugin with config and API for your MOTD!
- Turn off server
- Add ForestSit into /plugins
- Turn on server
- And have fun!
Here you can see the configuration interface
Config
#
# ForestMOTD v1.0
#
# | If you find bug or you have an idea for an adjustment, please contact us on
# https://discord.com/invite/2PpdrfxhD4
#
# | %online% - Return number of players on server
# | %defaultMax% - Default server max server player size
# | %version% - Server version
# | %configPlayersMax% - Config player max number
#
# | Permission = forestMOTD.admin
#
#
# MOTD
#
# | Use ":n:" to do second line
# "maxPlayers: -1" - This will set default server number
#
motd:
maxPlayers: 69
# | 64x64 size icon
iconName: "server-icon.png"
text: "{#30FF5A>}&lForest{#7DFFC2<}&f&lMOTD:n:&rBest server in the Universe!"
#
# | If you want to use hover box on spigot, download ProtocolLib! (5.0.0+)
#
hoverBox:
- "&c❤ &a&lForest&7&lTech &c❤"
- " "
- " &aPlugins with &c❤"
- " "
#
# | Messages
#
message:
noPerm: "{#malachite>}&lForest{#bluestone<}&f&lMOTD &7You don't have sufficient permissions..."
reload: "{#malachite>}&lForest{#bluestone<}&f&lMOTD &7Config & Data reloaded..."
// Only think you have to know if you want to change it on Spigot or Bungee
// BungeeForestMOTDAPI | SpigotForestMOTDAPI
public static void reloadData() {
Bungee.getInstance().getBungeeMOTDManager().loadData();
}
public static void changeMOTD(String motdText) {
Bungee.getInstance().getBungeeMOTDManager().setMotdText(motdText);
}
public static void changeIcon(String iconName) {
Bungee.getInstance().getBungeeMOTDManager().changeIconName(iconName);
}
public static void changeMaxPlayers(int maxPlayers) {
Bungee.getInstance().getBungeeMOTDManager().setMaxPlayers(maxPlayers);
}
public static void changeHoverBox(List<String> list) {
Bungee.getInstance().getBungeeMOTDManager().setHoverBox(list);
}
ForestSit is licensed under the permissive MIT license. Please see LICENSE.txt
for more information.