Private Mines ⭐ Supports AutoSell ⚡ Supports UltraPrisonCore ⚡Supports Oraxen [1.13- 1.20]  ✅ icon

Private Mines ⭐ Supports AutoSell ⚡ Supports UltraPrisonCore ⚡Supports Oraxen [1.13- 1.20] ✅ -----

Create upgradable private mines for your players to mine in!




Good evening,

Apologies for the huge delay between updates, work has been crazy busy.

I've completely rewrote the schematic iterator feature to increase the loading speed of the plugin upon startup.

Please leave any feedback in the #verified channel on discord, also please report any bugs on the discord too it helps a lot instead of using the review section.

Thanks,
Kyle
----------, Jul 1, 2024

Fixes the WorldGuard flags for the claim command.
----------, Nov 2, 2023

Hi,

I've listened to the community and fixed as much as I possibly could, if you find any issues please report via the discord.
----------, Sep 10, 2023

  • Fix Messages
  • Fix Addons
  • Fix tax
Plus many other small fixes.
----------, Aug 13, 2023

Fixes /pmine setblocks
----------, Jun 21, 2023

Hey,

I've rewrote the pregenetation system within the plugin and also tidied up a lot of the code to make it work far better. I've also worked on an addon system to allow for people to add their own features!

A basic overview of some of the changes I've done with this update

  • Re-Implemented the pregeneration system
  • Hopefully fix the ban command
  • Fixes the setblocks in the sql storage
  • Fix for WorldGuard flags not working
  • Fix the hook for UltraPrisonCore
  • Added support for custom Addons
  • Load the sql data using async so it should be more optimized
  • Fix the queue system
  • Clean up a bunch of code

To see the full changelog feel free to check out this pull request

https://github.com/UntouchedOdin0/PrivateMines/pull/81/files

If you have any questions / need support please ask in the verified channel and a member of the support team will gladly help you with any problems of which may occur, also if you're curious about any of the changes in this update please ask and we'd gladly answer the questions! :)

Thanks,
Kyle
----------, May 8, 2023

Hi All,

It's a bit too much to explain in this message of what I've done exactly but I've rewrote a lot of the backend code to make this plugin work so much better than how it was working before I do apologise greatly for the delay in getting this update out but I do hope you all enjoy using it. Be sure to back stuff up before updating as it's such a big update if you have any data in YAML format then you won't be able to convert to this update easily as I've rewrote the whole storage system to move to SQL and I haven't added a converter if it's requested I'll do something to support it.

Feel free to ask any questions in #verified and I'll happily help you.

Thanks,
Kyle
----------, Apr 7, 2023

Fixes some reported performance issues
----------, Feb 28, 2023

fix shading
----------, Feb 12, 2023

This update fixes a bunch of small bugs and also allows for SQLite storage support. I'd highly advise to move to SQLite due to it being far more reliable and I've personally had no issues with it during testing.

I'd advise not updating to this version mid season and updating near the end of the season so that there's no data lost.

Thanks,
Kyle
----------, Feb 12, 2023

Fixes the /pmine setblocks command
Fixes the give mine on join
Fixes the percent tasks
Fixes the wall gap bug
Move to the Mine#handleReset system

If you have any problems, I do actually fix the bugs. I've just been focused on real life stuff lately and that's why there was a slight delay in the updates.

Thanks,
Kyle
----------, Jan 27, 2023

This updates contains a bunch of small fixes
----------, Jan 24, 2023

Hopefully fixes some WorldGuard bugs mainly https://paste.learnspigot.com/cikuwefuzi.md
----------, Jan 20, 2023

Fixes the console command bug
----------, Jan 19, 2023

Hey everyone,

I've updated the plugin to add support for ItemsAdder, but there's one thing you need to do for each mine type and that's to add some new values, but I've given you a example of the new mine type below, the ItemsAdder materials will take priority over vanilla materials currently, but I'll look into supporting both in one mine type in the future!

I hope you enjoy the new update!

Code (YAML):
mineTypes:
  Test
:
    file
: minewithgap.schem
    resetTime
: 5
    expand
: 1
    resetPercentage
: 50.0
    upgradeCost
: 1.0
    upgradeCurrency
: VAULT # Supported currencies: VAULT, ULTRAPRISONCORE (Coming soon, hopefully...)
    useOraxen
: true
    useItemsAdder
: false
    materials
:
      STONE
: 0.9
      COBBLESTONE
