<commit_before>package kernitus.plugin.OldCombatMechanics;

import org.bukkit.World;
import org.bukkit.attribute.Attribute;
import org.bukkit.attribute.AttributeInstance;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.player.PlayerChangedWorldEvent;
import org.bukkit.event.player.PlayerJoinEvent;

public class OCMListener implements Listener {

	private OCMMain plugin;
	private FileConfiguration config;

	public OCMListener(OCMMain instance) {

		this.plugin = instance;
		this.config = plugin.getConfig();

	}

	@EventHandler(priority = EventPriority.HIGHEST)
	public void onPlayerLogin(PlayerJoinEvent e) {

		OCMUpdateChecker updateChecker = new OCMUpdateChecker(plugin);
		Player p = e.getPlayer();
		World world = p.getWorld();

		// Checking for updates
		if (p.hasPermission("OldCombatMechanics.notify")||p.isOp()) {
			updateChecker.sendUpdateMessages(p);
		}
<commit_msg>Deleted unnecessary use of "isOp()"<commit_after>package kernitus.plugin.OldCombatMechanics;

import org.bukkit.World;
import org.bukkit.attribute.Attribute;
import org.bukkit.attribute.AttributeInstance;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDamageByEntityEvent;
import org.bukkit.event.player.PlayerChangedWorldEvent;
import org.bukkit.event.player.PlayerJoinEvent;

public class OCMListener implements Listener {

	private OCMMain plugin;
	private FileConfiguration config;

	public OCMListener(OCMMain instance) {

		this.plugin = instance;
		this.config = plugin.getConfig();

	}

	@EventHandler(priority = EventPriority.HIGHEST)
	public void onPlayerLogin(PlayerJoinEvent e) {

		OCMUpdateChecker updateChecker = new OCMUpdateChecker(plugin);
		Player p = e.getPlayer();
		World world = p.getWorld();

		// Checking for updates
		if (p.hasPermission("OldCombatMechanics.notify")) {
			updateChecker.sendUpdateMessages(p);
		}

{'fraction_non_alphanumeric': 0.09911111111111111, 'fraction_numerical': 0.0, 'mean_word_length': 5.904907975460123, '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': '5932311', 'n_tokens_mistral': 737, 'n_tokens_neox': 686, 'n_words': 132}