MineResetLite 4.17.0

Based on the original with my fixes and update to support multiple server versions including 1.15.x

  1. vk2gpz
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    • 1.17
    • 1.18
    • 1.19
    Contributors:
    jjkoletar, vk2gpz
    You can find the Discord server here.


    I'm uploading this upon some server owners' request.
    It is based on the original MineResetLite plugin and included my bug fixes and use of my library.

    Your current MineResetLite config should work across all server versions supported by the original MineResetLite + any new versions the original MineResetLite did not support.

    This works with v6, v7 and new-v7 WorldEdit (including FastAsyncWorldEdit).

    This version also supports 1.13 style block specification, it supports all the following format:

    • STONE
    • 1
    • STONE:2
    • GRANITE
    • 1:2
    As of v3.0.0-VK, features previously provided in MineResetLitePlus have been integrated (see "New commands & Permissions")
    If you want to display various placeholders in Sign/Holograms, you should. use PlaceholderAPI (with PAPI-MineResetLite) with HolographicExtension PAPISign (example of creating MineResetLite sign is on PAPISign's overview page) and DynamicSigns.

    The older version (< v3.0.0) can still use MineResetLitePlus.

    This resource is distributed under the same Apache License Version 2.0 and the original source code can be obtained from MineResetLite's source repository and modifications I made to this original are found here.

    If you can make contributions towards updating or adding to the language files (phrases_xx.properties), please submit your pull request at here.

    New commands & Permissions (available from v3.0.0-VK):
    • /mrl settp <mine name>
      • Permission: mineresetlite.mine.settp
      • This command will set the specified mine's reset spawn point to where you're standing.
    • /mrl removetp <mine name>
      • Permission: mineresetlite.mine.removetp
      • This comamnd will remove the specified mine's reset spawn point.
    • /mrl addpot <mine name> <potion name:amplifier>
      • Permission: mineresetlite.mine.addpotion
      • adds the potion effect <potion name> with <:amplifier> to <mine name>.
        • mineresetlite.potion.<potiontype> (or mrl.potion.<potiontype>, or mrlp.<potiontype> : allows a player in a mine to have this potion effect.
    • /mrl removepot <mine name> <potion name>
      • Permission: mineresetlite.mine.removepotion
      • removes the potion effect <potion name> from <mine name>.
    • /mrl flag <mine name> resetPercent <value>%
      • Permission: mineresetlite.mine.flag
      • resetPercent : A integer number (0 < x < 100) specifying the percentage of mined blocks triggering the reset. Set to -1 to disable automatic percent resets.
    • /mrl redefine <mine name>
      • Permissions: mineresetlite.mine.redefine
      • To redefine a mine, make a selection via either WorldEdit or /mrl p1/p2, then use this command to save the redefined mine to memory. Mine names are allowed to have spaces.
    • /mrl setlucky <mine name> <number of lucky blocks>
      • Permissions: mineresetlite.mine.setlucky
      • This command will set the number of lucky blocks in the specified mine.
    Commands & Permissions:
    • /mrl list
      • Permissions: mineresetlite.mine.list
      • Simply enough, this command lists the names of all mines.
    • /mrl p1 (-feet)
      • Permissions: mineresetlite.mine.create
      • This command will set your first MRL selection point to the block you are looking at. If you execute the command with the -feet argument, it will set your first point to the block you're standing on.
    • /mrl p2 (-feet)
      • Permissions: mineresetlite.mine.create
      • This command will set your second MRL selection point to the block you are looking at. If you execute the command with the -feet argument, it will set your second point to the block you're standing on.
    • /mrl create <mine name>
      • Permissions: mineresetlite.mine.create
      • To create a mine, make a selection via either WorldEdit or /mrl p1/p2, then use this command to save the mine to memory. Mine names are allowed to have spaces.
    • /mrl info [mine name]
      • Permissions: mineresetlite.mine.info
      • To view information about a mine, such as its composition, automatic reset settings, or world, use /mrl info.
      • Without the parameter [mine name], the plugin will presume you are looking for information about the mine you are standing in - this feature is only available to players, consoles will still be required to use the parameter and players can still use the parameter if they want to get information from a specific mine.
    • /mrl set <mine name> <block name> <percentage>%
      • Permissions: mineresetlite.mine.composition
      • Example usages:
        • Set the mine to contain 98% stone: /mrl set <mine name> stone 98%
        • Set the mine to contain 50% birch log: /mrl set <mine name> log:2 50%
      • Setting the percentage of a block already in the mine will always overwrite the old value in the mine. You cannot have a mine whose composition totals to be over 100%, however, you can have a mine with a composition of less than 100%. When a mine resets, if the composition is less than 100%, it is padded with air until the composition does equal 100%.
    • /mrl unset <mine name> <material name>
      • Permissions: mineresetlite.mine.composition
      • To remove a block entirely from a mine's composition, such that the mine will no longer contain that block, use /mrl unset.
      • Example usages:
        • Remove stone from the mine: /mrl unset <mine name> stone
        • Remove birch logs from the mine: /mrl unset <mine name> log:2
    • /mrl reset <mine name> (-s)
      • Permissions: mineresetlite.mine.reset
      • /mrl reset will immediately reset the specified mine, also crediting the player who ran the reset command. If you wish to not have the mine broadcast the fact it was just reset, use /mrl reset <mine name> -s. This will no longer look for similar mine names, just the exact one.
    • /mrl flag <mine name> <setting> <value>
      • Permissions: mineresetlite.mine.flag
      • /mrl flag most importantly modifies settings for automatic resets. Each flag is detailed below:
        • resetDelay: The integer number of minutes between every mine reset. For example, if the resetDelay was 10, the mine would reset every 10 minutes.
        • resetWarnings: A comma separated list of integer minute values to warn players of the imminent mine reset. For example, to display a warning at 10, 5, and 1 minute before the reset, set the value of resetWarnings to: 10,5,1,30s,10s,5s,4s,3s,2s,1s
          If 'resetPercent' is specified, you can use this flag option to specify at what remaining %s, you display reset warning message(s).
        • fillMode: Boolean, whether or not to activate fill mode on reset of this mine. Fill mode means only blocks that are air will be changed. This mode is not commonly used on prison servers. NOTE: as of v4.0.3, this mode will reset the blocks whose material type does not belong to the mine.
        • surface: A block type. When set to anything but air, sets the top block of the mine to always be the specified block after a reset. This hides "surface ores" that are freebies. When set to air, the flag is cleared.
        • silent: Boolean. If true (the default), the mine will announce when it has been automatically reset. When false, the mine won't announce that. This flag doesn't apply to command-initiated resets.
        • tpAtReset: A boolean (true or false) of whether or not players in the mine should be teleported at the reset.
    • /mrl erase <mine name>
      • Permissions: mineresetlite.mine.erase
      • To completely and irrevocably remove a mine, simply delete it with /mrl erase.
    • /mrl tp <mine name>
      • Permissions: mineresetlite.mine.tp
      • Teleports the player to the top of the centre of the mine.

    Donation:
    It would be greatly appreciated for your donation to continue providing support for this plugin.
    [​IMG]
    egor123, TheCrisDemond and bithuc like this.

Recent Reviews

  1. sadasdasda412332
    sadasdasda412332
    3/5,
    Version: 4.17.0
    Are your plugins malfunctioning? when i use the command /mrl pos 1 and 2 and /mrl reset test, it only shows on one side but not in the frame? resources it only shows on one side like a wall, version server me 1.15.2
    1. vk2gpz
      Author's Response
      ?? review section is not a place to seek help, and I was not aware this plugin has sign/frame function...
  2. NBCSM
    NBCSM
    1/5,
    Version: 4.15.0
    your discord and your plugin is broken.
    useless plugin use old version.
    useless plugin use old version.
    1. vk2gpz
      Author's Response
      Neither discord nor plugin is broken. We have many users in Discord using it and also using the plugin. Just ranting with 1-star review is not going to help you at all.
  3. FilipeeX
    FilipeeX
    5/5,
    Version: 4.2.14-VK
    Exactly what I wanted, only one that actually works fine with 1.17.1. Thanks a lot.
  4. PrimePrismatic
    PrimePrismatic
    3/5,
    Version: 4.2.14-VK
    This is a good plugin and it works exactly how I want it to. However, the resetPercent doesn't seem to work for me. It tells me the mine will now reset at x% blocks remaining, but when I do /mrl info (name) it doesn't show that flag in there and will not reset based on block percentage.
  5. RazvanYOutube
    RazvanYOutube
    5/5,
    Version: 4.2.14-VK
    could you give me the MineResetLite version for 1.16.4? I think it's the version v4.10.0
  6. ASAxW2Y3EF2y
    ASAxW2Y3EF2y
    5/5,
    Version: 4.2.14-VK
    When i create a mine i see this errors in console.
    Also mine is not refreshing itself if someone is in it.
    It makes the announce but no refresh.
    Version: V4.13.0

    [14:40:42] [Server thread/WARN]: java.lang.NullPointerException
    [14:40:42] [Server thread/WARN]: at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213)
    [14:40:42] [Server thread/WARN]: at com.sk89q.worldedit.LocalSession.getSelection(LocalSession.java:408)
    [14:40:42] [Server thread/WARN]: at com.vk2gpz.mineresetlite.b.a.getSelection(a.java:94)
    [14:40:42] [Server thread/WARN]: at com.koletar.jj.mineresetlite.commands.MineCommands.createMine(MineCommands.java:114)
    [14:40:42] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [14:40:42] [Server thread/WARN]: at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [14:40:42] [Server thread/WARN]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [14:40:42] [Server thread/WARN]: at java.lang.reflect.Method.invoke(Unknown Source)
    [14:40:42] [Server thread/WARN]: at com.koletar.jj.mineresetlite.CommandManager.a(CommandManager.java:128)
    [14:40:42] [Server thread/WARN]: at com.koletar.jj.mineresetlite.MineResetLite.onCommand(MineResetLite.java:375)
    [14:40:42] [Server thread/WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
    [14:40:42] [Server thread/WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:146)
    [14:40:42] [Server thread/WARN]: at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:666)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1189)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1001)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13)
    [14:40:42] [Server thread/WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    [14:40:42] [Server thread/WARN]: at java.util.concurrent.FutureTask.run(Unknown Source)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:762)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:701)
    [14:40:42] [Server thread/WARN]: at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:604)
    [14:40:42] [Server thread/WARN]: at java.lang.Thread.run(Unknown Source)
  7. BusterDemiDragon
    BusterDemiDragon
    5/5,
    Version: 4.2.14-VK
    is it possible to make it so it creates piglin spawners or stuff like that
    if so that would be amazing
    1. vk2gpz
      Author's Response
      ?? you want to randomly place spawners in a mine??
  8. Valou
    Valou
    5/5,
    Version: 4.2.14-VK
    Hello ! Can u give me your discord ? I'm interested in the 1.16.5 version :) !



    -
  9. SadShikawa
    SadShikawa
    4/5,
    Version: 4.2.14-VK
    Would be REALLY nice if there was "reset mine at x% mined". But still, this is very cool and I like it.
    1. vk2gpz
      Author's Response
      there is...
  10. TheCrisDemond
    TheCrisDemond
    5/5,
    Version: 4.2.14-VK
    Can we get an 1.16 update, pls? I tried to use the discord link to keep myself updated, but it does not seems to work anymore, thanks :D
    1. vk2gpz
      Author's Response
      the newer version is available on a different platform, DM me to find it out.