Sueta
LP

LPMessenger

0.8.0-Beta

Chat messages for timed LuckPerms permissions and groups.

·Plugin

Version 0.8.0-Beta is for 1.13.1 only. It may not work on previous versions of spigot. If you have tested it on a previous version with success please let me know in the discussion section.

LPMesenger hooks into LuckPerms and PlaceHolderAPI to give players a command to display how much time they have left on timed permissions and timed groups.
.
LPMessenger uses Essentials by default for fly and creative permissions, but any fly or gamemode plugin with permissions could be used. They may also be changed to whatever permission you like. They are not limited to creative and fly permissions.

Features:

  • 2 Timed Permission Messages
  • 2 Timed Group Messages
  • onJoin Messages
  • Completely configurable

Commands:

  • /flytime - Prints a message in chat showing a players remaining fly time.
  • /creativetime - Prints a message in chat showing a players remaining creative time.
  • /grouptime - Prints a message in chat showing a players remaining group time.
  • /grouptime2 - Same as grouptime for a 2nd group.
  • /lpmreload - Reloads the LPMessenger Config.yml

Permissions:

  • lpmessenger.permission (Allows players to use commands)
  • lpmessenger.admin (Allows player to reload the plugin)

Requirements:

  • Hard dependency on LuckPerms and PlaceHolderAPI
  • Soft dependency on essentials or any other plugin that supplies a fly or creative command with permissions.
  • Java 8

Installation:

  • Download the LPMessenger.jar and add it to your plugins folder. Restart the server and enjoy. Make sure to have all dependencies or LPMessenger will fail to start.
  • LPMessenger commands can be toggled on/off and changed.
    To change a command you must change it in the config and also in the plugin.yml. This will not work while the plugin is running and should be done before hand. To access the plugin.yml use a program like 7zip to open the LPMessenger.jar archive. Then edit the plugin.yml with the same command you put in the config.

Default Configuration:

In the default config all commands are disabled by default. the permissions commands are setup for fly and creative permissions.
And groups are left at default.

##LPMessenger Config

tempPermissions:
    permission#1:
        ## Allows you to change the command. WARNING if you change the command here, you must also change it in the plugin.yml
        Command: "flytime"
        ## Enable and Disable the command true/false.
        commandToggle: false
        ## Enable and Disable the onjoin message true/false.
        onJoinToggle: false
        ## This is the delay for the on join message in ticks 40 = 2secs.
        onJoinDelay: 40
        ##  The permission sets the permission in the LuckPerms
        ##  placeholder %luckperms_expiry_time_<permission>%
        ##  And because LuckPerms returns nothing when the time is 0
        ##  it also sets a permission check for the 0 time message.
        Permission: "essentials.fly"
        ## Put a space at the end of the message for the space in between the message and the time.
        Message: "&6Fly Time: "
        ## Color and Codes
        ## BLACK = &0, DARK_BLUE = $1, DARK_GREEN = &2, DARK_AQUA = &3, DARK_RED = &4, DARK_PURPLE = &5, GOLD = &6, GRAY = &7
        ## DARK_GRAY = &8, INDIGO = &9, GREEN = &a, AQUA = &b, RED = &c, Light_Purple = &d, YELLOW = &e, WHITE = &f
        timeColor: "&a"
   
    permission#2:
        ## Allows you to change the command. WARNING if you change the command here, you must also change it in the plugin.yml.
        Command: "creativetime"
        commandToggle: false
        onJoinToggle: false
        onJoinDelay: 40
        Permission: "essentials.gamemode"
        Message: "&6Creative Time: "
        timeColor: "&a"



tempGroups:
    group#1:
        ## Allows you to change the command. WARNING if you change the command here, you must also change it in the plugin.yml.
        Command: "grouptime"
        commandToggle: false
        onJoinToggle: false
        onJoinDelay: 40
        ##Put the temp group name here.
        Group: "default"
        Message: "&6Group Time: "
        timeColor: "&a"
 
    group#2:
        ## Allows you to change the command. WARNING if you change the command here, you must also change it in the plugin.yml.
        Command: "grouptime2"
        commandToggle: false
        onJoinToggle: false
        onJoinDelay: 40
        Group: "default"
        Message: "&6Group Time: "
        timeColor: "&a"

Planning:

  • Timed announcement to player with remaining time.

All suggestions are welcome.

Please use the discussion section for suggestions, questions and error reports.

Similar projects

Plugin →