mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2025-01-01 18:27:35 +01:00
Added entity counts to #preview confirmation page
This commit is contained in:
parent
42233f1f72
commit
9bdac6db4d
@ -413,6 +413,9 @@ public class Rollback extends Queue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
entityCount1++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (rowAction == 3) { // entity kill
|
else if (rowAction == 3) { // entity kill
|
||||||
String world = Util.getWorldName(rowWorldId);
|
String world = Util.getWorldName(rowWorldId);
|
||||||
@ -1488,7 +1491,7 @@ public class Rollback extends Queue {
|
|||||||
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_ITEM, NumberFormat.getInstance().format(blockCount), (blockCount == 1 ? Selector.FIRST : Selector.SECOND)));
|
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_ITEM, NumberFormat.getInstance().format(blockCount), (blockCount == 1 ? Selector.FIRST : Selector.SECOND)));
|
||||||
modifyCount++;
|
modifyCount++;
|
||||||
}
|
}
|
||||||
else if (preview == 0) {
|
else {
|
||||||
if (itemCount > 0 || actionList.contains(4)) {
|
if (itemCount > 0 || actionList.contains(4)) {
|
||||||
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_ITEM, NumberFormat.getInstance().format(itemCount), (itemCount == 1 ? Selector.FIRST : Selector.SECOND)));
|
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_ITEM, NumberFormat.getInstance().format(itemCount), (itemCount == 1 ? Selector.FIRST : Selector.SECOND)));
|
||||||
modifyCount++;
|
modifyCount++;
|
||||||
@ -1502,7 +1505,7 @@ public class Rollback extends Queue {
|
|||||||
modifyCount++;
|
modifyCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (blockCount > 0 || !actionList.contains(4)) {
|
if (blockCount > 0 || !actionList.contains(4) || preview > 0) {
|
||||||
if (modifyCount > 0) {
|
if (modifyCount > 0) {
|
||||||
modifiedData.append(", ");
|
modifiedData.append(", ");
|
||||||
}
|
}
|
||||||
@ -1510,10 +1513,6 @@ public class Rollback extends Queue {
|
|||||||
modifyCount++;
|
modifyCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (preview > 0) {
|
|
||||||
modifiedData = modifiedData.append(Phrase.build(Phrase.AMOUNT_BLOCK, NumberFormat.getInstance().format(blockCount), (blockCount == 1 ? Selector.FIRST : Selector.SECOND)));
|
|
||||||
modifyCount++;
|
|
||||||
}
|
|
||||||
|
|
||||||
StringBuilder modifiedDataVerbose = new StringBuilder();
|
StringBuilder modifiedDataVerbose = new StringBuilder();
|
||||||
if (verbose && preview == 0 && !actionList.contains(11)) {
|
if (verbose && preview == 0 && !actionList.contains(11)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user