LWCX-TrustAddon (MYSQL) | Allow players to share all protect
1.3Allow players to share all LWC protections with one command, through MYSQL
By the way! Check out my server at play.sunknights.fun!
About
First of all, this addon is inspired by LWC Trust. Go check it out. However, since I need MYSQL for my own server to use, I created this plugin which does what it does and supports MYSQL!
Addon Features
This plugin adds a trust command which allows players to grant access to all of their protections whether or not they are actually added to each protection individually. (i.e. without /cmodify -ing every single chest)
On top of that, every message sent by this addon can be modified in the config to suit your server.
Dependency
- LWCX
Installation
1. Put LWCX-TrustMysqlAddon.jar into the plugins folder along with the dependency.
2. Start the server
3. Stop the server
4. Edit the config (especially the MYSQL stuff)
5. Start the server
Commands
/ctrust add <player> - Add a player to your trust list
/ctrust remove <player> - Remove a player from your trust list
/ctrust clear- Remove all players from your trust list
/ctrust list - List all players in your trust list.
/lwc admin reload - reload LWCX as well as this addon
Permissions
lwcxtrust.use - Allows a player to use all /ctrust commands [default: op]
Default Config
Show Config
MYSQL:
host: "host"
port: 3306
database: "database"
username: "username"
password: "password"
Options:
sharedMessageNoticeEnabled: true
sharedMessageNoticeCooldownSeconds: 2
sharedDestoryNoticeEnabled: true
Messages:
add: '&2Registered trust for the player &6%s'
addalready: '&eThe player &6%s &eis already in your trusted list'
addempty: '&2Registered a trusted player'
addorremoveself: '&cYou cannot %s yourself'
remove: '&2Removed trust from the player &6%s'
removeempty: '&2Remove trust from a player'
removefail: '&cThe player &6%s &eis not trusted already'
clear: '&2Removed all trusted players'
list: 'You trust: %s'
listempty: You trust no one.
description: Manage your protection trusts.
wrongusage: 'Usage: %s'
playernotfound: '&cThat player does not exist in database!'
share: '&6%s is sharing his or her protections with you!'
sharedcannotbreak: '&cYou cannot break protections shared to you by &e%s'
sharedkilled: '&eYou just removed a protection owned by &e%s'
nolwc: 'Unable to hook into LWC! Please check to make sure that it is up-to-date, and enabled.'
Report problems in the discussion, not in a review. Thanks :)
Disclaimer: I am not the creator of LWC or LWCX, I created this plugin for my own server use, but since it works quite well, I decided it would be nice to share it with the community.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta