File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
plugin/common/src/main/java/org/screamingsandals/bedwars/commands Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ protected void construct(Command.Builder<CommandSender> commandSenderWrapperBuil
113113 "edition" , "free"
114114 ),
115115 "server" , Map .of (
116+ "impl" , Server .getServerSoftwareName (),
116117 "version" , Server .getServerSoftwareVersion (),
117118 "javaVersion" , System .getProperty ("java.version" ),
118119 "os" , System .getProperty ("os.name" )
@@ -322,7 +323,7 @@ protected void construct(Command.Builder<CommandSender> commandSenderWrapperBuil
322323 .POST (HttpRequest .BodyPublishers .ofString (textBuilder .toString ())).build (), HttpResponse .BodyHandlers .ofString ())
323324 .thenAccept (stringHttpResponse -> {
324325 if (stringHttpResponse .statusCode () >= 200 && stringHttpResponse .statusCode () <= 299 ) {
325- var location = stringHttpResponse .headers ().firstValue ("Location" );
326+ var location = stringHttpResponse .headers ().firstValue ("Location" ). orElseThrow () ;
326327 org .screamingsandals .lib .lang .Message .of (LangKeys .DUMP_SUCCESS )
327328 .defaultPrefix ()
328329 .placeholder ("dump" , Component
You can’t perform that action at this time.
0 commit comments