Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
style: Use minimized version
output
Dieser Commit ist enthalten in:
Ursprung
2a1bef28d0
Commit
0b45248b8c
@ -80,52 +80,17 @@ public class WorldEditCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions(queued = false)
|
@CommandPermissions(queued = false)
|
||||||
public void version(Actor actor) {
|
public void version(Actor actor) {
|
||||||
//FAWE start - get own version format
|
//FAWE start - use own, minimized message that doesn't print "Platforms" and "Capabilities"
|
||||||
FaweVersion fVer = Fawe.get().getVersion();
|
FaweVersion fVer = Fawe.get().getVersion();
|
||||||
String fVerStr = fVer == null ? "unknown" : "-" + fVer.build;
|
String fVerStr = fVer == null ? "unknown" : "-" + fVer.build;
|
||||||
actor.print(TextComponent.of("FastAsyncWorldEdit" + fVerStr + " created by Empire92, MattBDev, IronApollo, dordsor21 and NotMyFault"));
|
actor.print(TextComponent.of("FastAsyncWorldEdit" + fVerStr));
|
||||||
|
actor.print(TextComponent.of("Authors: Empire92, MattBDev, IronApollo, dordsor21 and NotMyFault"));
|
||||||
if (fVer != null) {
|
actor.print(TextComponent.of("Wiki: https://git.io/JMEPa")
|
||||||
FaweVersion version = Fawe.get().getVersion();
|
.clickEvent(ClickEvent.openUrl("https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki")));
|
||||||
Date date = new GregorianCalendar(2000 + version.year, version.month - 1, version.day)
|
actor.print(TextComponent.of("Discord: https://discord.gg/intellectualsites")
|
||||||
.getTime();
|
.clickEvent(ClickEvent.openUrl("https://discord.gg/intellectualsites")));
|
||||||
|
|
||||||
TextComponent dateArg = TextComponent.of(date.toLocaleString());
|
|
||||||
TextComponent commitArg = TextComponent.of(Integer.toHexString(version.hash));
|
|
||||||
TextComponent buildArg = TextComponent.of(version.build);
|
|
||||||
TextComponent platformArg = TextComponent.of(Settings.IMP.PLATFORM);
|
|
||||||
|
|
||||||
actor.print(Caption.of("worldedit.version.version", dateArg, commitArg, buildArg, platformArg));
|
|
||||||
}
|
|
||||||
|
|
||||||
actor.printInfo(TextComponent.of("Wiki: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/wiki"));
|
|
||||||
UpdateNotification.doUpdateNotification(actor);
|
UpdateNotification.doUpdateNotification(actor);
|
||||||
//FAWE end
|
//FAWE end
|
||||||
|
|
||||||
PlatformManager pm = we.getPlatformManager();
|
|
||||||
|
|
||||||
TextComponentProducer producer = new TextComponentProducer();
|
|
||||||
for (Platform platform : pm.getPlatforms()) {
|
|
||||||
producer.append(
|
|
||||||
TextComponent.of("* ", TextColor.GRAY)
|
|
||||||
.append(TextComponent.of(platform.getPlatformName())
|
|
||||||
.hoverEvent(HoverEvent.showText(TextComponent.of(platform.getId()))))
|
|
||||||
.append(TextComponent.of("(" + platform.getPlatformVersion() + ")"))
|
|
||||||
).newline();
|
|
||||||
}
|
|
||||||
actor.print(new MessageBox("Platforms", producer, TextColor.GRAY).create());
|
|
||||||
|
|
||||||
producer.reset();
|
|
||||||
for (Capability capability : Capability.values()) {
|
|
||||||
Platform platform = pm.queryCapability(capability);
|
|
||||||
producer.append(
|
|
||||||
TextComponent.of(capability.name(), TextColor.GRAY)
|
|
||||||
.append(TextComponent.of(": ")
|
|
||||||
.append(TextComponent.of(platform != null ? platform.getPlatformName() : "none")))
|
|
||||||
).newline();
|
|
||||||
}
|
|
||||||
actor.print(new MessageBox("Capabilities", producer, TextColor.GRAY).create());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(
|
@Command(
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren