SMOTD
== SMOTD ==
This is a simple plugin to set your Server-MotD(Message of the Day) how ever you want. There are two types of MotD's. The Ingame one and the ServerList one. You can change the Ingame-MotD in the config or with the command /setimotd (variable). You can see the Ingame-MotD with the command /motd. The ServerList MotD is changeable in two steps. You can change the first Line with the command /setmotd1 (variable) and the second Line with /setmotd2 (variable). If you change the MotD in the config.ml, you can use the command /smotdreload to reload the plugin and to apply the changes. With the command /smotd you can see the help for this plugin.
Permissions:
The /motd doesn't need a permission!
smotd.reload: Allow to reload the config.yml!
smotd.help: Shows the plugin help!
smotd.set.1: Allows to use the /setmotd1
smotd.set.2: Allows to use the /setmotd2
smotd.set.ingame: Allows to use the /setimotd
Configuration:
Linie1: §3ColorExample
Change the first line!
Linie2: §lBoldExample
Change the second line!
Join: §4Change in the config!
Change the Ingame-MotD!
NoPerm: §cYou do not have the permission to do this!
Change the NoPermission msg!
TODO
- Add JoinMessage
- Add PlayerCountMessage
- More Ideas?
I found a problem with the Config.yml! Sorry for that today I am gonna bring out a new version!
The ConsoleProblem
[11:54:24 ERROR]: [SMOTD] Cannot load configuration from jar org.bukkit.configuration.InvalidConfigurationException: while scanning an anchor in 'string', line 8, column 7: Join: &n&4Change in the config! ^ expected alphabetic or numeric character, but found &(38) in 'string', line 8, column 9: Join: &n&4Change in the config! ^
at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:57) [spigot.jar:git-Spigot-1642] at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:209) [spigot.jar:git-Spigot-1642] at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:157) [spigot.jar:git-Spigot-1642] at me.holigamer.smotd.main.onEnable(main.java:26) [SMOTD.jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot.jar:git-Spigot-1642] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot.jar:git-Spigot-1642] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:417) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:866) [spigot.jar:git-Spigot-1642] at org.bukkit.Bukkit.reload(Bukkit.java:301) [spigot.jar:git-Spigot-1642] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [spigot.jar:git-Spigot-1642] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) [spigot.jar:git-Spigot-1642] at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchServerCommand(CraftServer.java:753) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.DedicatedServer.aB(DedicatedServer.java:326) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:290) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1642] at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1642] Caused by: org.yaml.snakeyaml.scanner.ScannerException: while scanning an anchor; expected alphabetic or numeric character, but found &(38); in 'string', line 8, column 9: Join: &n&4Change in the config! ^ at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1446) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAnchor(ScannerImpl.java:939) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:370) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:226) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:586) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:143) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:237) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:159) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:120) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:481) [spigot.jar:git-Spigot-1642] at org.yaml.snakeyaml.Yaml.load(Yaml.java:400) [spigot.jar:git-Spigot-1642] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) [spigot.jar:git-Spigot-1642] ... 19 more