Skip to content

Commit

Permalink
Renamed /help to /helpassault
Browse files Browse the repository at this point in the history
Took 5 minutes
  • Loading branch information
TheNathanSpace committed Sep 3, 2021
1 parent 6e487bf commit 1d0c566
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/thekingelessar/assault/Assault.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void onEnable()
maps.put(mapName, mapObject);
}

this.getCommand("help").setExecutor(new CommandHelp());
this.getCommand("assaulthelp").setExecutor(new CommandAssaultHelp());
this.getCommand("all").setExecutor(new CommandAll());
this.getCommand("respawn").setExecutor(new CommandRespawn());
this.getCommand("forfeit").setExecutor(new CommandForfeit());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static org.bukkit.ChatColor.GRAY;
import static org.bukkit.ChatColor.RESET;

public class CommandHelp implements CommandExecutor
public class CommandAssaultHelp implements CommandExecutor
{
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
Expand All @@ -31,7 +31,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
List<String> helpResponse = new ArrayList<>();
helpResponse.add("-------------");
helpResponse.add(Assault.ASSAULT_PREFIX + "Help");
helpResponse.add(GRAY + "/help" + RESET + ": Explanation of commands.");
helpResponse.add(GRAY + "/assaulthelp" + RESET + ": Explanation of commands.");
helpResponse.add(GRAY + "/all <message>" + RESET + ": Shows a chat message to all players in the game.");
helpResponse.add(GRAY + "/respawn" + RESET + ": Kills you (in case you get stuck somewhere).");
helpResponse.add(GRAY + "/forfeit" + RESET + ": Toggles your vote to forfeit.");
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ author: TheKingElessar
softdepend: [ HolographicDisplays ]
depend: [ Citizens ]
commands:
help:
aliases: [ h, Help ]
assaulthelp:
aliases: [ ]
description: Explanation of commands.
usage: |
/help
/assaulthelp
all:
aliases: [ a, All ]
description: Shows a chat message to all players in the game.
Expand Down

0 comments on commit 1d0c566

Please sign in to comment.