Commit Graph

58 Commits

Author SHA1 Message Date
Paldiu
0cccf50a85 1.4.0 Update
Feature Update:
- SQL Support (MySQL, REDIS, SQLite)
- Global Verbosity Control
- Reimplemented Experimental OreVein
2024-04-15 21:17:10 -05:00
blakehamiltons
cd2c90dc7a
Merge pull request #3 from blakehamiltons/main
Refactor OreVein class for better functionality and readability
2024-01-24 16:26:01 -05:00
blakehamilton
74cbcbcdb0 Refactor OreVein class for better functionality and readability
- Improved the getOresInArea method logic to correctly collect all ore blocks in the specified area.
- Used collect(Collectors.toList()) instead of toList() for compatibility.
- Enhanced formatting and indentation for better code readability.
- Updated comments and removed unnecessary code.

Tested the changes to ensure proper functionality.
2024-01-22 10:30:57 -05:00
Paldiu
447e1ba391
Update README.md 2024-01-18 19:14:38 -05:00
Paul Reilly
c4e29ff728 Update for 1.20.3
- Added verbose entry to the Player configuration files. Player configuration files will need to be regenerated. Please make sure to make backups of all configurations before regenerating configuration files.
- Fixed a bug with the hide feature; now, any entity within a 25 block radius will automatically lose target of the player when their luck activates while sneaking.
- Removed the vein-mining feature as it is unstable and non-functional. A fix and/or replacement will be implemented in a future update.
- Updated supported version to 1.20.3
- Adjusted Logging methods.
2023-12-07 20:38:47 -06:00
Paldiu
32a9435e30 Fixed stream error when triggering OreVein effect 2022-06-15 11:23:54 -05:00
Paldiu
d282c2e982 Revert "FeelingLucky v1.3.0"
This reverts commit 0ad60075da.
2022-06-15 11:17:04 -05:00
Paldiu
0ad60075da FeelingLucky v1.3.0
This update will entail providing spigot support.
This is currently incomplete.
2022-06-15 09:35:35 -05:00
Paldiu
661b7bd6a7 Removed deprecated "new Double" call. 2022-06-15 08:38:42 -05:00
Paldiu
639bf09e48 Merge branch 'main' of https://github.com/SimplexDevelopment/FeelingLucky 2022-06-15 08:34:22 -05:00
Paldiu
8b3486a269 Update v1.2.1
Changed version to 1.2.1
Added codacy analysis workflow.
2022-06-15 08:34:15 -05:00
Paldiu
94b6067f97
Update README.md 2022-06-15 08:30:09 -05:00
Paldiu
0b07bd9da2 Minor Update 1.2.1
Adjusted the Luck class to reflect:
- SplittableRandom has been replaced with SecureRandom in favor of entropy-based pseudorandom calculations compared to pseudorandom calculations based off the system time.
- Adjusted the quickRNG to factor in whether the user has the luck potion effect, and to just apply the multiplier regardless of whether it is the default value.
- Also adjusted the values, as the original value still remained at 1024, whereas the randomized number criteria was a percentage of 100. Both the input value and the randomized number criteria now are percentages of 100, based off a total of 1024 possible points.
2022-06-15 08:28:53 -05:00
Paldiu
400687733f
Update README.md 2022-06-14 12:30:43 -05:00
Paldiu
c7a168ede1
Update README.md 2022-06-14 12:25:33 -05:00
Paldiu
fda004a3c8
Update README.md 2022-06-14 01:52:21 -05:00
Paldiu
0c82515f43 Update Release 1.2.0
Added a command to regenerate the configuration file.

This command can only be used from console.
2022-06-14 01:51:45 -05:00
Paldiu
c3d781f5b6 FeelingLucky v1.2.0 RC01 2022-06-12 00:12:06 -05:00
Paldiu
e6fe9e904e FeelingLucky v1.0 RC01
Added some more features, this will be now the full official release; this commit is release candidate 1.