: 0.1
    oraxen
:
      orax_ore
: 1.0
    itemsAdder
:
      nice_stone
: 1.0
    maxPlayers
: 1
    flags
:
      block-break
: true
    fullFlags
:
      block-place
: false
----------, Jan 17, 2023

I completely forgot to add the permissions to the commands, please update to this plugin as soon as possible to prevent abuse.
----------, Jan 16, 2023

Hey everyone,

I've updated the plugin to add support for Oraxen, but there's one thing you need to do for each mine type and that's to add some new values, but I've given you a example of the new mine type below, the Oraxen materials will take priority over vanilla materials currently, but I'll look into supporting both in one mine type in the future!

I hope you enjoy the new update!

Code (YAML):
mineTypes:
  Test
:
    file
: minewithgap.schem
    resetTime
: 5
    expand
: 1
    resetPercentage
: 50.0
    upgradeCost
: 1.0
    upgradeCurrency
: VAULT # Supported currencies: VAULT, ULTRAPRISONCORE (Coming soon, hopefully...)
    useOraxen
: true
    materials
:
      STONE
: 0.9
      COBBLESTONE
: 0.1
    oraxen
:
      orax_ore
: 1.0
    maxPlayers
: 1
    flags
:
      block-break
: true
    fullFlags
:
      block-place
: false
Thanks,
Kyle
----------, Jan 15, 2023

I had reports and also noticed myself that the mine would start moving when upgrading, it was only a subtle 1 block movement each upgrade but once you start upgrading it a lot more then things became a lot more transparent.

Hopefully fixes the commands system as well

Let me know if there's any problems!

Thanks,
Kyle :)
----------, Jan 13, 2023

Hey,

I'm really sorry for the bugs of which have been occuring with the mine type bugs regarding upgrading and the loading and such. This build should fix all of the issues, I've tested a few times on my machine with no issues found! :)

Please let me know if you have anymore issues with this jar.

Thanks,
Kyle
----------, Jan 12, 2023

This update fixes a major bug where mine types can be loaded out of order of which would break the /pmine upgrade system and likely other commands.

Thanks to EffeDion#8150 for reporting the bug!
----------, Jan 8, 2023

I've added a basic help menu for the /pmine command in the legacy jar, I'll work on making it more pretty tomorrow but hopefully it's better than not having one! =)

[​IMG]
----------, Dec 20, 2022

This update should fix overlapping mines, I now store the location in a separate json file of which then loads the location back up so hopefully no more overlapping mines.
----------, Dec 11, 2022

Hopefully fixes the legacy versions worldguard flag issue.
----------, Dec 9, 2022

I've added the upgrade functionality from the main version to the legacy version. Works exact same way just for legacy versions. Enjoy :)
----------, Dec 5, 2022

title says it all :)
----------, Dec 4, 2022

Hey everyone,

After a lot of requests I've finally added full support for 1.8 -> 1.19 I'm still working on some small things with the 1.8 jar just to make it perfecto but as soon as I can get a jar with the fixes, I'll make sure to publish it here! I'm aiming to find a fix for this today and as I mentioned earlier I will publish it as soon as possible!

I'm just going to say that this early build of the 1.8 Jar will be missing a fair few features, but I'm going to slowly roll them out as soon as I have a implementation of which I feel is stable for them!

The current implemented commands are as follows

  • /privatemines give
  • /privatemines delete
  • /privatemines teleport
  • /privatemines reset
If you have any questions, please don't hesitate to reach out to me in the discord server!

Thanks,
Kyle
----------, Dec 4, 2022

Forgot to remove something, my bad!
----------, Oct 19, 2022

Welcome to The Generational Update!

It's been requested in the discord and here it is, after many many hours of working on this update, I'm happy to release this update to you all.

I know the strain on your server of managing the launch of a new server with all the mines being created one after another can be hard, so I've made this new feature of allowing you to pregenerate mines.

To generate the mines all you have to do is /pmine pregen <amount> (
privatemines.pregen)

And for a player to claim a mine they'll type /pmine claim (
privatemines.claim)


I've also re-done the messages system of which now supports MiniMessage, a messages.yml file should generate when you startup the server and you can

Please let me know if you need any help with using the new feature via the discord, and if you enjoy the new update and would like to motivate me to make more cool messages with it! :)
----------, Oct 19, 2022

Made some minor changes and also added enableTax option into the config
----------, Sep 19, 2022

