Commit Graph

30 Commits

Author SHA1 Message Date
BONNe
0317d057ab Implement Challenge Description into SelectChallengeGUI.
Fix issue, when reset and complete user challenges showed all challenges, instead of mission one.
2019-02-12 13:03:13 +02:00
BONNe
ab3275cd69 Rework Challenges Addon Language structure.
Reorganize structure.
Add missing translations.
Add colors.
2019-02-12 01:38:16 +02:00
BONNe
2bbb4e5c87 Fix issue when Challenges were not sorted by order number. 2019-02-10 17:00:30 +02:00
BONNe
dff3608aa3 Fix null-pointer crash in island reset event. 2019-02-08 21:54:08 +02:00
BONNe
55578ab88c Fix null-pointer crash when loading invalid challenge level. 2019-02-05 09:23:49 +02:00
BONNe
94a54c2156 Fix null-pointer issue in ChallengeLevel creation. 2019-02-05 09:13:39 +02:00
tastybento
8becd9c08b Fixed reference for levels too 2019-01-30 08:03:23 -08:00
tastybento
7e0487113d Fixes import challenge name presentation
Previously was showing [challenge] instead of the challenge name. I
could change the locale text, but this works too.
2019-01-30 07:52:00 -08:00
BONNe
4b2f974b56 Add correct language references. 2019-01-26 00:12:42 +02:00
BONNe
089f09dd45 Implement ChallengeLevel completion rewards.
Add methods isLevelDone() and addCompletedLevel() to ChallengesPlayerData object.
Add isLevelCompleted(), validateLevelCompletion() and setLevelComplete() to ChallengesManager.

Add check in TryToComplete after completing challenges first time.
2019-01-25 00:54:21 +02:00
BONNe
1375d13ae4 Remove unused import. 2019-01-24 23:28:54 +02:00
BONNe
53da2d67c7 Fix logical error that opens all levels instead of locking them.
WaiverAmount should be reducer, not from whom reduces.
2019-01-23 19:50:15 +02:00
BONNe1704
590b3f114c Rework ChallengesManager.
Implement all methods that were only placeholders.
Remove all unnecessary old methods.
Implement new methods in all classes.

User and Admin command now opens new GUI.
2019-01-23 17:30:30 +02:00
BONNe1704
1bc6bb2b76 Move LevelStatus to utils, as it is more Util then necessary class object. 2019-01-23 16:34:37 +02:00
BONNe1704
f75e4e080c Rework Challenge, ChallengeLevel and ChallengesPlayerData classes.
Challenge now will not know their world, as it is not necessary.
Remove ICON type, as it is useless.
Rename Level to Other, as under it will be not only level things.
Rename slot to order, as it was weird that users could define slot but not order. Order is easier to understand and use.

ChallengesLevel now knows all their levels.
Each challenge level only will be for single world.
Rename some variables.

ChallengesPlayerData was just adapted with changes in challenges and level classes.
2019-01-23 16:33:33 +02:00
BONNe1704
dba5a44461 Rename Challenges and ChallengeLevels classes. 2019-01-23 16:09:38 +02:00
BONNe
8711d7ad08 Rework Challenges Level Status checking.
In previous code challenges level status holds information for next level. It is fixed now, and current implementation allows to get everything that is needed.
2019-01-22 09:10:13 +02:00
BONNe
88f9d32862 Implement Reset and Complete Challenge for ListUsersGUI. 2019-01-19 18:29:08 +02:00
BONNe
c42652dde8 Implement add and remove challenge from challenge level panels in EditLevelGUI. 2019-01-19 18:02:19 +02:00
BONNe
1ecbac43bf Add last missing element in AdminGUI.
Now AdminGUI all icons are functional.
2019-01-18 19:26:03 +02:00
BONNe
870bf6d232 Implement ResetAllChallenges confirmation GUI to ListUsersGUI. 2019-01-18 19:13:39 +02:00
BONNe
13291b450c Implement ConfirmationGUIs in Delete operation for ListLevelsGUI and ListChallengesGUI. 2019-01-17 23:09:32 +02:00
BONNe1704
aaaf774952 Create ListChallengesGUI that allows to view all challenges and Edit or Remove them, depending on given mode. 2019-01-17 12:10:29 +02:00
BONNe1704
7060afd33d Create ListLevelsGUI class that allows to view all Levels.
It has 2 modes: edit mode and delete mode.
2019-01-17 12:04:16 +02:00
BONNe
818892e618 Create GUI that could edit challenges levels. 2019-01-16 22:23:12 +02:00
Florian CUNY
4c3026f3c1 Version 0.3.0 (BentoBox 1.0) 2019-01-05 11:17:03 +01:00
Florian CUNY
bf1890c392 Final harsh way to fix the ambiguity??? 2018-12-30 15:01:21 +01:00
Florian CUNY
11a86b1445 Using the hard way to fix the ambiguity 2018-12-30 14:53:58 +01:00
Florian CUNY
0041d07151 Fixed ambiguous lambda
IDEA wouldn't let me build the addon with the method reference :/
2018-12-30 14:42:54 +01:00
Florian CUNY
8f51ddb634 Moved everything to world.bentobox.challenges package 2018-12-30 14:31:26 +01:00