Display message(s) of the day before loading the rest of the plugin.

This commit is contained in:
Evenprime 2011-08-09 18:39:27 +02:00
parent 7e0721da98
commit 0afa1d90f7
2 changed files with 7 additions and 5 deletions

View File

@ -3,7 +3,7 @@ name: NoCheat
author: Evenprime
main: cc.co.evenprime.bukkit.nocheat.NoCheat
version: 1.12a
version: 1.12b
softdepend: [ Permissions, CraftIRC ]

View File

@ -140,6 +140,12 @@ public class NoCheat extends JavaPlugin {
sender = new CustomCommandSender(getServer());
// parse the nocheat.yml config file
setupConfig();
for(String s : getMessagesOfTheDay()) {
if(showStartupMessages)
Logger.getLogger("Minecraft").info("(NoCheat) Did you know? " + s);
}
movingCheck = new MovingCheck(this, config);
speedhackCheck = new SpeedhackCheck(this, config);
@ -154,10 +160,6 @@ public class NoCheat extends JavaPlugin {
Logger.getLogger("Minecraft").warning("[NoCheat] you have set \"allow-flight=false\" in your server.properties file. That builtin anti-flying-mechanism will likely conflict with this plugin. Please consider deactivating it by setting it to \"true\"");
}
for(String s : getMessagesOfTheDay()) {
if(showStartupMessages)
Logger.getLogger("Minecraft").info("(NoCheat) Did you know? " + s);
}
PluginDescriptionFile pdfFile = this.getDescription();