mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Allow just doing /reach to show reach distance
This commit is contained in:
parent
201fc8a927
commit
27d1656ae0
@ -25,11 +25,13 @@ namespace MCGalaxy.Commands.CPE {
|
||||
public override LevelPermission defaultRank { get { return LevelPermission.AdvBuilder; } }
|
||||
public override bool SuperUseable { get { return false; } }
|
||||
|
||||
public override void Use(Player p, string message, CommandData data) {
|
||||
if (message.Length == 0) { Help(p); return; }
|
||||
public override void Use(Player p, string message, CommandData data) {
|
||||
if (!p.Supports(CpeExt.ClickDistance)) {
|
||||
p.Message("Your client doesn't support changing your reach distance."); return;
|
||||
}
|
||||
if (message.Length == 0) {
|
||||
p.Message("Your reach distance is {0} blocks", p.ReachDistance); return;
|
||||
}
|
||||
|
||||
float dist = 0;
|
||||
if (!CommandParser.GetReal(p, message, "Distance", ref dist, 0, 1024)) return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user