Skip to content

Commit

Permalink
add help (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Netherwhal authored Apr 6, 2022
1 parent 3cb1006 commit 72ca301
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'net.simplyvanilla'
version '0.1.1'
version '0.2.0'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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();
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -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"
File renamed without changes.
14 changes: 7 additions & 7 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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: /<command>'
aliases:
- kill

0 comments on commit 72ca301

Please sign in to comment.