WhiteBear60
-
Posts
9 -
Joined
-
Last visited
Posts posted by WhiteBear60
-
-
3 minutes ago, diesieben07 said:
PlayerLoggedInEvent is a server side event.
Use ClientPlayerNetworkEvent.LoggedInEvent.
Thank you, looks like that is what I need.
-
Good afternoon.
I'm trying to write the functionality that I described in the title - for example, when the player logs in, he should automatically greet everyone with /say Hello. I have wrote the following:
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE,value = Dist.CLIENT,modid = "examplemod") public static class PlayerEvents { @SubscribeEvent public static void onPlayerLoggedIn(PlayerEvent.PlayerLoggedInEvent event) { Minecraft.getInstance().player.chat("/say Test message"); } }
but when I trying to load a world, it kicks me with an error that Minecraft.getInstance().player is null. What I'm doing wrong?
-
I think that Java version was too new for OSX 10.10.0, on Java 1.8.0_222 everything works fine
You can close this thread.
-
The forge installer crashes when I'm trying to start it with doubleclick or via command in terminal:
open forge-1.16.5-36.0.22-installer.jar
Here is logs:
"Problem Details and System Configuration" log that is shown by OSX after crash: https://pastebin.com/dsiV06Zn
Forge installer log is attached.
System:
MacBook Pro 2011
CPU: 2,4 GHz Intel Core i5
RAM: 16GB 1600 MHz DDR3
GPU: Intel HD Graphics 3000 512 MB
OSX 10.10 Yosemite
-
6 minutes ago, diesieben07 said:
Considering all this is a vanilla feature, you might want to suggest that to Mojang.
To report this to Mojang I need to test it on a vanilla server, I have thinking before that it's Forge issue. I will write here about the results of my test.
-
I think that Forge need some kind of notification that we must remove built-in resourcepack (aka resources.zip) from save folder when moving it to the server and use the resource pack parameter in server.properties. But, for now, this issue is solved, you may close this thread.
-
I'm
blindhasn't read client logs, thank you. Will write here if it will work for now. -
I have set a resource-pack in server.properties and Minecraft doesn't load it automatically when I login to server. Server resource packs is set to "Prompt".
[1.17.1] Executing a command on client when player logs in
in Support & Bug Reports
Posted
Can I get server IP from this event or check if it is singleplayer or dedicated server?