Fixed some bugs of which occurred within the setblocks command.
----------, Sep 19, 2022

After many many many requests, I've added the setblocks command

[​IMG]
[​IMG]
[​IMG]
[​IMG]

In total, it was mentioned 42 times in the #verified channel... Can't wait for the next command request... :D
----------, Sep 18, 2022

I've had reports that whilst having the shouldWallsGoUp config option disabled, the mines were still going up by one, this has now been resolved.

Thanks,

Kyle
----------, Sep 16, 2022

Quick hotfix for the adventure config option.
----------, Sep 14, 2022

Sorry about the previous Jar, I've fixed the debug messages occuring.
----------, Sep 14, 2022

I've added the new config.yml option enableMenu which is a boolean default set to true but allows you to disable the menu of which occurs when you type /privatemines
----------, Sep 10, 2022

Please add the following option below the locale in the config, disable this if it's causing problems.

useAdventure: true
----------, Sep 9, 2022

Finally after long last of everyone requesting the feature, I've added support for customizable menus!!

Currently there are 5 actions of which you can use within the menu, but I can easily add more upon request and I'll listen to any requests.

If you have any questions or any wishes, please feel free to ask in the discord.
----------, Sep 9, 2022

Hopefully this update should fix the problems regarding the UPC hook not working correctly.
----------, Aug 14, 2022

This version should fix the bug with mines being deleted
----------, Jul 27, 2022

I've had some reports of there being a bug with the expansions where it would ignore the border wall material when expanding and just carry on sorry for this it was a very small issue. Also this version fixes the mine region not saving the correct locations.
----------, Jul 25, 2022

I've had reports that some commands couldn't be executed by the console, this update should fix the bug.

The commands likely affected were as follows:

  • /pmine expand
  • /pmine upgrade
Thanks,

Kyle :) (y)
----------, Jul 22, 2022

I've added some general fixes for when the mine reaches the border then it'd upgrade to the next type automatically. You can turn this off by disabling it via the borderUpgrade option in the config.

This also fixes the bug of when the mine wasn't filling the full region after a restart.
----------, Jul 21, 2022

I've added a bunch of small fixes into this update what makes the plugin work even better than before!

Please let me know if there's any more problems :)
----------, Jul 20, 2022

When the mines expanded before the worldguard region wouldn't expand for the mine, but this should now be fixed.

Sorry for that issue!
----------, Jun 30, 2022

This version should fix the worldguard regions for when the mine expands and it not updating to allow for the new region.
----------, Jun 30, 2022

  • Fixes the issue where console couldn't execute certain commands, sorry about that!
  • Also removed some old debug code
----------, May 30, 2022

Sorry for posting two updates so quick, this should be all :)
----------, May 28, 2022

I didn't realise I was using < instead of > for the world height check and it was causing issues, my apologies!
----------, May 28, 2022

  • Hopefully fix blocks being spawned in weird locations
  • Add a way to replace mines in storage without logging to console
  • Allow for people to change the Y level stuff
  • Change the full region name because @Drawethree can't use flags for checks....
  • Fix the reset percentage task
  • Added a /pmine debugpaste command (Will be updated with more things overtime)
  • Fixed some commands
And a bunch of other things!!!!

Thanks,
Kyle :) (y)
----------, May 27, 2022

  • Redone loading of mine types
  • Basic SQLite support
  • Fix the Stream path file loader for the mines
  • Redone the expand functionality allowing for you to expand your mine
  • Allow for you to stress test mine resetting (Expression Support)
  • Added a dev command to list the mine types
  • Added a dev command to list all the mines in the storage
  • Add a way to purge all the mines (For end of seasons?)
  • Added a new config option mineYLevel to set what what Y level mines are pasted at
  • Added a new config option onlyReplaceAir to allow for only air to be replaced during the reset
Added new events (PrivateMineCreationEvent, PrivateMineDeleteEvent,
PrivateMineExpandEvent, PrivateMineResetEvent,
PrivateMineUpgradeEvent)

  • Fix non-FastAsyncWorldEdit installs
  • Fixed the auto reset function not happening
  • Fixed the expand function
  • Added some new methods into MineTypeManager
  • Tidied up MineData & MineDataBuilder
Please report any issues into the discord server

Thanks,
Kyle :) (y)
----------, May 18, 2022

I've added a few features in this update:
  • AutoSell Support
  • UltraPrisonCore Support
  • Re-added tax things
  • FastAsyncWorldEdit mine creation and resetting
