mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02:00
Display message(s) of the day before loading the rest of the plugin.
This commit is contained in:
parent
7e0721da98
commit
0afa1d90f7
@ -3,7 +3,7 @@ name: NoCheat
|
||||
author: Evenprime
|
||||
|
||||
main: cc.co.evenprime.bukkit.nocheat.NoCheat
|
||||
version: 1.12a
|
||||
version: 1.12b
|
||||
|
||||
softdepend: [ Permissions, CraftIRC ]
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user