Lease icon

Lease -----

This plugin enables temporary permission grants for players for a specified duration



LEASE
Minecraft plugin for leasing commands to players​

Is it me or do you also want a plugin where you want to give players a temporary permission?
giving players creative mode, op for a brief period. Like having a temp admin take over for you

This plugin allows you to do just that!

Github Link: https://github.com/KTK27YT/lease_plugin


Installation:

For server owners:
download the plugin from the releases tab, and put it in your plugins folder.

For developers:
clone the repository, and make sure you add Bukkit as a dependency.

Usage:

Command Usage:

To grant leases:
/lease <lease_name> <player_to_give_lease> <duration (in minutes)>

to view active leases:
/activelease


Config:
To properly make use of this plugin, there's a lease.yml file that gets created in the your_server/plugins/Lease folder.
Here's how the config looks like:


leases:
creative:
start_cmd: "gamemode creative %player%"
end_cmd: "gamemode survival %player%"

op:
start_cmd: "op %player%"
end_cmd: "deop %player%"

spectator:
start_cmd: "gamemode spectator %player%"
end_cmd: "gamemode survival %player%"


You can add as many leases as you want, and you can also edit the existing ones.
To create a new lease you want to:


name_of_your_lease:
start_cmd: "command_to_execute_when_lease_starts"
end_cmd: "command_to_execute_when_lease_ends"


Note: make sure to add %player% where a player's name is mentioned
For example, when running the creative lease on John:
/gamemode creative %player%
/gamemode creative John

and

start_cmd: What command to run when the lease is granted?
end_cmd: What command to run when the lease is expired?

Permissions

There are 2 permissions that come with this plugin:

lease.lease - allows the player to grant leases
lease.activelease - allows the player to see active leases

Note: these 2 permissions are granted to OP users by default.
Resource Information
Author:
----------
Total Downloads: 17
First Release: Jan 15, 2024
Last Update: Jan 15, 2024
Category: ---------------
All-Time Rating:
0 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings