Skip to content

Commit

Permalink
Refractoring
Browse files Browse the repository at this point in the history
  • Loading branch information
abc123me committed Dec 4, 2022
1 parent a27b132 commit c603536
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
15 changes: 4 additions & 11 deletions src/main/java/com/jeremiahbl/bfcmod/BetterForgeChat.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package com.jeremiahbl.bfcmod;

import com.jeremiahbl.bfcmod.config.ConfigHandler;
import com.jeremiahbl.bfcmod.config.PermissionsHandler;
import com.jeremiahbl.bfcmod.events.ChatEventHandler;
import com.jeremiahbl.bfcmod.events.CommandRegistrationHandler;
import com.jeremiahbl.bfcmod.events.ExternalModLoadingEvent;
import com.jeremiahbl.bfcmod.events.PlayerEventHandler;
import com.jeremiahbl.bfcmod.utils.IMetadataProvider;
import com.jeremiahbl.bfcmod.utils.INicknameProvider;
import com.jeremiahbl.bfcmod.config.*;
import com.jeremiahbl.bfcmod.events.*;
import com.jeremiahbl.bfcmod.utils.*;
import com.mojang.logging.LogUtils;

import net.minecraftforge.common.MinecraftForge;
Expand All @@ -18,8 +13,6 @@
import net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.network.NetworkConstants;
import net.minecraftforge.server.permission.PermissionAPI;
import net.minecraftforge.server.permission.nodes.PermissionNode;

import org.slf4j.Logger;

Expand All @@ -35,9 +28,9 @@ public class BetterForgeChat {

private ChatEventHandler chatHandler = new ChatEventHandler();
private ExternalModLoadingEvent modLoadingEvent = new ExternalModLoadingEvent();
private CommandRegistrationHandler commandRegistrator = new CommandRegistrationHandler();
private PlayerEventHandler playerEventHandler = new PlayerEventHandler();
private PermissionsHandler permissionsHandler = new PermissionsHandler();
private CommandRegistrationHandler commandRegistrator = new CommandRegistrationHandler();

public BetterForgeChat() {
instance = this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.jeremiahbl.bfcmod.BetterForgeChat;
import com.jeremiahbl.bfcmod.config.ConfigHandler;
import com.jeremiahbl.bfcmod.utils.FTBNicknameProvider;
import com.jeremiahbl.bfcmod.utils.LuckPermsProvider;
import com.jeremiahbl.bfcmod.utils.moddeps.FTBNicknameProvider;
import com.jeremiahbl.bfcmod.utils.moddeps.LuckPermsProvider;

import net.minecraftforge.event.server.ServerStartedEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.jeremiahbl.bfcmod.utils;
package com.jeremiahbl.bfcmod.utils.moddeps;

import com.jeremiahbl.bfcmod.utils.INicknameProvider;

import dev.ftb.mods.ftbessentials.FTBEssentials;
import dev.ftb.mods.ftbessentials.util.FTBEPlayerData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.jeremiahbl.bfcmod.utils;
package com.jeremiahbl.bfcmod.utils.moddeps;

import org.checkerframework.checker.nullness.qual.NonNull;

import com.jeremiahbl.bfcmod.utils.IMetadataProvider;

import net.luckperms.api.LuckPerms;
import net.luckperms.api.cacheddata.CachedMetaData;
import net.luckperms.api.model.user.User;
Expand Down

0 comments on commit c603536

Please sign in to comment.