Back to Plugins

SkStorage

Active tab
Overview
Latest version
Not specified
Minecraft support
0 versions
Topics synced
0
Claim this plugin

This plugin was imported from Spiget and is currently unclaimed.

Live badges: Downloads badge for SkStorage Spigot Downloads badge for SkStorage GitHub Stars badge for SkStorage License badge for SkStorage How to embed →

Plugin Information

Type: Minecraft plugin
Spigot Resource: Open on SpigotMC
Repository: mstrjk/SkStorage
Created by: Spiget Importer

Description

why does this exist The closest compatible plugin to this is PatPeter's SQLibrary for SQLite. The last release was 2013. It uses rollback journal mode (no WAL), one giant variables.db for everyone, stores pd::<UUID>::eco.credits as a 60 byte text key on every single row, and runs your user supplied regex on every write. I needed a server that could handle more than a combined total of one variable. So this exists. what it does Variables get sorted into one of three SQLite databases by name. If the name matches a glob you put in config.yml under persistent.patterns (think leaderboards, credits, balances) it goes in persistent.db. That file uses dict encoded UUIDs and keys, so a million leaderboard rows ends up roughly a third the size it would otherwise. If the name contains a UUID anywhere in it, it goes to player//.db. The file is opened when the player joins and closed when they quit. Open file handles roughly equal online players, not total players ever. If the name starts with sf:: it goes to server.db for global state. Anything else is not persisted. It sits in Skript's RAM for the session and dies on restart. This catches typos that the old setup would happily save forever to nowhere useful. WAL is on. Six other PRAGMAs are set. There's a flush task that commits every 200ms, so writes batch into transactions instead of fsyncing on every single set. Worst case data loss on a hard crash is 200 milliseconds.

Minecraft Plugin Badges

Use these badge images in docs, README files, or forum posts.

Badge Guide
Downloads
Downloads badge for SkStorage
![Downloads](https://ezbanners.org/shields/plugins/09513314-776b-47bb-b9e1-bf0a34c88551/downloads.png)
Spigot Downloads
Spigot Downloads badge for SkStorage
![Spigot Downloads](https://ezbanners.org/shields/plugins/09513314-776b-47bb-b9e1-bf0a34c88551/spigot-downloads.png)
GitHub Stars
GitHub Stars badge for SkStorage
![GitHub Stars](https://ezbanners.org/shields/plugins/09513314-776b-47bb-b9e1-bf0a34c88551/github-stars.png)
License
License badge for SkStorage
![License](https://ezbanners.org/shields/plugins/09513314-776b-47bb-b9e1-bf0a34c88551/license.png)