Skip to content

Commit

Permalink
Added configuration option to suppress donation requests in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
zachoooo committed May 17, 2018
1 parent 0d4aade commit e23015e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
</dependency>

</dependencies>
<version>1.1</version>
</project>
<version>1.1.1</version>
</project>
16 changes: 9 additions & 7 deletions src/main/java/io/github/zachoooo/ZavMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,15 @@ public void onEnable() {
getServer().getScheduler().cancelTasks(this);
getServer().getScheduler().scheduleSyncRepeatingTask(this, new AutoPacketRunnable(this), 0L, ((long) mainConfig.getConfig().getInt("delay") * 20));
PluginPM.sendMessage(Level.INFO, "ZavMessage has loaded!");
PluginPM.sendMessage(Level.INFO, "Like this plugin? Consider donating towards development!");
PluginPM.sendMessage(Level.INFO, "PayPal: [email protected]");
PluginPM.sendMessage(Level.INFO, "Bitcoin: 16L1XuGXNbbNwfS9J3g49QnC22VhgYTn2G");
PluginPM.sendMessage(Level.INFO, "Ethereum: 0xCd57A4abf36f20a3A68C4624Fefeea8FABa91812");
PluginPM.sendMessage(Level.INFO, "Litecoin: MDBjepGGBLYhMep76bHaSLsnM6xgBW8erm");
PluginPM.sendMessage(Level.INFO, "Dash: XmoKNLiL7kUZJ4ShLkELY7guaPGxFHqG75");
PluginPM.sendMessage(Level.INFO, "ZCash: t1K2YitrCTWE3L1Vq5ByW1vtYAB333AxkQG");
if (!mainConfig.getConfig().getBoolean("suppressconsoleads")) {
PluginPM.sendMessage(Level.INFO, "Like this plugin? Consider donating towards development!");
PluginPM.sendMessage(Level.INFO, "PayPal: [email protected]");
PluginPM.sendMessage(Level.INFO, "Bitcoin: 16L1XuGXNbbNwfS9J3g49QnC22VhgYTn2G");
PluginPM.sendMessage(Level.INFO, "Ethereum: 0xCd57A4abf36f20a3A68C4624Fefeea8FABa91812");
PluginPM.sendMessage(Level.INFO, "Litecoin: MDBjepGGBLYhMep76bHaSLsnM6xgBW8erm");
PluginPM.sendMessage(Level.INFO, "Dash: XmoKNLiL7kUZJ4ShLkELY7guaPGxFHqG75");
PluginPM.sendMessage(Level.INFO, "ZCash: t1K2YitrCTWE3L1Vq5ByW1vtYAB333AxkQG");
}
PluginPM.sendMessage(Level.INFO, "================================================");
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ requireplayersonline: true

dontrepeatrandommessages: true

suppressconsoleads: false # Remove ads linking to developers donation info

messages:
default:
- '&6Example Message'
- 'Thanks for choosing this plugin :D!'
- 'Test Message'
- '&4Made by zachooo and javoris767!'
- '&4Made by zachooo and javoris767!'

0 comments on commit e23015e

Please sign in to comment.