Thanks,
Kyle
:) (y)
----------, Apr 29, 2022

  • Can now give players a mine upon first join
  • Can now charge players for upgrades (Using Vault currency currently)
  • Allows for custom WorldGuard flags (configurable per type)
And also changed a lot of things behind the scenes!!!! Please report any issues in the verified channel for the discord and I'll get it sorted.

Thanks,
Kyle :) (y)
----------, Apr 22, 2022

This is the absolute latest build to work out what's going on with the plugin, let me know if it works.
----------, Apr 16, 2022

Hey,

Super sorry for the delay in re-implementing this feature back into private mines,but I have re-implemented the mine upgrade feature back into the plugin it should work really good and also supports multiple blocks and such.

You also no longer need to have the default mine type name to "Default" my apologies for that mistake I had it for a debug thing at the start and forgot to remove it after all this time.

Thanks for being patient and waiting for this update,

Kyle :) (y)
----------, Apr 4, 2022

I fixed a small bug where the mine file wasn't being fully deleted so you'd still be able to reset the mine and such even after deleting the mine and starting the plugin back up
----------, Mar 29, 2022

Hey,

Long time since I've wrote a update log sorry for the delay but I've working my absolute hardest to make this update one of the best updates I could possibly release.

I've heard feedback of people saying the mine creation time was causing problems and lagging out peoples machines and I'm extremely sorry to hear this and I've worked extremely hard on improving this. I was iterating the whole schematic before every single time the server loaded up and I get it that was a terrible mistake on my behalf and I'm sorry for that. This has been resolved in this update. It's all cached now and uses relative locations.

I've reworked the storage part of the plugin also to make sure that all loads in an async fashion so that should cause less issues on the server.

I've dropped support for lower than 1.13 because those versions are stupidly old and everything left in there is deprecated please just update 1.16 is a fantastic version to use in my opinion but if you wanna go full update then go for 1.18

If you have any problems or any suggestions then please don't be afraid to ping me in the #verified channel of the discord server. I am fairly active in the discord. I do have work but apart from that I will be fairly active and will respond to any questions.

Thanks for taking the time out of your day to read this.

Kyle
----------, Mar 29, 2022

Loading the mines in a more friendly way by loading it asynchronously
Working on a RevAutoSell hook
Fix the line chart hopefully (for bstats)
----------, Mar 7, 2022

Please check the following link to see what's changed, I can't keep up with all the changes I've made! :LOL:

https://github.com/UntouchedOdin0/PrivateMinesOOP/compare/ea37084...cb380c5
----------, Mar 6, 2022

Hey,

I've been reading discord every day and lsitening to what the community asks for and I have done a bunch of improvements to try and fix the lag issues with the mines. During the testing I've had some decent improvements in times of creating and interating the mines as listed below:

3ms,1ms, 1ms, 2ms, 1ms, 2ms, 4ms
The above timings are all in milliseconds this is a huge improvement from it freezing peoples machines for up to 30 seconds. I hope you enjoy this update as much as I do :)

If you could post your mine creation timings in #timings on discord it'll help me so much to work out if the plugin has improved.
----------, Feb 25, 2022

This is a sort of Quality of Life update of which should fix the lag spikes upon mine creation if this still persists after this update please let me know!
----------, Feb 12, 2022

I've wrote a few bug fixes and also fixed FAWE for sure this time hopefully, to see what's been changed check the github logs.

Thanks,

Kyle
----------, Feb 11, 2022

Sorry for so many updates, I didn't realise there were so many versions of FAWE. but hopefully this fixes it?
----------, Feb 10, 2022

I've finally added support for FAWE so you can paste your mines a lot quicker! :)
----------, Feb 10, 2022

  • Added FastAsyncWorldEdit Support
  • Fixed the error where you couldn't configure what the materials of which will be used for the template blocks.
----------, Feb 10, 2022

- Added a default schematic into the Jar
- Added a small check so depending on which server version you run it'll save the correct default schematic format
- Fixed XMaterial not working correctly, (Should fix material issues)
- Made distances between mines configurable
----------, Feb 5, 2022

I found a slight bug with the creation of the worldguard regions, please update to this version and remake any mines which were using the old version.
----------, Feb 4, 2022

With many many thanks to @MinecraftKnightz for helping with this update, he's managed to help me with adding support for private mines to work on all versions between 1.8 all the way up to 1.18!