Changelog:
- Added HideCheck, which will break the tracking of any mobs targeting the player.
- Added JumpBoost, which adds a little extra height to your jumps.
- Modified OreVein as it previously scanned for all ore types rather than the relative mined ore type.
2022-06-12 00:10:56 -05:00
Paldiu
c383b2c546
Merge pull request #2 from allinkdev/ver/1.19
Update version from "1.18.2" to "1.19"
2022-06-11 20:06:26 -05:00
Allink
94b9e12f45
Change version from "1.18.2" to "1.19" 2022-06-10 14:13:48 +01:00
Paldiu
eb80523edc
Update README.md 2022-06-08 00:39:45 -05:00
Paldiu
355b612732 Moved README up to Parent Directory 2022-06-08 00:39:13 -05:00
Paldiu
67734f3f89 Added README.md 2022-06-08 00:34:09 -05:00
Paldiu
4232842749 Merge branch 'main' of https://github.com/SimplexDevelopment/FeelingLucky 2022-05-20 16:54:37 -05:00
Paldiu
010fd76031 FeelingLucky v1.0.0 Release Clean Up
Cleaned up a bunch of stuff and made the luck stat unique to the plugin rather than using the values provided by minecraft.
2022-05-20 16:54:28 -05:00
Paldiu
c50b222586
Create codeql-analysis.yml 2022-05-20 16:20:24 -05:00
Paldiu
17f83bd9f2 FeelingLucky v1.0 RELEASE 2022-05-20 15:41:34 -05:00
Paldiu
10d7a4ed98 Minor Functionality Changes
- Modified SpecialRabbitsFoot
- Improved functionality of some code interactions
2022-05-17 13:34:25 -05:00
Paldiu
73e5be91eb Critical Bugfix
Fixed an issue where plugin was loading player configurations from ./plugins/FeelingLucky instead of ./plugins/FeelingLucky/players
2022-05-16 20:59:49 -05:00
Paldiu
07c4e5d50c Update LuckCMD.java
- Implemented PluginIdentifiableCommand
- Changed the way the command is registered in the command map.
2022-05-10 12:50:59 -05:00
Paldiu
e13ca55adf Version Change 2022-05-08 22:56:52 -05:00
Paldiu
fbd8d10461 Added metrics 2022-04-26 14:37:24 -05:00
Paldiu
a4d71b2c0b Minor Change
- Version change to Beta 1.0 RC01
- Adjusted the way the listeners are registered
2022-04-25 16:33:54 -05:00
Paldiu
bb9bdcdf03 [Beta] Snapshot v20220425
Changelog:
- Added RandomEffect, which gives a user a random positive potion effect on respawn or teleport.
- Implemented a class loading system with reflections to dynamically load all listeners.
- Adjusted rarity values in the config.yml
- Added a positiveEffects list to ListBox for RandomEffect event
- Adjusted the behavior of the BlockDrops event.
2022-04-25 16:30:38 -05:00
Paldiu
1bf2a818ec [Beta] SNAPSHOT {Bug Fix} Patch 0002
- Fixed command completions which still did not return correctly. They should now return correctly.
2022-04-25 13:40:18 -05:00
Paldiu
0488e1d6b1 [Beta] SNAPSHOT {Bug Fix} - Patch 0001
Changelog:
- Fixed an issue where the integrity checker for the main config would delete the entire data folder if the config was corrupted.
- Fixed an issue where the Rarity check was not working as intended; it would either return false if any Rarity other than NONE was set, and throw a new IllegalArgumentException if the switch clause exited with no return value.
- Fixed an issue where the command /luck reload -m did absolutely nothing.
- Fixed an issue where the proper command arguments were not being Tab Completed.
2022-04-24 19:54:40 -05:00
Paldiu
330fd278b7 Beta 20220422-SNAPSHOT
Changelog:
 - Added a configuration with editable rarity values and rarity types for the different events that can occur, to give the end user more control over how often players receive the effects.
