<commit_before>package com.devotedmc.ExilePearl.command;

import com.devotedmc.ExilePearl.ExilePearl;
import com.devotedmc.ExilePearl.ExilePearlPlugin;
import com.devotedmc.ExilePearl.util.Permission;

public class CmdAdminCheckExiled extends PearlCommand {

	public CmdAdminCheckExiled(ExilePearlPlugin plugin) {
		super(plugin);
		this.aliases.add("check");

		this.setHelpShort("Checks if a player is exiled");
		
		this.requiredArgs.add("player");
		
		this.permission = Permission.ADMIN.node;
		this.visibility = CommandVisibility.SECRET;
	}

	@Override
	public void perform() {
		String name = argAsString(0);
		
		ExilePearl pearl = pearlApi.getPearl(name);
		if (pearl == null) {
			msg("<i>No pearl was found with the name <c>%s", name);
			return;
		}
		msg("<g>Found exile pearl for player %s", name);

		for (String s : pearlApi.getLoreGenerator().generateLore(pearl)) {
			if (s.contains("Commands")) {
				return;
			}
			msg(s);
		}
	}
}<commit_msg>update check command<commit_after>package com.devotedmc.ExilePearl.command;

import com.devotedmc.ExilePearl.ExilePearl;
import com.devotedmc.ExilePearl.ExilePearlPlugin;
import com.devotedmc.ExilePearl.util.Permission;

public class CmdAdminCheckExiled extends PearlCommand {

	public CmdAdminCheckExiled(ExilePearlPlugin plugin) {
		super(plugin);
		this.aliases.add("check");

		this.setHelpShort("Checks if a player is exiled");
		
		this.requiredArgs.add("player");
		
		this.permission = Permission.ADMIN.node;
		this.visibility = CommandVisibility.SECRET;
	}

	@Override
	public void perform() {
		String name = argAsString(0);
		
		ExilePearl pearl = pearlApi.getPearl(name);
		if (pearl == null) {
			msg("<i>No pearl was found with the name <c>%s", name);
			return;
		}
		if(pearl.getFreedOffline()) {
			msg("<i>%s has been freed but hasn't logged in yet.", name);
			return;
		}
		
		msg("<g>Found exile pearl for player %s", name);

		for (String s : pearlApi.getLoreGenerator().generateLore(pearl)) {
			if (s.contains("Commands")) {
				return;
			}
			msg(s);
		}
	}
}
{'fraction_non_alphanumeric': 0.12933138116154222, 'fraction_numerical': 0.0009760858955588092, 'mean_word_length': 4.338541666666667, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2371832', 'n_tokens_mistral': 825, 'n_tokens_neox': 716, 'n_words': 148}