<commit_before>package com.ForgeEssentials.afterlife;

import java.io.File;

import com.ForgeEssentials.api.ForgeEssentialsRegistrar.PermRegister;
import com.ForgeEssentials.api.modules.FEModule;
import com.ForgeEssentials.api.modules.event.FEModuleInitEvent;
import com.ForgeEssentials.api.modules.event.FEModuleServerInitEvent;
import com.ForgeEssentials.api.modules.event.FEModuleServerPostInitEvent;
import com.ForgeEssentials.api.modules.event.FEModuleServerStopEvent;
import com.ForgeEssentials.api.permissions.IPermRegisterEvent;
import com.ForgeEssentials.api.permissions.RegGroup;
import com.ForgeEssentials.core.ForgeEssentials;

import cpw.mods.fml.common.registry.GameRegistry;

/**
 * This module handles Deathchest and respawn debuffs.
 * @author Dries007
 * 
 */

@FEModule(name = "Afterlife", parentMod = ForgeEssentials.class, configClass = ConfigAfterlife.class)
public class ModuleAfterlife
{
	public static final String		BASEPERM	= "ForgeEssentials.Afterlife";
	@FEModule.Config
	public static ConfigAfterlife	conf;
	@FEModule.Instance
	public static ModuleAfterlife	instance;
	@FEModule.ModuleDir
	public static File				moduleDir;
	public Deathchest				deathchest;
	public RespawnDebuff			respawnDebuff;

	@FEModule.Init
	public void load(FEModuleInitEvent e)
	{
		deathchest = new Deathchest();
		respawnDebuff = new RespawnDebuff();
	}

	@FEModule.ServerInit
	public void serverStarting(FEModuleServerInitEvent e)
	{
		deathchest.load();
		GameRegistry.registerPlayerTracker(respawnDebuff);
	}

	@FEModule.ServerPostInit
	public void serverStarted(FEModuleServerPostInitEvent e)
	{
		conf.loadDM();
	}

	@FEModule.ServerStop
	public void serverStopping(FEModuleServerStopEvent e)
	{
		deathchest.save();
	}

	@PermRegister
	public void registerPermissions(IPermRegisterEvent event)
	{
		event.registerPermissionLevel(BASEPERM, RegGroup.OWNERS);

		event.registerPermissionLevel(RespawnDebuff.BYPASSPOTION, RegGroup.OWNERS);
		event.registerPermissionLevel(RespawnDebuff.BYPASSSTATS, RegGroup.OWNERS);

		event.registerPermissionLevel(Deathchest.PERMISSION_MAKE, RegGroup.MEMBERS);
		event.registerPermissionLevel(Deathchest.PERMISSION_MAKE, RegGroup.OWNERS);
	}
}<commit_msg>missed an AfterLife perm registration<commit_after>package com.ForgeEssentials.afterlife;

import java.io.File;

import com.ForgeEssentials.api.ForgeEssentialsRegistrar.PermRegister;
import com.ForgeEssentials.api.modules.FEModule;
import com.ForgeEssentials.api.modules.event.FEModuleInitEvent;
import com.ForgeEssentials.api.modules.event.FEModuleServerInitEvent;
import com.ForgeEssentials.api.modules.event.FEModuleServerPostInitEvent;
import com.ForgeEssentials.api.modules.event.FEModuleServerStopEvent;
import com.ForgeEssentials.api.permissions.IPermRegisterEvent;
import com.ForgeEssentials.api.permissions.RegGroup;
import com.ForgeEssentials.core.ForgeEssentials;

import cpw.mods.fml.common.registry.GameRegistry;

/**
 * This module handles Deathchest and respawn debuffs.
 * @author Dries007
 * 
 */

@FEModule(name = "Afterlife", parentMod = ForgeEssentials.class, configClass = ConfigAfterlife.class)
public class ModuleAfterlife
{
	public static final String		BASEPERM	= "ForgeEssentials.Afterlife";
	@FEModule.Config
	public static ConfigAfterlife	conf;
	@FEModule.Instance
	public static ModuleAfterlife	instance;
	@FEModule.ModuleDir
	public static File				moduleDir;
	public Deathchest				deathchest;
	public RespawnDebuff			respawnDebuff;

	@FEModule.Init
	public void load(FEModuleInitEvent e)
	{
		deathchest = new Deathchest();
		respawnDebuff = new RespawnDebuff();
	}

	@FEModule.ServerInit
	public void serverStarting(FEModuleServerInitEvent e)
	{
		deathchest.load();
		GameRegistry.registerPlayerTracker(respawnDebuff);
	}

	@FEModule.ServerPostInit
	public void serverStarted(FEModuleServerPostInitEvent e)
	{
		conf.loadDM();
	}

	@FEModule.ServerStop
	public void serverStopping(FEModuleServerStopEvent e)
	{
		deathchest.save();
	}

	@PermRegister
	public void registerPermissions(IPermRegisterEvent event)
	{
		event.registerPermissionLevel(BASEPERM, RegGroup.OWNERS);

		event.registerPermissionLevel(RespawnDebuff.BYPASSPOTION, RegGroup.OWNERS);
		event.registerPermissionLevel(RespawnDebuff.BYPASSSTATS, RegGroup.OWNERS);

		event.registerPermissionLevel(Deathchest.PERMISSION_BYPASS, null);
		event.registerPermissionLevel(Deathchest.PERMISSION_MAKE, RegGroup.MEMBERS);
		event.registerPermissionLevel(Deathchest.PERMISSION_MAKE, RegGroup.OWNERS);
	}
}
{'fraction_non_alphanumeric': 0.08598797059478726, 'fraction_numerical': 0.0013366005791935842, 'mean_word_length': 6.546218487394958, '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': '5832399', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1516, 'n_words': 234}