Added license headers

This commit is contained in:
LOOHP
2022-02-17 13:26:44 +00:00
parent 67f24599f2
commit 99b2a81546
140 changed files with 2665 additions and 5 deletions
+20 -1
View File
@@ -1,3 +1,22 @@
/*
* This file is part of Limbo.
*
* Copyright (C) 2022. LoohpJames <jamesloohp@gmail.com>
* Copyright (C) 2022. Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.loohp.limbo;
import java.awt.GraphicsEnvironment;
@@ -496,7 +515,7 @@ public class Limbo {
}
public String buildLegacyPingResponse(String version, Component motd, int maxPlayers, int playersOnline) {
String begin = "§1";
String begin = "�1";
return String.join("\00", begin, "127", version, String.join("", Arrays.asList(motd).stream().map(each -> LegacyComponentSerializer.legacySection().serialize(each)).collect(Collectors.toList())), String.valueOf(playersOnline), String.valueOf(maxPlayers));
}