diff --git a/build.gradle b/build.gradle index 30b455a..bac1215 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ java { } group = 'me.playbosswar.com' -version = '8.5.6' +version = '8.5.7' description = 'CommandTimer' repositories { @@ -61,7 +61,7 @@ publishing { maven(MavenPublication) { groupId = 'me.playbosswar.com' artifactId = 'commandtimer' - version = '8.5.6' + version = '8.5.7' from components.java } diff --git a/docs/docs/intro.md b/docs/docs/intro.md index 560f09a..797ef39 100644 --- a/docs/docs/intro.md +++ b/docs/docs/intro.md @@ -26,3 +26,15 @@ Clicking the paper will create a fresh task for you. | `/cmt deactivate ` | Disable the specified task | `commandtimer.deactivate` or `commandtimer.toggle` | | `/cmt execute ` | Instantly execute the specified task | `commandtimer.execute` | | `/cmt reload` | Reload the plugin. Extensions will not be reloaded. **It is not recommended to use this command** | `commandtimer.manage` | + +## Configuration file + +The global configuration file allows you to change the global behaviour of CommandTimer: + +- `timeonload`: Show the current server time in the console when the plugin loads +- `debug`: Enable debug mode. This will print additional information to the console +- `showUpdateMessage`: Show a message in the chat when a plugin update is available +- `timezoneOverwrite`: Overwrite the timezone of the server (**This feature does not work right now**) +- `timezoneOverwriteValue`: The timezone to overwrite the server timezone with (**This feature does not work right now**) +- `language`: The language to use for the plugin. You can add more languages under the `languages` folder +- `disablePapiPlaceholderWarnings`: Disable the warning message that appears when a PAPI placeholder is not used correctly \ No newline at end of file diff --git a/java8-build.gradle b/java8-build.gradle index 1d67ad5..2a08b85 100644 --- a/java8-build.gradle +++ b/java8-build.gradle @@ -9,7 +9,7 @@ java { } group = 'me.playbosswar.com' -version = '8.5.6' +version = '8.5.7' description = 'CommandTimer' repositories { @@ -69,7 +69,7 @@ publishing { maven(MavenPublication) { groupId = 'me.playbosswar.com' artifactId = 'commandtimer' - version = '8.5.6' + version = '8.5.7' from components.java } diff --git a/src/main/java/me/playbosswar/com/hooks/PAPIPlaceholders.java b/src/main/java/me/playbosswar/com/hooks/PAPIPlaceholders.java index cf6abd8..f051f3b 100644 --- a/src/main/java/me/playbosswar/com/hooks/PAPIPlaceholders.java +++ b/src/main/java/me/playbosswar/com/hooks/PAPIPlaceholders.java @@ -64,6 +64,10 @@ public String onPlaceholderRequest(Player player, @NotNull String identifier) { } if(task == null) { + if(CommandTimerPlugin.getInstance().getConfig().getBoolean("disablePapiPlaceholderWarnings")) { + return fallbackMessage; + } + Messages.sendConsole("Tried to use PAPI placeholder for unknown task:" + placeholder.getTaskName()); return fallbackMessage; } diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 85a6414..d12603b 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -3,4 +3,5 @@ debug: false showUpdateMessage: true timezoneOverwrite: false timezoneOverwriteValue: 'GMT' -language: 'en' \ No newline at end of file +language: 'en' +disablePapiPlaceholderWarnings: false \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 17f3243..9f1383e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ main: me.playbosswar.com.CommandTimerPlugin name: "CommandTimer" -version: "8.5.6" +version: "8.5.7" description: "Schedule commands like you want" author: PlayBossWar api-version: 1.13