make selection show selected blocks

This commit is contained in:
Daniella / Tove 2024-05-31 20:44:12 +02:00
parent 605fe8deeb
commit 4dbfe3aaf0
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 14 additions and 1 deletions

View file

@ -33,6 +33,19 @@ public class Select extends Feature {
selection = event.getMySelection();
}
@Override
public void onTick() {
if(selection != null)
text = this + "§7 [" + selection.area() + "B]";
else
text = this + "§7 [0B]";
}
@Override
public void onDisable() {
text = this.toString();
}
@Override
public String toString() {
return "Select";