Everything posted by blooditor
-
Packet >>> plugin
I am pretty sure this is not possible. But you could do that with a Socket Sending and receiving strings is pretty simple.
-
weird java.lang.InstantiationException when registering EventHandler
Tell that Flan's Mod
-
weird java.lang.InstantiationException when registering EventHandler
Oh wow that actually worked. That method was empty anyways. Thanks
-
weird java.lang.InstantiationException when registering EventHandler
Using MC 1.8. EntityInteractEventworks fine. Nope it isn't. I'm not creating my own server mod for others copying stuff from it.
-
weird java.lang.InstantiationException when registering EventHandler
But that wouldn't cause an Exception on the other two registrations, right?
-
weird java.lang.InstantiationException when registering EventHandler
Sorry I had to remove the method content for security reasons.
-
weird java.lang.InstantiationException when registering EventHandler
Hey, I got a weird java.lang.InstantiationException whenever I register my EventHandler class in the preInit method. The events still get called so everything works fine - there is just the error message in the console every time: Also important: I do have an empty constructor for the event handler class. So since everything works that problem is not that bad - it's just annoying having the same error messages every time. Thanks for the help.
-
getServer().stopServer() only crashes server
That seems to work. Thank you very much
-
getServer().stopServer() only crashes server
Hey, when I run MinecraftServer.getServer().stopServer() it crashes the server after saving so it won't completely shut down and stay online without letting anyone join. Crash report: Do you know why this happens and is there a way to fix? Thanks a lot
-
Work with schematics and changing block ID's
I finally found the problem. ID's above 127 become negative when converting from the byte array (I guess because byte goes from -128 to 127). Somehow the bytes are stored correctly in the .schematic file so the problem occurs on conversion from byte to int. Well I solved that now just by calculating 256-id if the ID is negative but it's still strange.
-
Work with schematics and changing block ID's
Well but how does worldedit solve that then? I was able to copy a structure from one server to another with worldedit and one schematic file. Then I tried to load that schematic file with my mod and the IDs got mixed up. So there must be a way to solve that. The NBT file of the worldedit schematic looks like the file attached. Obviously nothing that looks like some kind of mapping.
-
Work with schematics and changing block ID's
Hey guys, I'm working with schematics and went into the lovely block id conflict problem that block ID's can be different on another installation. I could find out that world edit uses some kind of mapping of the block ID's but in contrast to what I read somewhere there is no NBT tag for this in my (worldedit) schematic files. So how exactly can you solve this problem? Thanks a lot for your reply blooditor
-
Mofify Forge server.jar files?
Thanks for that reply...
-
Mofify Forge server.jar files?
Thanks for the reply. Okay, but shouldn't there be some kind of unofficial hacky method?^^ I'm currently working on 1.8 and sponge is no longer supporting 1.8
-
Mofify Forge server.jar files?
Hey guys, I would like to know if its possible to modify the NetHandlerPlayServer class. Since there is no cheat protection I would like to play around with some things that class offers like changing the time a player can fly until he gets kicked. Is there a way to de- and recompile that file and change values? Thanks for your reply blooditor
-
Change action bar text (serverside)
Nah that doesn't work... but with (byte) 2^^
-
Change action bar text (serverside)
Haha it worked and I was too lazy to remember how to do that normally^^ And yes I knew someone would kill me for that
-
Change action bar text (serverside)
Okay I got it! Thanks a lot for the help! If someone needs: S02PacketChat packet = new S02PacketChat(new ChatComponentText(message), Byte.parseByte("2")); player.playerNetServerHandler.sendPacket(packet);
-
Change action bar text (serverside)
Thanks for the quick reply... unfortunately I'm not into packets in Forge and I can only find stuff about creating new ones... Can you give me some more hints?
-
Change action bar text (serverside)
Hey, I'm creating a serverside mod and I want to change the action bar text (like it was asked here:) But the problem is that I am working serverside only, so I need a method that does that like a server plugin would do it. Is there any way to handle that? (Maybe with packets?) Greetings, blooditor
-
Sending server command as console?
Of course I understand... why should it be developed...it works mostly fine
-
Sending server command as console?
no shit sherlock... thats why I use 1.7.10
-
Sending server command as console?
tell that cauldron...
-
Sending server command as console?
I'm sorry... I did it exactly your way... still didn't work And I'm using cauldron 1.7.10... could that be the problem?
-
Sending server command as console?
Any Idea? I'm so done...
IPS spam blocked by CleanTalk.