SteamWar/BungeeCore
Archiviert
13
2

Update BauCommand #428

Zusammengeführt
Lixfel hat 9 Commits von BauCommand nach master 2022-09-20 13:17:53 +02:00 zusammengeführt
Nur Änderungen aus Commit 3aa3776c59 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -150,9 +150,9 @@ public class BauCommand extends SWCommand {
@Register("teleport")
public void teleport(ProxiedPlayer p, @Validator("teleportTarget") SteamwarUser worldOwner, @Mapper("version") @OptionalValue("") int version) {
versionSelector(version,
() -> new ServerStarter().build19(worldOwner.getUuid()).send(p).start(),
() -> new ServerStarter().build15(worldOwner.getUuid()).send(p).start(),
() -> new ServerStarter().build12(worldOwner.getUuid()).send(p).start(),
() -> new ServerStarter().build15(worldOwner.getUuid()).send(p).start(),
() -> new ServerStarter().build19(worldOwner.getUuid()).send(p).start(),
() -> HelpCommand.sendBauHelp(ChatSender.of(p))
);
}
@ -251,9 +251,9 @@ public class BauCommand extends SWCommand {
public void delete(ProxiedPlayer p, @Mapper("version") @OptionalValue("") int version) {
SteamwarUser user = SteamwarUser.get(p.getUniqueId());
versionSelector(version,
() -> deleteConfirmation(p, () -> deleteWorld(p, ServerStarter.WORLDS19_PATH + user.getId())),
() -> deleteConfirmation(p, () -> deleteWorld(p, ServerStarter.WORLDS15_PATH + user.getId())),
() -> deleteConfirmation(p, () -> deleteWorld(p, ServerStarter.WORLDS12_PATH + p.getUniqueId().toString())),
() -> deleteConfirmation(p, () -> deleteWorld(p, ServerStarter.WORLDS15_PATH + user.getId())),
() -> deleteConfirmation(p, () -> deleteWorld(p, ServerStarter.WORLDS19_PATH + user.getId())),
() -> HelpCommand.sendBauHelp(ChatSender.of(p))
);
}