forked from unimatrix/web
Use direct organisation and spice actions with functional commands
This commit is contained in:
parent
81dd062f3c
commit
84d562e904
1 changed files with 72 additions and 25 deletions
|
|
@ -100,7 +100,7 @@ public final class DuneGUI extends JavaPlugin implements Listener,CommandExecuto
|
|||
if(sender instanceof Player player&&command.getName().equals("drgui")&&args.length==1&&args[0].equalsIgnoreCase("lore")){organisations.lore(player);return true;}
|
||||
if(sender instanceof Player player&&command.getName().equals("drgui")&&args.length==0){organisations.console(player);return true;}
|
||||
if(sender instanceof Player player&&command.getName().equals("drgui")&&args.length==1&&args[0].equalsIgnoreCase("item")){giveCodex(player,true);return true;}
|
||||
if(sender instanceof Player member&&List.of("clan","company","polgui").contains(command.getName())){organisations.open(member,command.getName().equals("clan")?"clans":command.getName().equals("company")?"companies":"offices");return true;}
|
||||
if(sender instanceof Player member&&List.of("clan","company","politics","polgui").contains(command.getName())){organisations.command(member,command.getName().equals("clan")?"clans":command.getName().equals("company")?"companies":"offices",args);return true;}
|
||||
if(!(sender instanceof Player p))return true;
|
||||
if(command.getName().equals("house")&&args.length>0){
|
||||
String id=args[0].toLowerCase(Locale.ROOT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff