13
AlgoRythm
18d

Last time I made a Minecraft server, I had no idea how to use a database. Now, I re-visited Bukkit/ Spigot, and with a database, this is really, really fun.

Doing no plugins except my own. Minigame server, planning to add factions and skyblock sooner or latter too. Once I get permissions set up I'll open a discord server, I'll need builders.

Comments
  • 0
    Yeah you can make some really fun things with bukkit´s API, i remember for some years ago when i still was playing i made a CoD like gamemode with TDM, DM etc with guns and stuff.
  • 1
    @Frederick it's fantastic. Great API.
  • 1
    Maybe a volunteer here. But building really never was my strength :")
  • 1
    I too am interested...
  • 2
    This sounds like fun :) Used to make plugins back when Bukkit was a thing. If you need help with plugins or building, please let me know :)
  • 1
    Skyblock is fun as long as there is ex nihilo on it as well.
  • 0
    I used to make plugins. So much nostalgia
  • 1
    @ScriptCoded Minigame server with no plugins besides my own; should I use the in-built permissions system (which seems to do a string comparison every time a player does something) or a keep the custom rank system I have (which is numerical, and does no string comparisons, except when loaded form the DB)
  • 0
    @AlgoRythm The one you made sounds much more performant, but one thing that I've learnt from is that doing things "just to be sure" isn't always a bad idea when it comes to Bukkit. People always find hacky workarounds. Though I'd definitely go with an indexed database.
  • 1
    @ScriptCoded Yeah that's true, I should put an index on the rank level. I don't think anything else can be indexed at this time.

    A couple of hours ago I blacklisted all default commands, prefixed and unprefixed, by cancelling than in a pre-processed command event listener. So I basically hard blocked them and my permissions.yml file is still empty :)

    Now onto copying parts of one world onto another without lagging too bad!
  • 0
    @AlgoRythm Haha, that's the way. Total control is often the way to go
  • 1
    @ScriptCoded How would I quickly copy regions of one world to another?
  • 1
    @ScriptCoded I went into the decompiled net.minecraft.server.v_1_8_R3 code and came up with something like this. This just copies a block and puts it back in its own place, but perhaps this would work?
  • 1
    @AlgoRythm I also might just get the whole chunk using getChunkAtWorldCoords and then copy chunk by chunk
  • 1
    @AlgoRythm Yeah, copying It chunk by chunk was what I was going to suggest. Of course that might render you with a few extra blocks, but I think that might be worth the performance boost. What are you going to use it for? Generating the minimaps? Perhaps using schematics would be a better approach then?
  • 1
    @ScriptCoded Copying things like fairly large skywars maps while players are present in the world.
  • 1
    @ScriptCoded And not quite copying chunk by chunk, I'm going to grab a chunk from the source, copy the relevant blocks, and then get the next chunk. Instead of getting block, block, block. The backend just gets the chunk anyways so I figured id cut out the middle man and achieve better performance.
  • 0
    @AlgoRythm Ha, gotcha. Then I guess just iterating over the blocks would be the quickest. Last time I did plugins was quite a few years ago, so not too up to date with methods and such. It'd be fun to relearn though :)
Your Job Suck?
Get a Better Job
Add Comment