Sueta

MineResetLitePlus

3.1.2

Must have plugin for Prison Servers! Adding extra functions to MineResetLite plugin.

·Plugin

This plugin adds extra functions to MineResetLite plugin.
NOTE: As of MRL v3.0.0-VK, you don't really need this plugin. Most of MRLP's features are now in MRL-v3.0.0-VK.

This plugin works with TokenEnchant plugin's explosive effect.

The current extra functions are:

  • Percentage-based mine reset : you can specify at what percentage of the mine being mined will trigger the reset.
  • You can display the remaining minutes on a sigh with the placeholder %delay%.
  • PotionEffect : you can allow a player to have automatic potion effects when they are in the mine. These PotionEffects will not affect players' existing PotionEffects.
  • Login pushup: when a player logs in and if s/he is in the reset mine, s/he will be automatically pushed up to the surface.
  • Mine Statistic Sign : you can place a sign to display some stats on a specific mine
    • you can display:
      • number of blocks being mined
      • number of blocks being mined in %
      • % that trigger the mine reset
      • Minutes remaining until reset


Donation:

It would be greatly appreciated for your donation to continue providing support for this plugin.

6338ff0b553f6c7118815b332bf74721.png 126b3597f645a82851b1ec02758e5724.png

Test Server: Please drop me a line, I will let you know the test server detail.

Commands:

  • /mrlp or /mrlp help : displays a help menu
  • /mrlp reload : reload config and sign files
  • /mrlp reset <mine_name1> <mine_name2> ... : resets the specified mines
  • /mrlp info <mine_name) : displays the information of the specified mine.

Permissions:

  • mrlp.reload : allows you to do /mrlp reload
  • mrlp.mine.reset : allows you to use /mrlp reset <mine> command
  • mrlp.mine.info : allows you to use /mrlp info <mine> command
  • mrlp.<potiontype> : allows a player in a mine to have this potion effect.

Installation:
You need to install MineResetLite along with MineResetLitePlus.jar in the plugins folder.

Sample Config.yml
#
# This is a configuration file for MineResetLitePlus
#
Messages:
  ErrorMsg : "&c[MRLP] : Some error occured."
  MineDoesNotExist: "&c[MRLP] : A mine called %mine% does not exist."


HelpMessages:
  banner:
    msg: "=== &e[&aMRLP Commands List (%version%)&e] &r==="
  help:
    msg: "&a/mrlp help : displays this help menu."
  reload:
    msg: "&a/mrlp reload : reloads config file."
    permission: "mrlp.reload"
  debug:
    msg: "&a/mrlp debug <true|false> : turn on / off the debug mode."
    permission: "mrlp.debug"
  reset:
    msg: "&a/mrlp reset <mine>"
    permission: "mrlp.mine.reset"
  info:
    msg: "&a/mrlp info <mine>"
    permission: "mrlp.mine.info"

#
# whether allowing a plyer to have automatic potion effects in the mine or not
# In order to let a player have those enabled (true) potion, the palyer
# or his/her rank must have a permission node "mrlp.XXXXXX" (e.g. mrlp.NIGHT_VISION)
# If you do not specify "amplifier", the default value 1 will be used.
potions:
  NIGHT_VISION:
    enabled: true
  FAST_DIGGING:
    enabled: false
    amplifier: 1
#
#
# whether the reset message is broadcasted to the players in the mine or not
reset_bloadcast: true

#
#
# interval to update Mine sign (in seconds)
sign_update_interval: 10
#

# You can place a sign as:
# 1st line: [mrlp_sign]
# 2nd line: mine's name
# 3rd line: layout name   (if ignored, "default" will be used)
#
# placeholders:                                     
# %minename% => name of the mine                    
# %maxblocks% => the number of blocks in the mine   
# %broken% => the number of broken blocks           
# %reset_per% => the percentage, that triggers the reset
# %current_per% => the current percentage of blocks mined
# %delay% => time (min) until the next reset        
layouts:
#you can change the default layout but don't delete it!
  default:
    layout:
      - 'Mine &a&l%minename%'
      - '&b%broken% &rmined'
      - '&b%current_per% &r% mined'
      - 'Resets @ &c%reset_per%%'
  time-base:
    layout:
      - 'Mine : &a%minename%'
      - '&b%delay% &rminutes'
      - 'until'
      - 'next reset.'[/B]
#
#
# Effect for LuckBlock being mined.
LuckyBlockEffect:
  Effect: "MOBSPAWNER_FLAMES"
  Sound: "AMBIENCE_THUNDER"

#
# The percentage of blocks being mined to trigger reset, or
# The time (in minute) to triger reset.
# <mine name>:
#   per: <percentage>
#   # or time based
#   time: <time in minute>
#   lucky_blocks: <num>
#   lucky_commands:
#     - <command;command;command...>
#     - <command;command;command...>
#     - <command;command;command...>
A:
  per: 0.9
  lucky_blocks: 2
  lucky_commands:
    - "tokenenchant add %player% 3;tm msg %player% &aLucky Block! <nl>&aYou received 3 tokens!"
    - "tokenenchant add %player% 1;tm msg %player% &aLucky Block! <nl>&aYou received one token!"
    - "tokenenchant add %player% 5;tm msg %player% &aLucky Block! <nl>&aYou received 5 token!"
    - "crate givekey %player% common 1;tm msg %player% &aLucky Block! <nl>&aYou received a common key!"
    - "crate givekey %player% rare 1;tm msg %player% &aLucky Block! <nl>&aYou received a rare key!"
B:
  per: 0.9
  lucky_blocks: 5

Similar projects

Plugin →