-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added setIfAbsent method to ConfigUtils * Minor kit update. * feat: kits config foundation * Revert "feat: kits config foundation" This reverts commit 90b140d. * Java 8 compactible * Resolved 1 review. #31 (comment) * Removed 1 unnecessary method. * Moved initialize kit config to after checking if kit is enabled. * Reformatted code * Removed setting name to the config file * Reformatted inventory section of configuration file for kits.yml * Reformatted armour section of configuration file for kits.yml * Added kit item handling, allowing items to be changed while giving kit items. * Update .gitignore * Updated snapshot version * Removed Kit.restock() method. * Removed Kit.restock() method. * Fix for a NPE * Fix for another NPE * Fix for another another NPE * Bumped snapshot version * Update MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/kits/basekits/Kit.java Co-authored-by: montlikadani <[email protected]> * Update for level kits. * Updated structure of kit loading and handling * Fixed getting the itemstack on display for the kit menu * Fixed default kit * Fixed clone kit * Merged suggestion on key_name. Co-authored-by: montlikadani <[email protected]> * Restructured code * Updated KitMenuHandler.java * Updated version * Modified how KitRegistry.handleItem is used. * Create HandleItem.java * Modified handleitem interface * Fixed optional configuration values * Update MiniGamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/kits/KitRegistry.java Co-authored-by: montlikadani <[email protected]> --------- Co-authored-by: montlikadani <[email protected]> Co-authored-by: Tigerpanzer_02 <[email protected]>
- Loading branch information
1 parent
7b70817
commit 71031a1
Showing
13 changed files
with
409 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...GamesBox Classic/src/main/java/plugily/projects/minigamesbox/classic/kits/HandleItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package plugily.projects.minigamesbox.classic.kits; | ||
|
||
import org.bukkit.entity.Player; | ||
import org.bukkit.inventory.ItemStack; | ||
|
||
public interface HandleItem { | ||
ItemStack apply(Player player, ItemStack itemStack); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.