// @description
// Returns the online player that best matches the input name.
// EG, in a group of 'bo', 'bob', and 'bobby'... input 'bob' returns p@bob,
// input 'bobb' returns p@bobby, and input 'b' returns p@bo.
// -->
if (attribute.startsWith("match_player") && attribute.hasContext(1)) {
Player matchPlayer = null;
String matchInput = attribute.getContext(1).toLowerCase();
for (Player player: Bukkit.getOnlinePlayers()) {
if (player.getName().toLowerCase().equals(matchInput)) {
matchPlayer = player;