If you're in the discord please give him some thank yous by pinging "Brister Mitten" he's the genius behind this update! :)

Many thanks,

Kyle
----------, Feb 4, 2022

Fixes the error
Code (Text):
[14:25:06 ERROR]: Error occurred while enabling PrivateMines v3.0.9 (Is it up to date?)
redempt.redlib.commandmanager.exceptions.CommandHookException: Command with hook name create has no method hook
        at redempt.redlib.commandmanager.Command.registerHook(Command.java:482) ~[?:?]
        at redempt.redlib.commandmanager.Command.registerHook(Command.java:474) ~[?:?]
        at redempt.redlib.commandmanager.Command.register(Command.java:449) ~[?:?]
        at redempt.redlib.commandmanager.CommandCollection.lambda$register$0(CommandCollection.java:37) ~[?:?]
        at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
        at redempt.redlib.commandmanager.CommandCollection.register(CommandCollection.java:35) ~[?:?]
        at redempt.redlib.commandmanager.CommandCollection.register(CommandCollection.java:47) ~[?:?]
        at me.untouchedodin0.plugin.PrivateMines.onEnable(PrivateMines.java:402) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugin(CraftServer.java:518) ~[patched_1.16.5.jar:git-Paper-794]
        at org.bukkit.craftbukkit.v1_16_R3.CraftServer.enablePlugins(CraftServer.java:432) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.loadWorld(MinecraftServer.java:599) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1074) ~[patched_1.16.5.jar:git-Paper-794]
        at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291) ~[patched_1.16.5.jar:git-Paper-794]
        at java.lang.Thread.run(Thread.java:831) [?:?]
----------, Jan 22, 2022

Main big changes

  • 1.18.x now supported!
  • Fixed some storage problems thanks to gecko10000
  • Hopefully fixed the upgrade system
To see all the changes, follow this link here it'll show all the changes I've been working hard on! :)

Sorry the update message wasn't long I've been working on a lot of things!

Thanks,

Kyle
----------, Jan 22, 2022

Test version to see if the upgrade system is fixed
----------, Dec 13, 2021

Wow, it's been a long time since I've been here...

This changelog will more than likely no where near summarize the amount of features I've put into this plugin because I've been working so hard on writing as many updates as I possibly can so please forgive me for not containing everything but feel free to ping me on discord if you want me to explain what I've done in any way.

First of all I'm focusing way more upon using world edit to create and handle mines but I still use redlib to handle a lot of stuff behind the scenes and redlib will not be going away any time soon because I've got so much built around it now.

Now onto the bit you're all interested in... the change logs, I'll put things in caps and bold so you can jump to sections of which you'll be interested in because you're not interested in everything and all this wall of text I've put so enough rambling here we go!

STORAGE

I've rewrote the whole storage section to make sure there's no more vanishing mines and all that, it all uses json so unless you actually delete a json file between reboots then there should never be any issues with the mines vanishing or anything but if you decide to go off and manually edit any of it directly in the file I will take no responsibility if it breaks. If it breaks when you didn't edit anything yourself then I'll be more than happy to help out!

UPGRADES

I've worked on the upgrade system to make it work the best I possibly can make it. The speed of upgrading is practically instant. The only time I think you can make it go slightly slow is if the mine is billions of blocks of which would be impossible in my opinion.

EXPANDING MINES

This is a feature of which I'm most proud of, this feature is currently in the very early testing phases to the point of I've only got a test message there but you can test out the function before it actually gets pushed as a fully fletched update and I'm sure you'll all enjoy it!

INVENTORY

I've been working on making the inventory the best I can, a lot of the buttons are not working, the only ones what are not working are the ones with no lore by default this will come in a very near update I promise. It won't take as long as the other updates to come out.

CONCLUSION

I think that rounds up this huge update, it comes with so many new cool features I can't wait to see what you all do with it! As usual if you have any questions or you need help please contact me on discord in the support server.

Many thanks,

Kyle :)
----------, Dec 12, 2021

Only use if advised to
----------, Nov 15, 2021

Hey,

Sorry for taking so long with this update but it was a big one for me. I've finally got around to learning how some of the worldedit api works enough to allow me to add support for creating mines using schematics!!!

It's very simple to use schematics just set the useWorldEdit option to true and then in the mine types where you pass the file through instead of putting a dat file for the redlib you can now pass through the worldedit schematics. I've only tested with the sponge schem files and the FastAsyncWorldEdit version 1.17 and then it should be able to paste the files much faster.