- Modified listeners to use the respective Configuration values.
- Added the ability to reload a specific player configuration with /luck reload -p <player_name>
- Added the ability to reload the main configuration using /luck reload -m
- Added an integrity checker to validate the main configuration on boot.
2022-04-22 19:25:02 -05:00
Paldiu
6119180b0b Add VillagerInventory.java
Added the possibility to find a special rabbits foot on a villager when trading with a BUTCHER profession.
2022-04-21 09:54:36 -05:00
Paldiu
fe620952bc Add CooldownTimer
Added the Cooldown Timer for when a user uses a Rabbit's Foot. This restricts a user from using rabbit's feet consecutively by forcing a 30 second cooldown between uses.
2022-04-17 14:48:05 -05:00
Paldiu
5b1fb352bb Beta 20220417-SNAPSHOT
Changelog:
 - Reorganized the listener registration method to register the listeners in alphabetical order
 - Added the IllOmen effect, which will apply a -25% debuff to a user's luck stat when they have the Bad Omen status effect.
 - Added the ability for Guardian lasers to inflict negative damage to a users luck stat.
 - Added a cache to the Luck class to store user values in the event that they have the Ill Omen debuff applied.
2022-04-17 14:00:22 -05:00
Paldiu
b424a83062 Beta 20220416-SNAPSHOT
Changelog:
 - Changed the way classes interact with the PlayerHandler by using a getter instead of the actual field.
 - Added #isTool(Material) to ItemBuilder to check if an item is, in fact, a type of tool.
 - Created the UnbreakableTool listener which will grant the unbreakable status to a tool if a user is lucky enough.
  NOTE: This is a beta feature, and while it may remain included the way it works will most likely change.
2022-04-16 17:27:54 -05:00
Paldiu
077ed05d74 Remove Compiler Files 2022-04-16 16:25:07 -05:00
Paldiu
8e70e1de73 Beta 20220414-SNAPSHOT
Changelog:
 - Added the ability to fully mature crops when using bone meal
 - Added the ability to cheat death (Grants 1 half heart and between 2.5 and 5 points of absorption)
 - Added #info, #warn, and #err to MiniComponent, and utilized these across the board.
 - Switched the #color method to use org.bukkit.ChatColor instead of TextColor for accessibility.
 - Moved loading configurations and listener registration to separate methods.
2022-04-14 14:58:14 -05:00
Paldiu
899768819e Beta 20220411-SNAPSHOT
Changelog:
 - Added ExpBoost feature
 - Added Special Rabbit Foot, which increases a user's luck multiplier.
 - Added ItemBuilder and MiniComponent library classes
 - Removed Messages#builder in favor of MiniComponent
2022-04-11 10:29:18 -05:00
Paldiu
ea50032a89 Alpha 1.0 RELEASE - Patch 0003 2022-04-10 19:10:24 -05:00
Paldiu
057450c585 Alpha 1.0 RELEASE 2022-04-10 18:48:09 -05:00
Paldiu
d08b240ff9 RC04 - Patch 0002
Changelog:
 - Renamed LuckContainer#baseValue() to getValue()
 - Changed the way files save by using the Map#values() call instead of iterating the kvp's.
 - Made the actual percentage rng value round to the closest whole number before being checked.
 - Changed Luck#defaultValue() to getDefaultValue().
2022-04-09 08:38:42 -05:00
Paldiu
cbc57d5971 Alpha 1.0.0 RC04
Switched PlayerHandler access modifiers in favor of Dependency Injection.
2022-04-02 21:16:08 -05:00
Paldiu
247a2fafc0 Bug Fix 0001
**Changelog**:
 - Fixed a bug where the PlayerListener was not being initialized
 - Included the registration for the listener inside the constructor
 - Dropped static import in favor of class parent access
 - Added to the Luck method "setValue(double)" to automatically update the configuration file when called.
 - Adjusted Luck to utilize all 1024 units when calculating the boolean for rng percentage.
2022-04-02 09:00:40 -05:00