Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.TechDweebGaming.MystTech;
- import java.util.UUID;
- import com.TechDweebGaming.MystTech.utility.LogHelper;
- import net.minecraft.server.MinecraftServer;
- import net.minecraft.server.management.ServerConfigurationManager;
- import net.minecraft.util.ChatComponentText;
- import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
- import net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedInEvent;
- public class MystTechEventHandler {
- //User UUID's
- public String TechDweebGaming = "4ca02fdc-d046-4e8d-ba69-fe1c1e17b8e0";
- @SubscribeEvent
- public void PlayerLoggedInEvent(PlayerLoggedInEvent event) {
- LogHelper.info("Player Logging In Detected! Scanning ID For Special User Things!");
- UUID playerUUID = event.player.getGameProfile().getId();
- //TechDweebGaming
- if (playerUUID.toString() == TechDweebGaming) {
- LogHelper.info("ID Found! User: TechDweebGaming, Role: Mod Developer");
- MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText("Oh look... The kid who sat on his butt all day and made MystTech... What a looser..."));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement