Skip to content

Commit 40fe1c7

Browse files
committed
New README.md
1 parent a38301f commit 40fe1c7

File tree

3 files changed

+38
-12
lines changed

3 files changed

+38
-12
lines changed

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,37 @@
1-
# WSForMC
2-
1+
##
2+
3+
[![Discord](https://img.shields.io/discord/967053826127454259?style=for-the-badge)](https://discord.gg/Y49sdJHJET)
4+
![Downloads - Total](https://img.shields.io/github/downloads/CodeITForFun/WSForMC/total?style=for-the-badge)
5+
![Downloads - Latest](https://img.shields.io/github/downloads/CodeITForFun/WSForMC/latest/total?style=for-the-badge)
6+
![Build](https://img.shields.io/github/actions/workflow/status/CodeITForFun/WSForMC/maven.yml?style=for-the-badge)
7+
![Contributors](https://img.shields.io/github/contributors-anon/CodeITForFun/WSForMC?style=for-the-badge)
8+
![Version](https://img.shields.io/github/v/tag/CodeITForFun/WSForMC?style=for-the-badge)
9+
<h1 align="center">Web Server For Minecraft Server</h1>
10+
<h5 align="center">
11+
<strong>
12+
Its basic WebServer for any Minecraft Server. You can host any HTML file.
13+
</strong>
14+
</h5>
15+
16+
## Licensing
17+
MIT License
18+
19+
Copyright (c) 2023 FungY911
20+
21+
Permission is hereby granted, free of charge, to any person obtaining a copy
22+
of this software and associated documentation files (the "Software"), to deal
23+
in the Software without restriction, including without limitation the rights
24+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
25+
copies of the Software, and to permit persons to whom the Software is
26+
furnished to do so, subject to the following conditions:
27+
28+
The above copyright notice and this permission notice shall be included in all
29+
copies or substantial portions of the Software.
30+
31+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
33+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
35+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
36+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37+
SOFTWARE.

src/main/java/tk/fungy/wsformc/Main.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
package tk.fungy.wsformc;
22

3-
import com.sun.org.apache.xpath.internal.operations.Bool;
43
import org.bukkit.plugin.java.JavaPlugin;
54

6-
import java.io.File;
7-
import java.io.IOException;
85
import java.net.UnknownHostException;
9-
import java.text.SimpleDateFormat;
10-
import java.util.Date;
11-
import java.util.Timer;
12-
import java.util.logging.Logger;
136

147
public final class Main extends JavaPlugin {
158

src/main/java/tk/fungy/wsformc/Updater.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ private static void checkForUpdates() {
3838
JsonObject latestRelease = releases.get(0).getAsJsonObject();
3939
latestVersion = latestRelease.get("tag_name").getAsString().replace("v", "");
4040

41-
if(currentVersion == null) {
42-
currentVersion = new FileManager().getStringFromConfig("Version");
43-
}
41+
if(currentVersion == null) { currentVersion = new FileManager().getStringFromConfig("Version"); }
4442

4543
if (!currentVersion.equals(latestVersion)) {
4644
Bukkit.getLogger().warning(Colors.translate("[WebServer] A new update is available: " + latestVersion + " Your version is: " + currentVersion));

0 commit comments

Comments
 (0)