diff --git a/README.md b/README.md index ce7f66e..f38f434 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,25 @@ -# ExamplePluginTemplate -An example plugin template for beginners! +# SlashWelcome +A simple way to welcome new players ----------------------------------------------------- -Trying to create your first plugin? Use this template to get started easily! +Make poeple feel welcomed with one command! -- Comments to guide you -- Made some example classes -- Added some useful utils +- Multiple welcome messages +- Randomization +- Delay (Humanization) ----------------------------------------------------- ## How to use -Download this template -\> Load it into your IDE or development environment. [Check out IntelliJ](https://www.jetbrains.com/idea/download/?fromIDE=#section=windows) -\> Get Creative! +Download the latest realease or build it in gradle -- To build your jar file simply go into the terminal and run `./gradlew build` +- To build your jar file simply go into the terminal and run `gradlew build` - Your finished jar should appear in `build/libs`! ------------------------------------------------------ - -Have a nice day, happy coding! +Install the plugin by dropping it in your plugins +- if you have [PlugManX](https://www.spigotmc.org/resources/plugmanx.88135/) +- - Do `/plugman load SlashWelcome` +- - Then `/plugman reload SlashWelcome` +- Otherwise do `/reload confirm` or restart the server +----------------------------------------------------- \ No newline at end of file diff --git a/src/main/java/io/github/itzispyder/exampleplugin/commands/CommandExample.java b/src/main/java/io/github/itzispyder/exampleplugin/commands/CommandExample.java index bb922e5..d86915f 100644 --- a/src/main/java/io/github/itzispyder/exampleplugin/commands/CommandExample.java +++ b/src/main/java/io/github/itzispyder/exampleplugin/commands/CommandExample.java @@ -35,7 +35,6 @@ public class CommandExample implements CommandExecutor { int random = Config.choice(0,options.size()); List messages = Config.config.getStringList("config.plugin.messages." + options.get(random)); Integer delay = Config.Plugin.delay; - P.chat(options.toString() + " " + random); new BukkitRunnable() { int i = 0; @Override diff --git a/src/main/java/io/github/itzispyder/exampleplugin/exceptions/CmdExHandler.java b/src/main/java/io/github/itzispyder/exampleplugin/exceptions/CmdExHandler.java index 520db70..211bbd6 100644 --- a/src/main/java/io/github/itzispyder/exampleplugin/exceptions/CmdExHandler.java +++ b/src/main/java/io/github/itzispyder/exampleplugin/exceptions/CmdExHandler.java @@ -33,7 +33,7 @@ public class CmdExHandler { if (exception instanceof NullPointerException) msg += "Command contains a null value!"; else if (exception instanceof IndexOutOfBoundsException) msg += "Unknown or incomplete command!"; else msg += exception.getMessage(); - return msg + "\nc§cCorrect usage: §7" + command.getUsage(); + return msg + "\n§cCorrect usage: §7" + command.getUsage(); } public Exception getException() { diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 9874b51..5ca63b8 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -14,3 +14,6 @@ config: B: - "Have fun, %player%!" - "Feel free to do /daily for a key and /kit for gear!" + C: + - "Good luck, %player%!" + - "Make sure to pick up your /daily key and your kit!" \ No newline at end of file