Skip to content

Commit

Permalink
added commands list
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffa50 committed Dec 30, 2019
1 parent 85958e7 commit 9a81ac1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 26 deletions.
51 changes: 27 additions & 24 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions src/main/java/aldrigos/mc/worldguard/commands/WgCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,18 @@ public WgCommand(WorldGuardPlugin p){

@Override
public boolean execute(CommandSender sender, String cmd, String[] args) {
if(args.length < 1)
return false;
if(args.length < 1){
sender.sendMessage("[WG]Commands list:\n" +
"/wg info : about this plugin\n"+
"/rg create <region> : create a new region\n" +
"/rg delete <region> : delete a region\n"+
"/rg flag : list all available flags\n"+
"/rg flag <region> <flag> <allow|deny> : add a flag to region\n"+
"/rg flags <region> : show set flags for the region\n"+
"/rg update <region> : change region cuboid with current selection"
);
return true;
}

final String sub = args[0];

Expand Down

0 comments on commit 9a81ac1

Please sign in to comment.