File tree Expand file tree Collapse file tree
type.generic/src/main/java/net/swofty/type/generic/command/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ public void registerUsage(MinestomCommand command) {
2929 new ArgumentEnum <>("server_type" , ServerType .class );
3030
3131
32- ArgumentString serverId = new ArgumentString ("server_id" )
33- .setSuggestionCallback ((sender , context , suggestion ) -> {
34- for (String s : ProxyServersCache .getSuggestions ()) {
35- suggestion .addEntry (new SuggestionEntry (s ));
36- }
37- });
32+ ArgumentString serverId = new ArgumentString ("server_id" );
33+ serverId .setSuggestionCallback ((sender , context , suggestion ) -> {
34+ for (String s : ProxyServersCache .getSuggestions ()) {
35+ suggestion .addEntry (new SuggestionEntry (s ));
36+ }
37+ });
3838
3939
4040 command .addSyntax ((sender , context ) -> {
@@ -44,6 +44,7 @@ public void registerUsage(MinestomCommand command) {
4444 player .sendTo (context .get (serverType ), true );
4545 }, serverType );
4646
47+
4748 command .addSyntax ((sender , context ) -> {
4849 if (!permissionCheck (sender )) return ;
4950
You can’t perform that action at this time.
0 commit comments