<commit_before>package com.forgeessentials.protection.effect;

import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.server.MinecraftServer;

public class CommandEffect extends ZoneEffect
{

    protected String command;

    public CommandEffect(EntityPlayerMP player, int interval, String command)
    {
        super(player, interval, false);
        command = command.replaceAll("%p", player.getCommandSenderName());
        command = command.replaceAll("%u", player.getPersistentID().toString());
        command = command.replaceAll("%x", Integer.toString((int) Math.floor(player.posX)));
        command = command.replaceAll("%y", Integer.toString((int) Math.floor(player.posY)));
        command = command.replaceAll("%z", Integer.toString((int) Math.floor(player.posZ)));
        this.command = command;
    }

    @Override
    public void execute()
    {
        MinecraftServer.getServer().getCommandManager().executeCommand(MinecraftServer.getServer(), command);
    }

}<commit_msg>Patched zone command permission to use scripting parser<commit_after>package com.forgeessentials.protection.effect;

import net.minecraft.entity.player.EntityPlayerMP;

import com.forgeessentials.scripting.ScriptParser;

public class CommandEffect extends ZoneEffect
{

    protected String command;

    public CommandEffect(EntityPlayerMP player, int interval, String command)
    {
        super(player, interval, false);
        this.command = command;
    }

    @Override
    public void execute()
    {
        ScriptParser.run(command, player, null);
    }

}
{'fraction_non_alphanumeric': 0.11195445920303605, 'fraction_numerical': 0.0, 'mean_word_length': 3.9905362776025237, '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': '3229413', 'n_tokens_mistral': 426, 'n_tokens_neox': 417, 'n_words': 90}