mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-29 12:37:53 +01:00
Allow rollbacks of all users
This commit is contained in:
parent
c1ef78b30f
commit
12265521c8
@ -148,8 +148,8 @@ public class HistoryCommands extends MethodCommands {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
UUID other = Fawe.imp().getUUID(user);
|
UUID other = user.equalsIgnoreCase("*") ? null : Fawe.imp().getUUID(user);
|
||||||
if (other == null) {
|
if (other == null && !user.equalsIgnoreCase("*")) {
|
||||||
BBC.PLAYER_NOT_FOUND.send(player, user);
|
BBC.PLAYER_NOT_FOUND.send(player, user);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -189,7 +189,8 @@ public class HistoryCommands extends MethodCommands {
|
|||||||
database.getPotentialEdits(other, System.currentTimeMillis() - timeDiff, bot, top, new RunnableVal<DiskStorageHistory>() {
|
database.getPotentialEdits(other, System.currentTimeMillis() - timeDiff, bot, top, new RunnableVal<DiskStorageHistory>() {
|
||||||
@Override
|
@Override
|
||||||
public void run(DiskStorageHistory edit) {
|
public void run(DiskStorageHistory edit) {
|
||||||
edit.undo(fp, allowedRegions);
|
if (restore) edit.redo(fp, allowedRegions);
|
||||||
|
else edit.undo(fp, allowedRegions);
|
||||||
BBC.ROLLBACK_ELEMENT.send(player, Fawe.imp().getWorldName(edit.getWorld()) + "/" + user + "-" + edit.getIndex());
|
BBC.ROLLBACK_ELEMENT.send(player, Fawe.imp().getWorldName(edit.getWorld()) + "/" + user + "-" + edit.getIndex());
|
||||||
count.incrementAndGet();
|
count.incrementAndGet();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user