<commit_before>package org.royaldev.royalcommands.rcommands;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.royaldev.royalcommands.RUtils;
import org.royaldev.royalcommands.RoyalCommands;

public class CmdRcmds implements CommandExecutor {

    RoyalCommands plugin;

    public CmdRcmds(RoyalCommands plugin) {
        this.plugin = plugin;
    }


    @Override
    public boolean onCommand(CommandSender cs, Command cmd, String label, String[] args) {
        if (cmd.getName().equalsIgnoreCase("rcmds")) {
            if (!plugin.isAuthorized(cs, "rcmds.rcmds")) {
                RUtils.dispNoPerms(cs);
                return true;
            }

            plugin.reloadConfig();
            plugin.reloadConfigVals();

            cs.sendMessage(ChatColor.BLUE + "RoyalCommands " + ChatColor.GRAY + "v" + plugin.version + ChatColor.BLUE + " reloaded.");
            return true;
        }<commit_msg>Fixed: Reload WM config on /rcmds<commit_after>package org.royaldev.royalcommands.rcommands;

import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.royaldev.royalcommands.RUtils;
import org.royaldev.royalcommands.RoyalCommands;

public class CmdRcmds implements CommandExecutor {

    RoyalCommands plugin;

    public CmdRcmds(RoyalCommands plugin) {
        this.plugin = plugin;
    }


    @Override
    public boolean onCommand(CommandSender cs, Command cmd, String label, String[] args) {
        if (cmd.getName().equalsIgnoreCase("rcmds")) {
            if (!plugin.isAuthorized(cs, "rcmds.rcmds")) {
                RUtils.dispNoPerms(cs);
                return true;
            }

            plugin.reloadConfig();
            plugin.reloadConfigVals();
            RoyalCommands.wm.reloadConfig();

            cs.sendMessage(ChatColor.BLUE + "RoyalCommands " + ChatColor.GRAY + "v" + plugin.version + ChatColor.BLUE + " reloaded.");
            return true;
        }
{'fraction_non_alphanumeric': 0.10478899952584163, 'fraction_numerical': 0.0, 'mean_word_length': 2.8644688644688645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4149568', 'n_tokens_mistral': 637, 'n_tokens_neox': 614, 'n_words': 118}