bukkit-runtime icon indicating copy to clipboard operation
bukkit-runtime copied to clipboard

Using other modules?

Open BasToTheMax opened this issue 4 years ago • 2 comments

Is is possible to use other modules ( for example fs, mysql and redis) with custom realms? Like this:

ServerCommands.register('/file', (player, call) => {

    const fs = require("fs");
   player.sendMessage(fs.readFileSync(__dirname + '/file.txt'));

});

BasToTheMax avatar Nov 12 '21 14:11 BasToTheMax

You can't currently, but I think you should be able to. That is something that needs to be implemented in https://github.com/customrealms/bukkit-runtime. I'll transfer this issue over to there.

connerdouglass avatar Nov 12 '21 15:11 connerdouglass

I want to help implementing all of this. How would I do this?

BasToTheMax avatar Nov 15 '21 08:11 BasToTheMax