make selection show selected blocks
This commit is contained in:
parent
605fe8deeb
commit
4dbfe3aaf0
2 changed files with 14 additions and 1 deletions
|
@ -77,7 +77,7 @@ public class Timer extends Feature {
|
|||
}
|
||||
float t = (adjust ? tps : 20) * m;
|
||||
setGameTimer(t);
|
||||
text = "Timer" + (enabled ? " §7[TPS: " + (Math.round(t * 100f) / 100f) + "]" : "");
|
||||
text = "Timer" + (enabled ? "§7 [TPS: " + (Math.round(t * 100f) / 100f) + "]" : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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