If you have any problems please feel free to reach out to me on the discord server.
----------, Nov 15, 2021

This update should fix the bug with the worldguard regions not being changed correctly whenever the mine upgraded sorry for anyone who's had problems with this.

If you have any questions or need support feel free to join the discord server
----------, Oct 31, 2021

Hey,

I've had an amazing suggestion by @Minebowl to add a /pmine settype <username> <type> so I went ahead and done it! I hope this helps out a bit and if you have any questions or you need any support please join the discord and feel free to ask! :)
----------, Oct 30, 2021

Hey,

I've finally got around to adding support for the world edit wand tool what allows you to create a selection using the actual world edit wand and then you export the structure using the private mines plugin what then makes a file of which RedLib (the library used to handle the backend of the plugin) and also PrivateMines can both use to create your mines.

To use the new feature follow the following steps

  1. Get a normal World Edit wand via //wand
  2. Make your two point selection with the WorldEdit wand
  3. Once you have the region fully selected type the following command:
/privatemines create <name>

The name part of the command being the structure file name without the file extension on the end what'll end up being something possibly like "structure" or "newmine" and then once you type this command you'll find a new file waiting for you in the PrivateMines folder.

If you need any help with this new feature please feel free to reach out to me in the support discord.

Many thanks,

Kyle
----------, Oct 23, 2021

Quick Material Fix!
----------, Oct 1, 2021

Just a small change to try and add support for older versions. :)
----------, Sep 30, 2021

Hi,

Sorry for the huge delay between this update and the past updates. I won't come up with any excuse upon why I took so long to update the plugin,
I had to re-learn some of java the Object-oriented programming part of it (if you don't know what this it's easier to google it)

I have yet again completely rewrote the whole plugin I know what you're all going to say when I say this next part and I'm extremely sorry I
really am. You will need to re-generate your files backup any old structures and let it all generate again it'll allow it to work a lot better.

The new config allows a lot more flexibility this is an example of how the new format is in the config file

Test:
file: "structure.dat"
priority: 1
resetTime: 5
materials:
STONE: 0.9
COBBLESTONE: 0.1

I tried my absolute hardest to make the config as tidy as possible. With the upgrade system it will always the player a mine with the first type
listed in the mineTypes category

To upgrade a users mine you should use the command

"/pmine upgrade <username>"

This will then upgrade the specified users private mine if they have one else it won't do anything if the user is currently at the highest
mine type already then it'll silently stop trying to upgrade the users private mine and just log a message into the console.

If you have any suggestions for the plugin or if you have any questions regarding this new update please don't be afraid to join the discord
and give me a ping my username is UntouchedOdin0#1504 I always have it set as Invisible but I'm always willing to answer and questions or
any suggestions as soon as I possibly can reply! :)

Credits to Redempt for creating RedLib
Credits to Developer Den for helping me with this huge rewrite! :)

Many thanks,

Kyle
----------, Sep 29, 2021

This version contains a new version where it handles mine types slightly differently and also has some fixes in, an example of how I handle stuff is as follows:

Code (YAML):

#  Type1:                    - The top will be what it's called.
#    file: structure.dat     - This is the file of which the mine type will use
#    priority: 1             - This is the priority of the mine type (where it goes in the upgrade oder)
#    materials:              - The list of Materials, follow the order posted here
#      STONE: 0.9            - MATERIAL: (0.1 -> 1.0) - Value after the Material is the percent
#      COBBLESTONE: 0.1      - Example of a percent is 3.141592653
 
Please make a ticket if you have any questions.

By the way, this version has some debug messages in of which will help out with making sure everything is ok!

Thanks,

Kyle
----------, Sep 4, 2021

I've fixed up the upgrading mines feature, just gotta make it so blocks are changeable also
----------, Aug 26, 2021

Hey it's me again,

So I've fixed a bug with Citizens + Denizens not loading with Private Mines (my bad)

I've also decided to share with you lot a faster way to fill your mines and you get 4 different options to choose from depending on how fast you want to fill your mines.

They are as following
  • BUKKIT - Filling Speed (50k-60k blocks per second)
  • NMS_SAFE - Filling Speed (80k-90k blocks per second)
  • NMS_FAST - Filling Speed (1.7m-2.2m blocks per second.)
  • NMS_UNSAFE - Filling Speed (12.7m-14.1m blocks per second)
