Integration with LuckPerms

CMS Donate Engine

The web editor for LuckPerms

By connecting your personal account, you get probably a cool way to pump your web interface site. From the administrator will appear in the web tool to manage groups, users will be able to pay a fee, to buy and to renew privileges. Integration with the plugin for any minecraft servers. The Donat system is written in PHP, privilege management takes place directly through the MySQL database and RCON Protocol to synchronize privileges.


Integration with the plugin LuckPerms

To connect the plugin to the CMS Donate Engine, you need in the server settings shop/admin/?page=management to specify the database connection LuckPerms and in the setting of sales teams shop/admin/?page=groups from the drop-down list select the plug-in connected to the server.


Adding indexes (to extend privileges)

To use the functions of buying and extending privileges, check the availability of indexes in the MySQL database (in older versions of the plugin they are missing and must be added). Indexes are used by the engine to insert new data, and if a record exists, the server upgrades or renews privileges.

ALTER TABLE `luckperms_user_permissions`
	ADD UNIQUE (
		`uuid`,
		`permission`,
		`server`,
		`world`
	);


MySQL table Structure

CREATE TABLE IF NOT EXISTS `luckperms_user_permissions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uuid` varchar(36) NOT NULL,
  `permission` varchar(200) NOT NULL,
  `value` tinyint(1) NOT NULL,
  `server` varchar(36) NOT NULL,
  `world` varchar(36) NOT NULL,
  `expiry` int(11) NOT NULL,
  `contexts` varchar(200) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uuid` (`uuid`,`permission`,`server`,`world`),
  KEY `luckperms_user_permissions_uuid` (`uuid`),
  KEY `luckperms_user_permissions_permission` (`permission`)
) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=utf8;

Download LuckPerms: https://luckperms.github.io/

Gamepedia: https://minecraft-ru.gamepedia.com/LuckPerms