HomeJavaModsSweetLocks
SweetLocks

SweetLocks

A nostalgic recreation of an old-fashion paid iron door plugin.

Default configurations are in Chinese. Check localization repository for English or other language.

Introduction

Back when I played on a 1.6 server around the 1.8 era, there was a feature called Paid Door. You simply placed a sign on the block above an iron door:

This creates a paid door. Players pay Vault money to teleport to the other side, perfect for lottery machines, security gates, etc.

As far as I know, the original paid door plugin has been abandoned for a long time, so I decided to reimplement and improve it. The logic is actually quite simple.

Legacy Version Compatibility Note

Versions below 1.14 only receive limited support. They are more likely to conflict with other plugins, and it is hard to identify which plugin causes the conflict.

If any plugin runs block.getState().update(); on a sign, the paid door will stop working.

This is due to Bukkit's old API. Older versions only use the deprecated § color code for formatting, which erases text components the plugin uses to store data.

Commands

Root command: /sweetlocks Aliases: /slocks, /locks, /sl

Command Description Permission
/locks Show help None
/locks reload Reload config OP/Console

Permissions

Usage

Just write $lock (or your custom keyword in config) on the first line of a sign. Once you finish placing the sign, a paid door with price 0 money and allow entry/exit will be created, and the edit menu will open.

The creator can Shift + Right-click the sign to open the edit menu, where they can set the price and flags for the door.

When a player right-clicks the door, it shows: "Costs X coins to enter. Hold Shift + Right-click to enter/exit." Right-click the sign to view door info.

Mechanism

All paid door data is saved to the sign block using item-nbt-api which embedded into plugin. Transaction notifications are stored in a local data file and sent/cleared when the player logs in.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more