Commit Graph

35 Commits

Author SHA1 Message Date
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
Paldiu
ffdafda69c Changed Project Settings 2022-04-01 07:51:58 -05:00
Paldiu
0383bfeaf3 Alpha 1.0 RC02 PATCH 01
Fixed an issue where initializing a new PlayerConfig would attempt to read a non existent value from the Luck Container list.
2022-03-31 19:42:18 -05:00
Paldiu
93ee1e2c43 Alpha 1.0 RC02
Changelog:
  - Some visibility changes (Developers)
  - Added the Luck command.
  - Added some extra backend shortcuts
2022-03-31 19:30:10 -05:00
Paldiu
73affcf4c4 Alpha 1.0 2022-03-27 19:21:35 -05:00
Paldiu
6d211490c0 more qol 2022-03-24 17:21:12 -05:00
Paldiu
31bbf6622a QOL CHANGES 2022-03-22 14:57:44 -05:00
Paldiu
831913c668 Updates 2022-03-20 13:09:24 -05:00
Paldiu
dcd7f7401c Initial commit 2022-03-17 16:16:52 -05:00