This should all be built into the plugin so no extra new plugins will be needed you just get speed.

PLEASE BACKUP YOUR CONFIG AND LET IT REGENERATE

There's a new config format of which I'm working on, please carry on using the "structureFile" config part for now and then we can worry about the mineTypes section at a later time. This'll be coming soon, I promise!

You can also change the materials in the mine using the materials list in the config, example being:

Code (YAML):
materials:
  COBBLESTONE
: 1
  STONE
: 5
 
If you have any problems at all please make a ticket in the discord server I'd gladly help you.
----------, Aug 19, 2021

I've changed over to a new lib for the mines filling please share in the verified channel what you think of it. It has few options:

  1. BUKKIT
  2. NMS_SAFE
  3. NMS_FAST
  4. NMS_UNSAFE
If you find any issues please share the full log and tell me how you caused the bug.

Thanks,

Kyle
----------, Aug 16, 2021

I've made it so it creates worldguard regions for the mines, they should work perfectly fine with UltraPrisonCore and other plugins like that. Please make a ticket in the discord if you need any help.

Thanks,

Kyle
----------, Aug 2, 2021

You can tab names with the sub-commands
You can disable the auto-reset of the mines
Please report any bugs or give any suggestions in the discord
----------, Aug 2, 2021

You can configure the file name using the "structureFile" configurable value in the config.yml (don't add the .dat please)
I've also removed some old unused code, as usual please make a ticket in the discord as I'd gladly give you support to fix any issues of which may occur.
----------, Aug 1, 2021

This should fix the following error, sorry for anyone who's encountered it.

Code (Text):
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/untouchedodin0/privatemines/PrivateMines has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
 
----------, Aug 1, 2021

Sorry for anybody who's encountered an error such as the one displayed below, this quick bug fix should sort it out! :)

[​IMG]
----------, Jul 31, 2021

I've added support for < 1.12
Please make a ticket in the discord if you have any problems and I'll help you as soon as possible!
----------, Jul 31, 2021

Sorry for such a quick upload I forgot to change a extra line.
----------, Jul 26, 2021

I've mainly moved more things over to XMaterial if there's any issues at all please don't hesitate to make a ticket in the discord server I will gladly try my hardest to fix the issue.
----------, Jul 26, 2021

In this update, I've mainly implemented a lot of bug fixes and also I've refactored the code to hopefully work better. I'd like to hear any input on if anything needs to be fixed / changed.

Feel free to join the discord server and make a tell me your thoughts on this update.

Thanks,

Kyle
----------, Jul 25, 2021

I forgot to add metrics to the plugin, my bad!
----------, Jul 19, 2021

Hi,

First of all I'd like to say a huge sorry for the delay in this being released trust me, I understand why you may
be unhappy with the delay. I've re-wrote the whole plugin from the ground up, the previous version I was working with
another developer to get the plugin created so I didn't know what most of the code was doing and that was a mistake
and I take that blame fully so I'm incredibly sorry for that. Right, onto the stuff you're actually here to know about
The Rewrite!

Change-log:

- Plugin no longer relies on WorldEdit it uses a new system called RedLib
- The issues with the mines vanashing has been fixed due to using a whole new file system
- This plugin has a whole new menu system, currently not customizable but I'll work on it, promise!
- Currently you can only have one structure at the moment and you need to put it in the plugins/PrivateMinesRewrite/schematics/ folder named "structure.dat", I'll work on it!
- Plugin should support single block and also multiple blocks if it doesn't let me know in the discord.

There's many many more things in this update but I can't write it all up because I'm terrible at writting up long things,
sorry! =(
----------, Jul 19, 2021

This update won't contain much differences but it does have support for 1.17
Also, I've reworked some minor things.
----------, Jun 12, 2021

Fixes the error

Code (Text):
[Server thread/ERROR]: [PrivateMines] [ACF] java.lang.NoClassDefFoundError: me/lucko/helper/Events
----------, Jun 5, 2021

I've had reports of errors what had things like this in

Code (Text):
[07:04:32 ERROR]: Error occurred while enabling PrivateMines v1.6.4 (Is it up to date?)
java.lang.NoClassDefFoundError: me/clip/autosell/objects/Shop
or
Code (Text):

Caused by: java.lang.ClassNotFoundException: me.clip.autosell.objects.Shop
 
Hopefully this quick fix should fix it if not, please ping me in the help discord and i'll gladly go out my way and try to write a fix.

Thanks,

Kyle
----------, May 31, 2021

Sorry,
I can't write a full on change-log due to posting this during a zoom meeting but you can check the changes out here.

Thanks,

Kyle
----------, May 27, 2021

bb9e6c5 - Fixes for the single block bug
99c1819 - Added Use-Upgrade-Commands
f444efd - Added a boolean to see if Upgrade commands should be executed or not.
5a78efb - Small fix for the PrivateMinesUpgradeEvent in the API.
2ebc51e - Hopefully fixed setMineBlocks in the API.
9be34bc - Fixes the dreaded "Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Map.get(Object)" is null" error
5cc5014 - Removed an unused method from the code.
305e385 - Remove unused variable.
403cdf5 - Added a null check make sure WorldEdit exists before getting the version.
3358a92 - Added some spacers and updated a @link in the code
1112ca8 - Added SuppressWarnings("unused") in the api's
de2f59b - Finally correctly formatting the message.
1039202 - Removed a unused import and suppressed a unnecessary warning.
6c6244d - Removed unnecessary ";"
6765793 - Made the schematicTree final
And fixed some other minor things.
----------, May 25, 2021

I've had reports of the GUI system not working on newer versions so I've wrote a fix for that. It should now support the new system. If it doesn't work on lower versions please let me know I'll write a legacy version but I don't know why you're still on old versions
----------, May 20, 2021

Oh boy, where do I start?

I've managed to fix the double spawning of NPCs. Sorry for anyone who had this issue.
I've cleaned up the code (ALOT)
I've added a ton of checks to try and stop errors.
I've updated the /privatemines command slightly
There's no longer an option to choose fastMode or not as I saw no point. It's now fast mode all 'round.
The /pmine menu sometimes generated a new mine when they didn't have one already this should've been fixed now.
Updated the mine upgrade system (more cleaner)
I also think I fixed the reset delay if anyone had a bug with that. Sorry!
I also added bStats support. You can toggle this off if ya want but it helps if you keep it on. :)

Feel free to join our discord if you have any questions or issues.
----------, May 19, 2021

I've finally got around to reworking the upgrade system for the Private Mines. This allows you to type /pmines upgrade and it'll upgrade your Private Mine.

I've also added a new method into the API

Also, there's better exclamations on why the errors occurred.

Code (Java):
upgradePlayerMine (Player player ) ;
This allows you to upgrade a specific players Mine!

Thanks,

Kyle :)
----------, May 14, 2021

