Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
nullaqua committed Feb 10, 2022
1 parent 3b2689a commit 5657546
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.lanzhi</groupId>
<artifactId>BluestarGame</artifactId>
<version>2.0.2</version>
<version>2.0.3</version>
<packaging>jar</packaging>

<name>BluestarGame</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,13 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
tablist.add("all");
tablist.add("auto");
tablist.add("spongeR");
if(sender.hasPermission("bluestargame.lanzhi"))
{
tablist.add("newsponge");
}
return tablist;
}
if ((args.length == 2) && (!args[0].equals("spongeR")))
if ((args.length == 2) && !(args[0].equals("spongeR")||args[0].equals("newsponge")))
{
List<String> tablist = new ArrayList();
tablist.add("true");
Expand All @@ -326,8 +330,6 @@ public List<String> onTabComplete(CommandSender sender, Command command, String
tablist.add("超级海绵吸水范围");
return tablist;
}


List<String> tablist = new ArrayList();
return tablist;
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ commands:
aliases:
- bsgame
permission: bluestargame.use
description: 玩法控制
bluestargamelist:
aliases:
- bsgamelist
- bsglist
description: 查看当前启用的玩法
permissions:
bluestargame.*:
description: 所有权限
children:
bluestargame.use:
description: 允许使用/bluestargame,默认op
default: op
bluestargame.lanzhi:
description: 腐竹专属,用于腐竹自己调试插件,默认false
default: false
depend:
- BluestarAPI
Expand Down

0 comments on commit 5657546

Please sign in to comment.