DockyardMC open-source, fast and lightweight Minecraft server software that's written from scratch in Kotlin without any code from Mojang. It is focused on making development easy, unlike PaperMC which still uses some really old bukkit APIs, Dockyard has very easy to use and modern API
- Easy to use, modern and extensible API
- Ability to take full control over every aspect of the server
- Lightweight
- uhhh there will be more stuff here later
Events.on<PlayerConnectEvent> {
DockyardServer.broadcastMessage("<lime>→ <yellow>${it.player} has joined the server.")
}
Modifying events (including PacketReceived and PacketSent)
Events.on<PacketReceivedEvent> {
if(it.packet is ServerboundPlayerChatMessagePacket) {
it.packet.message = "ha get overwritten >:3"
}
}
Canceling Events
Events.on<PlayerMoveEvent> {
// No moving for aso >:3
if(it.player.username == "AsoDesu_") {
it.cancelled = true
}
}
You can create commands quickly and easily with the DockyardMC command API
Commands.add("/boom") {
it.permission = "commands.troll"
it.addArgument("target", PlayerArgument())
it.execute { exec ->
if(!exec.isPlayer) exec.console.sendMessage("<red>Only players can execute this command!")
val player = exec.player!!
val target = it.get<Player>("target")
val world = target.world
world.spawnParticle(target.location, Particles.EXPLOSION_EMITTER, speed = 0f, count = 3)
world.spawnParticle(target.location, Particles.SMOKE, speed = 0.2f, count = 10)
world.spawnParticle(target.location, Particles.FLAME, speed = 0.2f, count = 10)
world.playSound(Sounds.EXPLOSION, volume = 2f, pitch = 0.5f)
target.sendMessage("<red>you got totally exploded by <yellow>$player<red>!!!")
}
}
Run code periodically
Period.on<HourPeriod> {
DockyardServer.broadcastMessage("<aqua>Reminder: <yellow>Stay hydrated and stretch once in a while!")
}
there will be more later
- Clone the repository
git clone https://github.com/DockyardMC/Dockyard/
- Go to the project directory
cd Dockyard
- Open in IntelliJ and run task
Dockyard Server
Contributions are always welcome! Please always check branches to see if the feature you are contributing is not already existing feature that someone else is working on
-
Scroll, Minecraft component library made for DockyardMC
-
PrettyLog, fancy logging library
- @KevDev
- @BluSpring
- @Asoji
- Twitch chat who watches me code this! <3