I've had reports of mobs spawning in the private mines, hopefully this update fixes that.
----------, May 7, 2021

In this update, I've reworked how the NPC's are created and managed and also I've fixed some of the bugs what have been occuring. If you find any bugs or if you have any questions please don't hesitate to join the discord and ping me (UntouchedOdin0) I'll be more than happy to help fix any bugs what you may find and also I'll be happy to add updates! :)
----------, May 6, 2021

This update doesn't bring any visual updates as I know of just re-done a bunch of code more updates will come in the following days

I will not take responsibility for any data lost in this update due to it being a beta update
----------, Apr 28, 2021

As per popular request, I've added support for UltraPrisonCore.
PrivateMines will still support AutoSell!

Please contact me regarding any problems found before leaving any
reviews I'm more than happy to help fix any issues for you instead
of you putting a bad review.
----------, Apr 26, 2021

- Added support for single blocks
- Added support for multiple blocks
- Added a auto-updater
- Added a lot more API methods
- Added a feature to purge all mines (be careful this will delete ALL mines)
- Added /pmine setstyle <player> <style> - Changes the block style
- Added Block-Styles into the config.
- Allows you to enable and disable fast mode

- Added new placeholders for the mines menu gui

- %player% - Gets the mine owners name
- %block% - Formatted single block
- %blocks% - List of blocks in the mine
- %blocksformatted% - Formatted list of blocks in the mine (WIP)
- %tax% - Gets the mine tax

- Allows the sell command to be changed

- Fixed players being able to untrust themselves from their own mine
- Changed the Sell-NPC Default block to White Wool
- Limited reset styles to Slow & Fast until I can work out how to do fancy reset styles
- Closes inv after changing reset style
- Caches the players who are online, should save a tiny amount of time
----------, Apr 20, 2021

Resource Information
Author:
----------
Total Downloads: 456
First Release: Apr 17, 2021
Last Update: Jul 1, 2024
Category: ---------------
All-Time Rating:
39 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings