Files
CustomNPC-Plus/src/main/java/noppes/npcs/controllers/SyncController.java
T

25 lines
814 B
Java
Raw Normal View History

package noppes.npcs.controllers;
import io.netty.buffer.ByteBuf;
2025-01-29 13:20:04 -05:00
import kamkeel.npcs.addon.DBCAddon;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
2024-03-28 18:16:17 -04:00
import noppes.npcs.NoppesUtilServer;
import noppes.npcs.Server;
2025-01-24 00:29:11 -05:00
import noppes.npcs.config.ConfigMain;
import noppes.npcs.constants.EnumPacketClient;
public class SyncController {
2025-01-24 00:29:11 -05:00
public static void syncConfigs(EntityPlayerMP player){
NBTTagCompound nbtTagCompound = new NBTTagCompound();
nbtTagCompound.setBoolean("Profiles", true);
Server.sendData(player, EnumPacketClient.SYNC_CONFIG, nbtTagCompound);
}
public static void receiveConfigs(NBTTagCompound compound){
ConfigMain.EnableProfiles = compound.getBoolean("Profiles");
}
}