Jump to content

Cranky

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Cranky

  1. Yes, I did that. OK, you guys are gonna hate me, but I finally got everything to work. It was several very stuipd problems that actually had not much to do with the actual coding. But just for completenes, I am going to list them: It was years since my last server setup (I made that once and ever only migrated it), so I forgot I had to accept the eula.txt. Which I didnt notice becaus I couldnt find, where the server and by this logs is located, that is run with gradlew runServer. It is under ./run in the main folder of the project Somehow I had registered the same event twice in the bus, which must have confused the BUS or simply borke it, because it was ingored After making it only on registration, it was actualy working. I migrated my server from Minecraft 1.12 to 1.14, and somehow the server starting with forge changed. I launched the minecraft_server.1.14.4.jar and not the forge-1.14.4-28.0.75.jar In 1.12 with forge this was enough to get a modded server, but in 1.14 with forge you have to start the server using the forge jar Now the server is no longer vanilla but a real forge server and forge is working just perfect includind my mod. Anyways, sorry for wasting your time, since my actual coding did work from the beginning... Have a good one and thank you very much for your guys help!
  2. My bad, the post before yours was not meant to be send. I could already fix that issue. But hank you for looking into it! I added the debug.log as requested by DaemonUmbra.
  3. Finally got the server to run and I uploaded the debug.log https://paste.gg/p/anonymous/0ae28fff5be04bb1850e5d7e31a00356 But I cant see anything special in there. My log statetemnts with @Cranky show me, that my events should get registered. But I feel like I am using the wrong BUS or something similiar wrong.
  4. Hi everyone, I am struggling very hard to get my custom command to work on a server. My Command is already working on the local client with client created map. But as soon as I want to use it on my server too, the command is simply not recognized. Snippet: @Mod("crankyfly") public class FlyMod { public static final Logger LOGGER = LogManager.getLogger(); public FlyMod() { MinecraftForge.EVENT_BUS.addListener(this::serverStarting); } public void serverStarting(FMLServerStartingEvent event) { FlyMod.LOGGER.debug("@cranky serverStarting1 in main for crankyfly Mod"); FlyCommand.register(event.getCommandDispatcher()); FlyMod.LOGGER.debug("@cranky serverStarting2 in main for crankyfly Mod"); } } public final class FlyCommand { private FlyCommand() {} public static void register(CommandDispatcher<CommandSource> dispatcher) { // User types "/fly" FlyMod.LOGGER.debug("@Cranky trying to register command"); dispatcher.register(Commands.literal("fly") // Needs permission level 4 .requires(source -> source.hasPermissionLevel(4)) .executes(context -> toggleFly(context.getSource()) ) ); } [...] //what the command does is not important, since that part is working - also its pretty obvious } I would love to debug/test it with "runServer" but somehow I can´t get it to work. The run simply exits after 15 secs with no no errors. Any help is much appreciated, since I cant find anything on the forum or many other examples I looked at...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.