Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.fastasyncworldedit.core;

import com.fastasyncworldedit.core.util.StringMan;
import com.sk89q.worldedit.internal.util.LogManagerCompat;
import org.apache.logging.log4j.Logger;

import java.util.Locale;

Expand All @@ -9,6 +11,8 @@
**/
public class FaweVersion {

private static final Logger LOGGER = LogManagerCompat.getLogger();

public final int year;
public final int month;
public final int day;
Expand Down Expand Up @@ -48,8 +52,8 @@ public FaweVersion(String version, String commit, String date) {
public static FaweVersion tryParse(String version, String commit, String date) {
try {
return new FaweVersion(version, commit, date);
} catch (Exception exception) {
exception.printStackTrace();
} catch (Exception e) {
LOGGER.error("Failed to parse FaweVersion", e);
return new FaweVersion(0, 0, 0, null, true, 0, 0);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ public WorldEditCommands(WorldEdit we) {
public void version(Actor actor) {
//FAWE start - use own, minimized message that doesn't print "Platforms" and "Capabilities"
FaweVersion fVer = Fawe.instance().getVersion();
String fVerStr = fVer == null ? "unknown" : "-" + fVer.build;
actor.print(TextComponent.of("FastAsyncWorldEdit" + fVerStr));
actor.print(TextComponent.of(fVer == null ? "FastAsyncWorldEdit-unknown" : fVer.toString()));
actor.print(TextComponent.of("Authors: Empire92, MattBDev, IronApollo, dordsor21 and NotMyFault"));
actor.print(TextComponent.of("Wiki: https://intellectualsites.github.io/fastasyncworldedit-documentation/")
.clickEvent(ClickEvent.openUrl("https://intellectualsites.github.io/fastasyncworldedit-documentation/")));
Expand Down
Loading