Posted April 30, 20178 yr My mod Main class initialization MinecraftForge.EVENT_BUS.register(new Quit()); Quit.class @SubscribeEvent public void onQuit(PlayerLoggedOutEvent event) { System.out.println("LoggedOut"); PlayerInfo.resetServer(); } This event is only called at SinglePlayer Logout, btw i need both (SP & MP Disconnect) Edited April 30, 20178 yr by Jester The problem has been solved
April 30, 20178 yr Author I fixed this. @SubscribeEvent public void onQuit(ClientDisconnectionFromServerEvent event) { } @SubscribeEvent public void onQuit(ClientDisconnectionFromServerEvent event) { }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.