Commit Graph

509 Commits

Author SHA1 Message Date
BONNe1704
4f35f69960 Fix tabComplete method. 2019-07-24 14:34:33 +03:00
BONNe1704
9681494c1c Fix issue with wrongly applied world name lowercasing.
It looks like, exist plugins that keep capital letters in world names. That mean, it is not correct to lowercasing any id's.
To fix it, now, instead of lowercasing, challenges should be case insensitive.
2019-07-24 13:43:29 +03:00
BONNe
2a30185922
Create zh-TW.yml
From #152
2019-07-14 13:44:33 +03:00
BONNe
f475cc17be
Create zh-CN.yml
From #152
2019-07-14 13:43:44 +03:00
BONNe
39bd3cbec9
Update AnvilGUI api. 2019-07-13 19:31:12 +03:00
BONNe
cfad9150c7
Increase max value to order number
Previous 54 was a limitation of slot count. Remove it as it is redundant.
#146
2019-07-08 20:30:34 +03:00
BONNe1704
cd85a929d0 Fix issue when custom generated default challenges were overwritten and deleted. 2019-07-08 09:36:28 +03:00
BuildTools
52f9ee10bf Switch AnvilGUI to forked version. 2019-06-24 16:56:46 +03:00
BONNe
5e0f0510d9 Add admin reset command, that allows to reset player challenges (#141)
Fix some bugs in complete command that did not display challenge list.
Add new lang parameters in en-US and lv-LV.
2019-06-23 16:51:49 +03:00
BONNe
d4bcc1ee19 Fix admin message about setting up database objects. 2019-06-23 12:42:01 +03:00
BuildTools
b2f2c4a0bb Fix issue with corrupted world names after upgrading from 1.13 to 1.14. 2019-06-20 08:11:38 +03:00
BONNe
4527216dc2 Add ability for admins to complete challenge without gui. (#136) 2019-06-16 21:21:25 +03:00
BONNe
ca5ff504f0 Add protection code in TryToComplete task, to avoid negative numbers in max completion times. 2019-06-16 20:46:12 +03:00
BONNe
4e2181f524 Add ability to complete challenge multiple times at once via command. 2019-06-16 20:43:07 +03:00
BONNe
526fe9ce81 Update flag Registering to newest addon API. 2019-06-16 20:25:02 +03:00
BONNe
071c6ca83a Improve item description management. 2019-06-16 20:22:42 +03:00
BONNe
68a26e4d28 Fix unstackable reward item displaying (#135) 2019-06-16 15:59:41 +03:00
BONNe
a7f9e01d61 Fix issue when unstackable items flood challenge description (#135) 2019-06-16 15:57:05 +03:00
BONNe
1a70ee3ad8 Fix issue with Entity and Block selecting GUIs.
Items were not selected unless player use right click. Not it will work correctly.
2019-06-16 11:43:05 +03:00
BONNe
e0610c1800 Init 0.8.0 release 2019-06-16 11:42:07 +03:00
BONNe
4d9f817be6 Merge develop into master 2019-06-12 23:01:06 +03:00
BONNe
64f04829bd Update to BentoBox 1.5.0 release version. 2019-06-12 22:59:38 +03:00
BONNe
fc4f3ca0b6 Add AutoSaver task for Challenges Addon.
Remove WorldSave event listener.
2019-06-12 22:56:52 +03:00
nivcoo
daeaafd0b2 Added fr-FR translation (#131)
* Update ReadMe.

* Remove # symbol from development build name

* feat. add FR language

* feat. add FR language

* feat. add FR language

* Added nivcoo to the authors of this locale
2019-06-10 13:37:22 +02:00
BONNe1704
94c3fd9fa4 Add Complete Wipe button in AdminGUI that allows to remove all Challenges Addon data from database.
This request comes from Discord.

It also mention to format DiskDrive to avoid ability to restore database, but it is not implemented yet. Will be implemented in future releases.
2019-06-05 12:30:48 +03:00
BONNe
a9abe32dbe Add a lot null-pointer checks and console errors about loading null-value element from database. 2019-06-03 23:14:12 +03:00
BONNe
7914f315f4 Use codemc-nms repo. 2019-05-28 20:18:29 +03:00
BONNe1704
6a7b26afc0 Add missing Spigot Group Repository. 2019-05-28 16:37:16 +03:00
BONNe1704
66351b5776 Replace org.spigotmc.spigot to org.bukkit.craftbukkit dependency for Mojang Account shadowing.
Spigot close their server-side code.
2019-05-28 16:04:07 +03:00
BONNe
deab2d3530 Fix failing Tests.
These tests failed because in I added Server version check in ChallengesAddon class.
2019-05-24 09:39:40 +03:00
BONNe
330034ea8e Add SIGN_MATERIAL constant in ChallengesAddon which value depends on Minecraft version.
This will allow to drop down 1.14 branch.
2019-05-20 08:28:35 +03:00
BONNe
7e04f592ad Add custom admin message that informs about non-existing challenges in current world. 2019-05-19 13:29:02 +03:00
BONNe
c3f93fd797 Implement ability to select multiple Entities and Blocks in SelectBlockGUI and SelectEntityGUI. (#121)
Fix issue with unsplitted text in ManageBlocksGUI and ManageEntitiesGUI. (#121)
2019-05-18 00:01:03 +03:00
BONNe1704
413429a091 Merge remote-tracking branch 'origin/develop' into develop 2019-05-16 10:30:46 +03:00
BONNe1704
9704ed32aa Fix issue when IslandTypeChallenges required blocks were cleared if completion was uncessesfull.
The issue was that it cleared wrong map. It must clear priority queue, but cleared required elements.
2019-05-16 10:30:01 +03:00
BONNe
3521495739 Fix issue when entities has not been removed on challenge completion (#118).
I forgot to populate entity queue :(
2019-05-14 09:55:34 +03:00
BONNe
9f8bf03708 Fix wrongly display message for required money in edit challenge gui (#119)
It showed required level instead of required money in element description.
2019-05-14 09:20:17 +03:00
BONNe1704
34ed09e768 Change json adapter factory to BentoBoxTypeAdapterFactory class. 2019-05-09 16:45:53 +03:00
tastybento
a25796613f Changes to fit new API for database transition. (#114)
Config files must implement the ConfigObject interface now instead of
DataObject. They no longer need to specify uniqueId.
2019-05-09 16:24:01 +03:00
BONNe1704
ff6e28b27e Init next release (for BentoBox 1.5.0) 2019-05-09 16:22:02 +03:00
BONNe1704
76b7580de3 Prepare 0.7.0 Release 2019-05-09 15:54:47 +03:00
BONNe1704
698473e747 Add Latvian lang file.
Address some eng file errors.
2019-05-09 15:50:14 +03:00
BONNe1704
9b8d7b3717 Update level addon dependency. 2019-05-09 12:34:50 +03:00
BONNe1704
218d952d92 Add es-ES.yml translation.
Thanks to SrAcosta.
2019-05-09 11:48:28 +03:00
BONNe1704
ec491284b6 Add missing Title for Choosing Game Mode gui. 2019-05-09 11:45:39 +03:00
BONNe1704
6c10fcdca9 Fix NPE when opening ChallengesGUI (#116).
Add code that removes challenges level from all its challenges, if level is deleted.
Add protection code that shows admins that something is not correct if challenge level is not in database.
2019-05-09 11:22:01 +03:00
BONNe1704
dd56842dca Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	src/main/java/world/bentobox/challenges/tasks/TryToComplete.java
#	src/main/resources/locales/en-US.yml
#	src/test/java/world/bentobox/challenges/tasks/TryToCompleteTest.java
2019-05-09 10:54:32 +03:00
BONNe
c8088f275d
Rework TryToComplete. (#109)
* Rework TryToComplete.

Implement ability to complete challenge multiple times at once.
To do it, I split everything in checking/removing/rewarding steps.

In checking step, it calculates if it is possible to complete with minimal requirements and then calculates maximal repeating factor.
In removing step, it removes everything that is necessary.
In rewarding step, it give rewards by necessary factor (multilayer).

I rework item/block/entity removing as factors may be influenced at the last element, so I improve everything by memory usage. Create necessary sets/lists/queues for faster access to already collected items.

* Add method that returns removed items, if somehow algorithm did not manage to remove all items.
Fix issue when removeItems method did not merge ItemStacks as they had different item amount.

Return and fix TryToCompleteTest.

* Implement Multiple Challenge Completion command and GUI. (#73)

/[gamemode] challenges complete [number] allows to complete challenges [number] amount (or less if not enough items)
Via GUI users can right click on challenge and if it is repeatable, then it will open AnvilGUI that accepts only numbers as input.
2019-05-06 12:10:02 +03:00
BONNe
d9486bbbdb Fix issue when Import Default Challenges Button did not work 2019-05-05 23:54:35 +03:00
BONNe
f18c8d0dff Remove NBT editing via NMS.
Use Dummy Mojang profiles with custom skulls, instead of editing NBT with NMS.
This will work on all versions instead of just with correct NMS hacks.
2019-05-05 17:10:10 +03:00