Added command usage to near command
This commit is contained in:
parent
ddd5db327b
commit
563d05caaf
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ public class NearCommand implements CommandHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(CommandContext context) throws CommandExecutionException {
|
public void run(CommandContext context) throws CommandExecutionException {
|
||||||
|
context.setUsage(context.getLabel() + " near <radius>");
|
||||||
Player player = context.ensureSenderIsPlayer();
|
Player player = context.ensureSenderIsPlayer();
|
||||||
int raw = context.parse(Integer.class);
|
int raw = context.parse(Integer.class);
|
||||||
double radius = Math.pow(raw, 2);
|
double radius = Math.pow(raw, 2);
|
||||||
|
|
Loading…
Reference in a new issue