<commit_before>package markehme.factionsplus.Cmds;

import markehme.factionsplus.Cmds.req.ReqRulesEnabled;
import markehme.factionsplus.MCore.LConf;
import markehme.factionsplus.MCore.FPUConf;
import markehme.factionsplus.util.FPPerm;

import com.massivecraft.factions.cmd.req.ReqFactionsEnabled;
import com.massivecraft.factions.cmd.req.ReqHasFaction;
import com.massivecraft.massivecore.cmd.req.ReqHasPerm;
import com.massivecraft.massivecore.cmd.req.ReqIsPlayer;
import com.massivecraft.massivecore.util.Txt;

public class CmdRemoveRule extends FPCommand {
	public CmdRemoveRule() {
		this.aliases.add("removerule");
		
		this.fpidentifier = "removerule";
		
		this.errorOnToManyArgs = false;
		
		this.addRequirements(ReqFactionsEnabled.get());
		this.addRequirements(ReqIsPlayer.get());
		this.addRequirements(ReqHasFaction.get());
		this.addRequirements(ReqRulesEnabled.get());
		
		this.addRequirements(ReqHasPerm.get(FPPerm.MODIFYRULES.node));
		
		this.setHelp(LConf.get().cmdDescRemoveRule);
		this.setDesc(LConf.get().cmdDescRemoveRule);
		
	}
	
	@Override
	public void performfp() {
		
		// Ensure they have permission to set rules
		if(!FPUConf.get(usender.getUniverse()).whoCanSetRules.get(usender.getRole())) {<commit_msg>Adding required argument.<commit_after>package markehme.factionsplus.Cmds;

import markehme.factionsplus.Cmds.req.ReqRulesEnabled;
import markehme.factionsplus.MCore.LConf;
import markehme.factionsplus.MCore.FPUConf;
import markehme.factionsplus.util.FPPerm;

import com.massivecraft.factions.cmd.req.ReqFactionsEnabled;
import com.massivecraft.factions.cmd.req.ReqHasFaction;
import com.massivecraft.massivecore.cmd.req.ReqHasPerm;
import com.massivecraft.massivecore.cmd.req.ReqIsPlayer;
import com.massivecraft.massivecore.util.Txt;

public class CmdRemoveRule extends FPCommand {
	public CmdRemoveRule() {
		this.aliases.add("removerule");
		
		this.fpidentifier = "removerule";
		
		this.errorOnToManyArgs = false;
		
		this.requiredArgs.add("rule");
		
		this.addRequirements(ReqFactionsEnabled.get());
		this.addRequirements(ReqIsPlayer.get());
		this.addRequirements(ReqHasFaction.get());
		this.addRequirements(ReqRulesEnabled.get());
		
		this.addRequirements(ReqHasPerm.get(FPPerm.MODIFYRULES.node));
		
		this.setHelp(LConf.get().cmdDescRemoveRule);
		this.setDesc(LConf.get().cmdDescRemoveRule);
		
	}
	
	@Override
	public void performfp() {
		
		if(!FPUConf.get(usender.getUniverse()).whoCanSetRules.get(usender.getRole())) {
{'fraction_non_alphanumeric': 0.12197092084006463, 'fraction_numerical': 0.0, 'mean_word_length': 5.8805555555555555, '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': '3313285', 'n_tokens_mistral': 928, 'n_tokens_neox': 858, 'n_words': 98}