diff --git a/build.gradle b/build.gradle index c2b9576..ecc543e 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group 'net.simplyvanilla' -version '0.1.1' +version '0.2.0' java { toolchain.languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/src/main/java/net/simplyvanilla/nopluginscommand/NoPluginsCommand.java b/src/main/java/net/simplyvanilla/nopluginscommand/NoPluginsCommand.java index 5174898..16199f5 100644 --- a/src/main/java/net/simplyvanilla/nopluginscommand/NoPluginsCommand.java +++ b/src/main/java/net/simplyvanilla/nopluginscommand/NoPluginsCommand.java @@ -17,7 +17,6 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.HashSet; -import java.util.Locale; import java.util.Set; public final class NoPluginsCommand extends JavaPlugin implements Listener { @@ -33,7 +32,7 @@ public void onEnable() { } Path configPath = dataFolder.toPath().resolve("config.yml"); - Path customTextPath = dataFolder.toPath().resolve("custom_text.yml"); + Path customTextPath = dataFolder.toPath().resolve("customtext.yml"); if (!Files.exists(configPath)) { try { @@ -46,7 +45,7 @@ public void onEnable() { if (!Files.exists(customTextPath)) { try { - Files.copy(getClassLoader().getResourceAsStream("custom_text.yml"), customTextPath); + Files.copy(getClassLoader().getResourceAsStream("customtext.yml"), customTextPath); } catch (IOException e) { getLogger().severe("Could not copy custom text example"); e.printStackTrace(); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 504d023..3447258 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,5 +1,6 @@ whitelist: - - info - - shop + - msg + - help + # %name% is the name of the player who committed suicide -suicide-broadcst: "&7The player &e%name% &4commited suicide" +suicide-broadcast: "&7The player &e%name% &4committed suicide" diff --git a/src/main/resources/custom_text.yml b/src/main/resources/customtext.yml similarity index 100% rename from src/main/resources/custom_text.yml rename to src/main/resources/customtext.yml diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index a010f99..266713c 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,17 +1,17 @@ -name: NoPluginsCommand main: net.simplyvanilla.nopluginscommand.NoPluginsCommand - +name: NoPluginsCommand +description: Obfuscate commands for Anarchy servers. version: @version@ -author: SimplyVanilla -description: Hard-disable commands for Anarchy Servers. -website: https://github.com/SimplyVanilla/NoPluginsCommand - api-version: 1.18 +author: Simply Vanilla +website: https://github.com/SimplyVanilla/NoPluginsCommand + commands: customtext: description: Allow for admin defined messages suicide: - description: Suicide a player + description: Take the easy way out. + usage: 'Usage: /' aliases: - kill