SweetLocks 图标

SweetLocks

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.8
本资源为搬运资源,原资源地址: https://modrinth.com/mod/sweetlocks
资源信息

Minecraft 版本: 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.10 1.10.1 1.10.2 1.11 1.11.1 1.11.2 1.12 1.12.1 1.12.2 1.13 1.13.1 1.13.2 1.14 1.14.1 1.14.2 1.14.3 1.14.4 1.15 1.15.1 1.15.2 1.16 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2 26.2

平台: bukkit folia paper purpur spigot

标签: economy technology utility

资源介绍

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:

  • First line: [lock] (something like that, similar to the [Private] lock sign in Lockette)
  • Second line: Vault money price, e.g. 100
  • Third line: empty
  • Fourth line: flag - I, O, E, NM, NP mean:
    • I = Allow entry
    • O = Allow exit
    • E = Require empty inventory
    • NM = Require 0 Vault money
    • NP = Require no potion effects

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

  • sweet.locks.create — Allow creating paid doors
  • sweet.locks.bypass.tax — Bypass tax on Vault money collected by the door creator
  • sweet.locks.bypass.distance — Bypass distance limit for using paid doors (default: within 2.6 blocks)

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.

  • For 1.14+: Data is stored in the block's PersistentDataContainer.
  • For versions below 1.14: Data is stored in the insertion field of the first sign line.
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
WAEPack

价格:0 墨喵币
下载量:0

查看详情
VibrantPBR

价格:0 墨喵币
下载量:0

查看详情
Simple Disenchant

价格:0 墨喵币
下载量:0

查看详情
SinceEnchantments

价格:0 墨喵币
下载量:0

查看详情