make selection show selected blocks
This commit is contained in:
parent
605fe8deeb
commit
4dbfe3aaf0
2 changed files with 14 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue