Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

bibouche_

Members
  • Posts

    80
  • Joined

  • Last visited

Posts posted by bibouche_

  1. We are not getting any credentials at all, they can join with just a pseudo, and a login on the server (with AuthMePlugin), so that the password they enter is just for their profile on our server, we respect privacy and so they will not enter their credentials into the launcher. It's goal is just to verify for the mods and launch a minecraft instance

  2. if (!this.server.pinged) {
    			this.server.pinged         = true;
    			this.server.pingToServer   = -2L;
    			this.server.serverMOTD     = new TranslationTextComponent("");
    			this.server.populationInfo = new TranslationTextComponent("");
    			EXECUTOR.submit(() -> {
    				try {
    					CustomMenu.this.serverPinger.ping(CustomMenu.this.server, () -> { });
    				}
    				catch (UnknownHostException unknownHostException) {
    					CustomMenu.this.server.pingToServer = -1L;
    					CustomMenu.this.server.serverMOTD   = new TranslationTextComponent(TextFormatting.DARK_RED + "Cannot resolve host's name");
    				}
    				catch (Exception exception) {
    					CustomMenu.this.server.pingToServer = -1L;
    					CustomMenu.this.server.serverMOTD   = new TranslationTextComponent(TextFormatting.DARK_RED + "Unable to connect to server");
    				}
    			});
    		}
    		
    		if (this.server.pingToServer >= 1L) {
    			drawCenteredString(matrixStack, this.font, this.server.serverMOTD, this.width / 2, (int) (this.height / 2 * 1.5) - 52, 14474460);
    			drawString(matrixStack, this.font, TextFormatting.GOLD + this.server.populationInfo.getString() + TextFormatting.RESET + " " + new TranslationTextComponent("alcamenu.players").getString(), this.width / 2 - 65, (int) (this.height / 2 * 1.5) - 27, 14474460);
    			drawString(matrixStack, this.font, TextFormatting.GOLD + String.valueOf(this.server.pingToServer) + TextFormatting.RESET + " ms", this.width / 2 + 30, (int) (this.height / 2 * 1.5) - 27, 14474460);
    		}
    		else {
    			drawCenteredString(matrixStack, this.font, this.server.serverMOTD, this.width / 2, (int) (this.height / 2 * 1.5) - 52, 0x245791);
    		}

     

  3. Hey, umm, I created a new Menu, in which I ping to a server to get it's Motd, However, I have a '\n' to continue on a new line, but Minecraft displays it as an unknown character and put it on the same line.

    The Motd in server.properties is 

             \u00A7ka\u00A7r \u00A73\u00A7nAlcanderia\u00A7r \u00A76Modded \u00A74Survival\u00A7r \u00A7ka\u00A7r\n                    \u00A76[\u00A721.\u00A7416\u00A7r.5\u00A76]

    And in the code I get is as a TranslationTextComponent, and then display it with Screen#drawCenteredString()

     

    How can I get it to continue on a new line with the '\n' ?

  4. [18:03:14] [Render thread/FATAL] [minecraft/Minecraft]: Reported exception thrown!
    net.minecraft.crash.ReportedException: mouseClicked event handler
    	at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen.java:434) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.MouseHelper.mouseButtonCallback(MouseHelper.java:90) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.MouseHelper.lambda$null$4(MouseHelper.java:191) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.util.concurrent.ThreadTaskExecutor.execute(ThreadTaskExecutor.java:86) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B}
    	at net.minecraft.client.MouseHelper.lambda$registerCallbacks$5(MouseHelper.java:190) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
    	at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.2.2.jar:build 10] {}
    	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3174) ~[lwjgl-glfw-3.2.2.jar:build 10] {}
    	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:112) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1025) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    	at net.minecraft.client.Minecraft.run(Minecraft.java:612) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    	at net.minecraft.client.main.Main.main(Main.java:184) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181] {}
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_181] {}
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181] {}
    	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181] {}
    	at net.minecraftforge.userdev.FMLUserdevClientLaunchProvider.lambda$launchService$0(FMLUserdevClientLaunchProvider.java:52) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {}
    	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
    	at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:108) [forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {}
    Caused by: java.awt.HeadlessException
    	at java.awt.Desktop.getDesktop(Desktop.java:142) ~[?:1.8.0_181] {}
    	at fr.alcanderia.alcamainscreen.client.CustomMenu.lambda$init$2(CustomMenu.java:52) ~[main/:?] {re:classloading}
    	at net.minecraft.client.gui.widget.button.Button.onPress(Button.java:26) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.gui.widget.button.AbstractButton.onClick(AbstractButton.java:18) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.gui.widget.Widget.mouseClicked(Widget.java:136) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.gui.INestedGuiEventHandler.mouseClicked(INestedGuiEventHandler.java:31) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.MouseHelper.lambda$mouseButtonCallback$0(MouseHelper.java:92) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.client.gui.screen.Screen.wrapScreenError(Screen.java:427) ~[forge-1.16.5-36.2.4_mapped_snapshot_20210309-1.16.5-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	... 22 more

     

  5. Hey, the problem I have is that I added a button which should open a link on press. The thing is it causes the game to crash.

    Here is my button:

    this.addButton(new ImageButton(this.width / 2 - 118, this.height / 2, 20, 20, 0, 0, 18, ICONS, 256, 256, (discord) -> {
    			try {
    				Desktop.getDesktop().browse(new URI("https://discord.gg/7rNc85mezH"));
    			}
    			catch (IOException | URISyntaxException e) {
    				e.printStackTrace();
    			}
    		}, new TranslationTextComponent("discord")));

    I think that the Desktop#getDesktop( ) would open the browser in the console and that's the reason of my crash.

    However, what should I use instead ?

  6. alright so the author of the plugin says that it doesn't seem to be caused by the plugin.

    And so I looked on the logs of my minecraft launcher and I got this error when I connect:

    [19:57:09] [Render thread/FATAL] [minecraft/ThreadTaskExecutor]: Error executing task on Client
    java.util.NoSuchElementException: packet_handler
    	at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1119) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
    	at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:260) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
    	at io.netty.channel.DefaultChannelPipeline.addBefore(DefaultChannelPipeline.java:249) ~[netty-all-4.1.25.Final.jar:4.1.25.Final] {}
    	at net.minecraftforge.network.NetworkFilters.lambda$injectIfNecessary$1(NetworkFilters.java:48) ~[forge:?] {re:classloading}
    	at com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:146) ~[guava-21.0.jar:?] {}
    	at net.minecraftforge.network.NetworkFilters.injectIfNecessary(NetworkFilters.java:44) ~[forge:?] {re:classloading}
    	at net.minecraftforge.fml.network.NetworkHooks.sendMCRegistryPackets(NetworkHooks.java:121) ~[forge:?] {re:classloading}
    	at net.minecraft.client.network.play.ClientPlayNetHandler.func_147282_a(ClientPlayNetHandler.java:399) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    	at net.minecraft.network.play.server.SJoinGamePacket.func_148833_a(SourceFile:110) ~[?:?] {re:classloading}
    	at net.minecraft.network.play.server.SJoinGamePacket.func_148833_a(SourceFile:18) ~[?:?] {re:classloading}
    	at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:36) ~[?:?] {re:classloading,xf:OptiFine:default}
    	at net.optifine.util.PacketRunnable.run(PacketRunnable.java:28) ~[?:?] {re:classloading}
    	at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:189) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    	at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {re:classloading}
    	at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:151) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    	at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(ThreadTaskExecutor.java:128) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    	at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:947) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) ~[?:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
    	at net.minecraft.client.main.Main.main(Main.java:184) ~[minecraft-1.16.5-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_301] {}
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) ~[forge-1.16.5-36.2.1-launcher.jar:36.2] {}
    	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
    	at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_301] {}
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:52) [ForgeWrapper-1.5.1.jar:1.5.1] {}
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_301] {}
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_301] {}
    	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:210) [NewLaunch.jar:?] {}
    	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:245) [NewLaunch.jar:?] {}
    	at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?] {}
    	at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?] {}
    

     

  7. Hey, I have a minecraft modded server running on mohist in order to test my mod, however, I can connect to the server but can't join the world because of the following error : "UTFDataFormatException: malformed input around byte", and the thing is, it works perfectly fine in singleplayer, and I don't know at all what is causing this error. So if I can get some help it would be nice, thanks.

    And the only error I have on the console server side is :

    >.... [14:38:42 WARN]: java.lang.NullPointerException
    >.... [14:38:42 WARN]: at hu.montlikadani.tablist.bukkit.tablist.groups.impl.ReflectionHandled.unregisterTeam(ReflectionHandled.java:177)
    >.... [14:38:42 WARN]: at hu.montlikadani.tablist.bukkit.tablist.groups.Groups.removePlayerGroup(Groups.java:202)
    >.... [14:38:42 WARN]: at hu.montlikadani.tablist.bukkit.TabList.lambda$onPlayerQuit$11(TabList.java:373)
    >.... [14:38:42 WARN]: at java.base/java.util.Collection.removeIf(Unknown Source)
    >.... [14:38:42 WARN]: at java.base/java.util.Collections$SetFromMap.removeIf(Unknown Source)
    >.... [14:38:42 WARN]: at hu.montlikadani.tablist.bukkit.TabList.onPlayerQuit(TabList.java:371)
    >.... [14:38:42 WARN]: at hu.montlikadani.tablist.bukkit.listeners.Listeners.onPlayerLeave(Listeners.java:55)
    >.... [14:38:42 WARN]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >.... [14:38:42 WARN]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    >.... [14:38:42 WARN]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    >.... [14:38:42 WARN]: at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    >.... [14:38:42 WARN]: at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    >.... [14:38:42 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76)
    >.... [14:38:42 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
    >.... [14:38:42 WARN]: at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:588)
    >.... [14:38:42 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:573)
    >.... [14:38:42 WARN]: at net.minecraft.server.management.PlayerList.func_72367_e(PlayerList.java:401)
    >.... [14:38:42 WARN]: at net.minecraft.server.management.PlayerList.disconnect(PlayerList.java:386)
    >.... [14:38:42 WARN]: at net.minecraft.network.play.ServerPlayNetHandler.func_147231_a(ServerPlayNetHandler.java:1534)
    >.... [14:38:42 WARN]: at net.minecraft.network.NetworkManager.func_179293_l(NetworkManager.java:387)
    >.... [14:38:42 WARN]: at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:161)
    >.... [14:38:42 WARN]: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1055)
    >.... [14:38:42 WARN]: at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:334)
    >.... [14:38:42 WARN]: at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:945)
    >.... [14:38:42 WARN]: at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:760)
    >.... [14:38:42 WARN]: at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:270)
    >.... [14:38:42 WARN]: at java.base/java.lang.Thread.run(Unknown Source)

     

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.