Jump to content
  • Home
  • Files
  • Docs
  • Merch
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • mlgmxyysd

mlgmxyysd

Members
 View Profile  See their activity
  • Content Count

    16
  • Joined

    December 27, 2018
  • Last visited

    January 16

Community Reputation

0 Neutral

About mlgmxyysd

  • Rank
    Tree Puncher

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    If offline-mode server is not allowed, it is unable to set online-mode=false in server.prop.
    • January 16
    • 28 replies
  2. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    Why? I WANT to do that. Is that about you?
    • January 16
    • 28 replies
  3. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    Yes, it is necessary to use unofficial login system in offline-mode server.
    • January 16
    • 28 replies
  4. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    And ClientTickEvent, PlayedLoggedInEvent dont have sendChatMessage() method.
    • January 16
    • 28 replies
  5. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    OKAY, I does not use /login command, replace /login to /exp ok? IS THIS OK? package org.meowcat.autocommadner; import net.minecraft.client.Minecraft; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import java.io.*; import java.lang.reflect.Method; import java.util.Properties; public class JoinEvent { private Properties prop = new Properties(); JoinEvent() { MinecraftForge.EVENT_BUS.register(this); FMLCommonHandler.instance().bus().register(this); } @SideOnly(Side.CLIENT) @SubscribeEvent public void PlayerJoinGame(TickEvent.ClientTickEvent event) throws IOException { try{ Class mc = Class.forName(Minecraft.class.getName()); Method[] methods = mc.getMethods(); for (Method method : methods){ Main.logger.info(method.getName()); } } catch (ClassNotFoundException e ) { e.printStackTrace(); } Minecraft.getMinecraft().player.sendChatMessage("/exp"); } }
    • January 16
    • 28 replies
  6. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    A bukkit plugin named Authme.
    • December 31, 2018
    • 28 replies
  7. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    When player join a game (server/single), player will send a message(or command) automatically.
    • December 31, 2018
    • 28 replies
  8. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    Please don't get caught up in the secondary problem. I only want to solve NullPointerException.
    • December 31, 2018
    • 28 replies
  9. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    It may cause by network problem. package org.meowcat.autocommadner; import net.minecraft.client.Minecraft; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.FMLCommonHandler; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.gameevent.TickEvent; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import java.io.*; import java.lang.reflect.Method; import java.util.Properties; public class JoinEvent { private Properties prop = new Properties(); JoinEvent() { MinecraftForge.EVENT_BUS.register(this); FMLCommonHandler.instance().bus().register(this); } @SideOnly(Side.CLIENT) @SubscribeEvent public void PlayerJoinGame(TickEvent.ClientTickEvent event) throws IOException { try{ Class mc = Class.forName(Minecraft.class.getName()); Method[] methods = mc.getMethods(); for (Method method : methods){ Main.logger.info(method.getName()); } } catch (ClassNotFoundException e ) { e.printStackTrace(); } File file = new File("config/user.properties"); if (!file.exists()) { Minecraft.getMinecraft().shutdown(); } InputStream in = new BufferedInputStream(new FileInputStream("config/user.properties")); prop.load(in); String password = prop.getProperty("Password"); String registered = prop.getProperty("IsRegistered"); if (!registered.equals("true")) { Minecraft.getMinecraft().player.sendChatMessage("/register " + password + " " + password); } else { Minecraft.getMinecraft().player.sendChatMessage("/login " + password); } } } java.lang.NullPointerException: Unexpected error at org.meowcat.autocommadner.JoinEvent.PlayerJoinGame(JoinEvent.java:42) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_18_JoinEvent_PlayerJoinGame_ClientTickEvent.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:344) at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1708) at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1098) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) These are codes & errors
    • December 30, 2018
    • 28 replies
  10. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    All code and error is posted at top.
    • December 29, 2018
    • 28 replies
  11. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    It not work. When game inited(not join a game),force close by NullPointer.
    • December 28, 2018
    • 28 replies
  12. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    No,I bought Minecraft.
    • December 28, 2018
    • 28 replies
  13. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    The mod is a client mod,not a server mod.
    • December 28, 2018
    • 28 replies
  14. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    That is not main issue. I can replace by any command,it only is a placeholder.
    • December 27, 2018
    • 28 replies
  15. mlgmxyysd

    [1.12.2]How to send command when player join a game?

    mlgmxyysd replied to mlgmxyysd's topic in Modder Support

    Auto send a command when player join game (server/single).
    • December 27, 2018
    • 28 replies
  • All Activity
  • Home
  • mlgmxyysd
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community