Skip to content

Commit

Permalink
msg command
Browse files Browse the repository at this point in the history
  • Loading branch information
rownox committed Dec 15, 2023
1 parent bad076d commit 817f7da
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
import org.bukkit.entity.Player;
import world.ntdi.nrcore.NRCore;
import world.ntdi.nrcore.utils.ChatUtils;
import world.ntdi.nrcore.utils.command.simple.Completer;
import world.ntdi.nrcore.utils.command.simple.Label;
import world.ntdi.nrcore.utils.command.simple.NRCommand;

import java.util.List;
import java.util.UUID;
import java.util.WeakHashMap;

Expand Down Expand Up @@ -56,4 +58,12 @@ public static void log(Player sender, Player receiver, String[] args, int start)
sender.sendMessage(formatTo);
receiver.sendMessage(formatFrom);
}

@Override
public List<String> complete(CommandSender sender, String[] args) {
if (args.length == 1) {
return Completer.onlinePlayers();
}
return List.of();
}
}

0 comments on commit 817f7da

Please sign in to comment.