Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 19:02:36 +01:00
Fix build number in version
Dieser Commit ist enthalten in:
Ursprung
686c71d965
Commit
c64b59da2f
@ -13,7 +13,7 @@ public class FaweVersion {
|
|||||||
|
|
||||||
public FaweVersion(String version, String commit, String date) {
|
public FaweVersion(String version, String commit, String date) {
|
||||||
String[] split = version.substring(version.indexOf('=') + 1).split("\\.");
|
String[] split = version.substring(version.indexOf('=') + 1).split("\\.");
|
||||||
this.build = Integer.parseInt(split[1]);
|
this.build = Integer.parseInt(split[2]);
|
||||||
this.hash = Integer.parseInt(commit.substring(commit.indexOf('=') + 1), 16);
|
this.hash = Integer.parseInt(commit.substring(commit.indexOf('=') + 1), 16);
|
||||||
String[] split1 = date.substring(date.indexOf('=') + 1).split("\\.");
|
String[] split1 = date.substring(date.indexOf('=') + 1).split("\\.");
|
||||||
this.year = Integer.parseInt(split1[0]);
|
this.year = Integer.parseInt(split1[0]);
|
||||||
|
@ -64,7 +64,7 @@ public class WorldEditCommands {
|
|||||||
public void version(Actor actor) throws WorldEditException {
|
public void version(Actor actor) throws WorldEditException {
|
||||||
FaweVersion fVer = Fawe.get().getVersion();
|
FaweVersion fVer = Fawe.get().getVersion();
|
||||||
String fVerStr = fVer == null ? "unknown" : fVer.year + "." + fVer.month + "." + fVer.day + "-" + Integer.toHexString(fVer.hash) + "-" + fVer.build;
|
String fVerStr = fVer == null ? "unknown" : fVer.year + "." + fVer.month + "." + fVer.day + "-" + Integer.toHexString(fVer.hash) + "-" + fVer.build;
|
||||||
actor.print(BBC.getPrefix() + "FAWE " + fVerStr + " by Empire92");
|
actor.print(BBC.getPrefix() + "FastAsyncWorldEdit 1.13-" + fVerStr + " by Empire92");
|
||||||
if (fVer != null) {
|
if (fVer != null) {
|
||||||
actor.printDebug("------------------------------------");
|
actor.printDebug("------------------------------------");
|
||||||
FaweVersion version = Fawe.get().getVersion();
|
FaweVersion version = Fawe.get().getVersion();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren