/**
* Does cleanup stuff on disconnect from a server
*/
@SubscribeEvent
public void playerDisconnect(ClientDisconnectionFromServerEvent event) {
AppliedPatches patches = PatchManager.instance().getGlobalAppliedPatches();
patches.setPatchSuccessfullyApplied(PatchList.SERVER_MODDED, false);
patches.setPatchSuccessfullyApplied(PatchList.HANDSHAKE_FINISHED, false);
PacketHandlerClient.reregisterAndClearRemovedCmds();
MoreCommands.getProxy().playerNotified = false;
MoreCommandsConfig.enablePlayerAliases = MoreCommandsConfig.enablePlayerAliasesOriginal;
MoreCommandsConfig.enablePlayerVars = MoreCommandsConfig.enablePlayerVarsOriginal;
}
ClientHandler.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:morecommands
作者:
评论列表
文章目录