Added command usage to near command

This commit is contained in:
D3v1s0m 2023-10-23 13:15:36 +05:30
parent ddd5db327b
commit 563d05caaf
No known key found for this signature in database
GPG Key ID: FA1F770C7B1D40C1

@ -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);