Commit Graph

309 Commits

Author SHA1 Message Date
Daniel Saukel
768064e6e9 Global protection and player handler rewrite
These two important rewrites are tied together, so I did a lot of the
player handler rewrite in this commit, even though it mainly tackles the
protection rewrite.
* Rewrote global protections
* Deprecated methods which are subject to change
* Protection system is now waaay more dynamic and provides an API
* Began to rewrite player handling
* Still uses DPlayer in many cases where e.g. DEditPlayer should be
used!
* Added class to represent the data file
2016-03-27 21:28:55 +02:00
Daniel Saukel
5490b99bf3 Do not suppress warnings 2016-03-23 12:03:39 +01:00
Daniel Saukel
ec90e59297 Added lives support for game types 2016-03-22 22:43:39 +01:00
Daniel Saukel
4163fc8905 Make title message configurable 2016-03-22 21:50:28 +01:00
Daniel Saukel
11a04feb11 Add check for GameSigns 2016-03-22 12:17:32 +01:00
Daniel Saukel
a3ee3c698c Fix 1.9 inventories (needs BRCommons update for version check) 2016-03-22 12:17:12 +01:00
Daniel Saukel
26e3b1ee27 Save config on initialization 2016-03-17 15:04:45 +01:00
Daniel Saukel
312844be78 Overhaul: Maven 2016-03-01 22:08:07 +01:00
Daniel Saukel
72c0fd6152 Added GameSign 2016-02-24 22:04:20 +01:00
Daniel Saukel
675492b667 Fixed some modifiers 2016-02-24 22:00:30 +01:00
Daniel Saukel
b0324f9da8 Fix rewards 2016-02-20 14:45:31 +01:00
Daniel Saukel
f58063a3b2 Continue new game type feature 2016-02-20 14:25:01 +01:00
Daniel Saukel
d519578dae Add friendlyFire option to GameTypes 2016-01-31 00:44:26 +01:00
Daniel Saukel
8b35d91f75 GameType: TEST 2016-01-31 00:43:44 +01:00
Daniel Saukel
7dc26d5805 Game type API 2016-01-29 23:59:33 +01:00
Daniel Saukel
69e1230690 Advanced groups 2016-01-27 20:19:28 +01:00
Daniel Saukel
db96fb4014 :C 2016-01-21 13:55:49 +01:00
Daniel Saukel
73bb925df2 Fix cast exceptions 2016-01-16 20:55:46 +01:00
Daniel Saukel
2fc7e841e1 New structure 2016-01-16 14:28:11 +01:00
Daniel Saukel
e013d5fd3a Added simple PvP rules 2016-01-16 11:30:03 +01:00
Daniel Saukel
2ac0ad1b5c Check if world exists before teleportation 2016-01-16 11:29:06 +01:00
Daniel Saukel
88ace289bd Copy edit world before saving sign data 2016-01-16 11:09:46 +01:00
Daniel Saukel
4391330bc7 Improve protection management #28 2016-01-14 20:14:20 +01:00
Daniel Saukel
8847809c20 Fixed rewards and finishing a dungeon 2016-01-14 18:46:27 +01:00
Daniel Saukel
d7e4c09599 Added command whitelists 2016-01-14 18:06:04 +01:00
Daniel Saukel
970e351c5f Fixed /dxl edit only working with permission even if the player is invited 2016-01-14 17:14:36 +01:00
Daniel Saukel
9d78ce5db1 Implement requirement, reward and trigger events 2016-01-13 00:28:47 +01:00
Daniel Saukel
6d0b6f3b6e Implement world events 2016-01-13 00:11:53 +01:00
Daniel Saukel
6157df9703 Implement DPlayer events 2016-01-12 23:55:20 +01:00
Daniel Saukel
80ebdeeda3 Implement DMobDeathEvent 2016-01-12 22:53:33 +01:00
Daniel Saukel
6ec3808a25 Implemented DGroup events 2016-01-12 22:39:52 +01:00
Daniel Saukel
418e2cb075 Requirement / reward systems now work flawlessly :) 2016-01-12 21:34:05 +01:00
Daniel Saukel
e6ebee2d27 Improve screen message util 2016-01-10 16:54:23 +01:00
Daniel Saukel
262eceabfa Minor fixes for chest & ready signs 2016-01-10 16:53:44 +01:00
Daniel Saukel
ffbaac5bb3 Continue new APIs and their implementation 2016-01-10 16:53:13 +01:00
Daniel Saukel
ce4ddae39f Load triggers 2016-01-10 16:50:59 +01:00
Daniel Saukel
89d2f50055 Implement GameWorldStartEvent 2016-01-10 16:50:45 +01:00
Daniel Saukel
83a2f3058d Changed and added some of the new events 2016-01-10 16:50:05 +01:00
Daniel Saukel
1499f71a28 Fix possible bugs with test & play commands 2016-01-10 16:48:58 +01:00
Daniel Saukel
3c80c7635f Fix NPE in /dxl list 2016-01-10 16:48:18 +01:00
Daniel Saukel
0746d836b3 Added some events (not implemented yet) 2016-01-03 00:40:38 +01:00
Daniel Saukel
d15b8a323c Added API for rewards and requirements 2016-01-02 23:10:49 +01:00
Daniel Saukel
374e8b20ea Added APIs for rewards and requirements 2016-01-02 23:07:51 +01:00
Daniel Saukel
8c1b6cf8a9 Merge pull request #29 from DRE2N/TriggerAPI
Add API for trigger (not fully implemented)
2016-01-02 18:26:32 +01:00
Daniel Saukel
4c7d0c91f1 Fixed some message bugs
Now ready for a release :)
2015-12-31 16:12:57 +01:00
Daniel Saukel
3d7c18a327 Fixed group leave bug 2015-12-31 16:12:35 +01:00
Daniel Saukel
87336aa6df Add API for trigger (not fully implemented) 2015-12-30 20:28:28 +01:00
Daniel Saukel
b36be75a57 Improve multi version code & #21 2015-12-30 17:15:08 +01:00
Daniel Saukel
30096fe166 Fix CommandSign 2015-12-29 21:21:46 +01:00
Daniel Saukel
930045c263 Update to CommandsXL 2.0 2015-12-29 20:42:11 +01:00
Daniel Saukel
41e5a05f93 Permissions are now defined in the plugin.yml 2015-12-29 17:02:53 +01:00
Daniel Saukel
c38d0dfc4a Added /dxl break command
+ Some minor improvements
2015-12-29 16:16:13 +01:00
Daniel Saukel
f4bd3d579a Minor code changes 2015-12-28 22:54:11 +01:00
Daniel Saukel
f9e616b3cf Rewrote message system 2015-12-28 17:46:52 +01:00
Daniel Saukel
231dfff5c3 Added broadcastMessage() method to MessageUtil 2015-12-28 17:46:19 +01:00
Daniel Saukel
8a63006167 +DGroup#sendMessage(); Fixed NPE on quit 2015-12-28 14:54:06 +01:00
Daniel Saukel
47e21e92f5 Made MessageUtil a littlebit cleaner 2015-12-28 01:38:50 +01:00
Daniel Saukel
9ac6d4b670 Remove @SuppressWarnings("deprecation") because the methods aren't deprecated anymore 2015-12-28 01:38:19 +01:00
Daniel Saukel
4c7b97356a Fix freeze bug at a new floor 2015-12-28 01:37:46 +01:00
Daniel Saukel
0b0e676733 Bugfixes
Variable names, unlimited mobs and a group sign bug
2015-12-27 19:27:55 +01:00
Daniel Saukel
0cc9a28f4d Fix group signs not loading correctly
...and minor further fixes.
2015-12-27 14:07:30 +01:00
Daniel Saukel
a018664102 Continue overhaul
This commit includes the PlayerListener and a bugfix in onJoin at
servers without Vault.
2015-12-25 15:48:11 +01:00
Daniel Saukel
56f98e6826 Continue rewrite (including sign system rewrite) 2015-12-25 01:30:23 +01:00
Daniel Saukel
e0a87dd2ac Made Vault soft dependency only 2015-12-23 21:39:05 +01:00
Daniel Saukel
ebd644afe7 Fix NullPointerException 2015-12-22 14:22:36 +01:00
Daniel Saukel
df8e45a8b4 Send dungeon and map name on enter 2015-12-21 22:27:53 +01:00
Daniel Saukel
c8708e8bc8 Support for color codes in the treasure inventory title 2015-12-21 22:26:40 +01:00
Daniel Saukel
0a43be0973 Removed a debug message 2015-12-21 22:26:06 +01:00
Daniel Saukel
a78d0d610d Multi floor support (bugs may occur) 2015-12-21 21:00:26 +01:00
Daniel Saukel
cf17fcf32c General cleanup
Finished to large extent. Including:
- Replaced many field references with getters and setters
- Replaced many "if (...) { if (...) {" blocks with "if (!...) {return}"
to clean up the code a littlebit
- Changed package naming to "io.github.dre2n"
- Rewrote the command system
- Rewrote the lives system
- Rewrote the permissions system to use SuperPerms instead when possible
- Rewrote the multi version handler and added code to support Minecraft
1.9 (obviously untested)
- Added CommandsXL command signs
- Renamed "dungeons" folder to "maps" and prepared a bit more for the
upcoming multi floor support
- Bugfixes
- ...and a looooot more
2015-12-12 21:31:43 +01:00
Daniel Saukel
c98e52a925 Fix onDeath 2015-09-20 17:18:57 +02:00
Daniel Saukel
56c3e982ba Fix null check position in PlayerDeathListener 2015-09-10 14:49:51 +02:00
Daniel Saukel
9fcdba3d1c Fix #13 2015-09-07 18:15:43 +02:00
Daniel Saukel
39179b1eec Fix ClassCastException when arrows are fired at MythicMobs mobs 2015-09-06 20:26:15 +02:00
Daniel Saukel
2fe1c9d28a Fixed NPE in /dxl leave 2015-08-29 15:44:13 +02:00
Daniel Saukel
cabbb35775 Added MythicMobs compatibility to mob trigger 2015-08-28 21:56:29 +02:00
Daniel Saukel
b4599e74f3 keepInventory split 2015-08-26 21:35:15 +02:00
Daniel Saukel
0dc20b271b Small fixes / improvements concerning lives 2015-08-12 20:16:08 +02:00
Daniel Saukel
c8a9b510d4 Split keepInventory (WIP) 2015-08-12 17:05:53 +02:00
Daniel Saukel
c562999f11 Remove static modifier of economy 2015-08-12 15:02:06 +02:00
Daniel Saukel
77baa789e6 Improve play command
Added requirements
2015-08-11 19:34:27 +02:00
Daniel Saukel
5be72ab941 Improve economy support
-Fees
-Configurability
2015-08-11 19:33:31 +02:00
Daniel Saukel
2b7cf84e89 Added /dxl play command 2015-08-03 17:18:41 +02:00
Daniel Saukel
9bdab01b10 Added support for money rewards - untested! 2015-07-30 16:47:02 +02:00
Daniel Saukel
b9746d4526 Added support for 1.8.8 2015-07-30 13:55:24 +02:00
Daniel Saukel
29b9742df5 Set GM to creative in edit mode 2015-07-29 00:06:48 +02:00
Daniel Saukel
de514eff01 Added support for MythicMobs 2015-07-29 00:00:32 +02:00
Daniel Saukel
539bd42f40 Fix portal bug 2015-07-28 23:17:39 +02:00
Daniel Saukel
c8434dec64 Added UUID support for player data 2015-07-17 13:14:59 +02:00
Daniel Saukel
0faa6df7ef NMS handler
Works with v1_7_R3 - v1_8_R3.
2015-07-16 20:33:17 +02:00
Daniel Saukel
fa17562a09 Add UUID support for invited players
Should work fine. Not tested, though.
2015-07-16 00:26:46 +02:00
Daniel Saukel
f3c1c6791a Replaced Material IDs in many cases to fix deprecation warnings 2015-07-15 23:47:42 +02:00
Daniel Saukel
2256c13265 Fix /dxl edit (0.9.1) 2015-07-15 00:12:10 +02:00
Daniel Saukel
2a6b52c962 Full support for lives and keeping inventory in dungeons (0.9) 2015-07-15 00:11:51 +02:00
Daniel Saukel
57a177a8cf Full support for lives and keeping inventory in dungeons (0.9) 2015-07-14 18:36:34 +02:00
Daniel Saukel
efbc9decc1 Removed Spoutcraft support
Update 0.9, WIP
2015-07-14 18:30:52 +02:00
Daniel Saukel
20104bc304 Small fix, UUIDs are now stored as strings 2015-07-14 18:28:56 +02:00
Daniel Saukel
09cba5cc32 Update to 1.8.7 2015-07-14 18:27:46 +02:00
Daniel Saukel
30cd58a43a Update to 1.8 2014-11-29 12:13:40 +01:00
Tobi Schmitz
21652cf085 update to 1.7.9 2014-08-16 19:40:17 +02:00
unknown
50f772d142 update to MC version 1.7.5 2014-04-04 08:28:43 +02:00
Frank Baumann
eccf82b733 Delete corrupt saveplayer data 2014-02-24 15:00:50 +01:00
Frank Baumann
998dbe4873 Updated to 1.7.2, needs testing! 2014-01-23 09:05:23 +01:00
Grafe
780145cf78 Players without the "dxl.cmdedit" permissions canit use any commands while in edit modus. We need a better solution though (cmd blacklist/whitelist for edit and game) 2013-11-13 23:20:36 +01:00
Grafe
e1e94f5bfe Fixed teleport issue 2013-11-13 22:57:23 +01:00
Frank Baumann
a6b5adf1dc Fixed item-dupe bug after teleport 2013-10-28 15:54:21 +01:00
Frank Baumann
673ec0f122 Updated to 1.6.4 2013-10-28 15:49:10 +01:00
Sn0wStorm
fcc27ca35c English translation 2013-10-27 18:15:39 +01:00
Sn0wStorm
19548afbbc Prevent Rightclick on Interact Signs 2013-10-24 14:16:41 +02:00
Sn0wStorm
87c65104c1 Use Custom or Vault Names for Loot 2013-10-15 20:28:25 +02:00
Sn0wStorm
5f8c9c4bcd Also Disable Despawning for default Mobtypes 2013-10-15 19:05:34 +02:00
Sn0wStorm
12ac14db12 Fixed Mobs Suffocating when spawned near Blocks 2013-10-14 19:57:38 +02:00
Sn0wStorm
6249d80bca Disable Mob Despawning 2013-10-14 18:45:33 +02:00
Sn0wStorm
c26c224b9e Fixed Interact Signs 2013-10-14 17:53:24 +02:00
Sn0wStorm
bf9122d593 Removed wrong check for Place Sign 2013-08-07 14:23:30 +02:00
Sn0wStorm
57ad1356ec Fixed Redstone Delay Task not ending 2013-08-06 18:11:01 +02:00
Sn0wStorm
55becd07fc Sign Checkpoint now Player Specific 2013-08-05 19:49:42 +02:00
Sn0wStorm
b4bfb39b3d Solidify Trigger Recognition on Signs 2013-08-05 19:25:37 +02:00
Sn0wStorm
c82d45ced4 Extended Sign Redstone 2013-08-05 18:41:16 +02:00
Sn0wStorm
3ca26eff16 Added Use Item Trigger 2013-08-03 14:48:11 +02:00
Sn0wStorm
d0691d737a Added Trigger on Mob Death 2013-08-03 13:47:50 +02:00
Sn0wStorm
13bff0801e Use InteractTrigger for Ready, Leave, End 2013-08-03 03:01:22 +02:00
Sn0wStorm
565413c555 Added Sign Interact 2013-08-03 01:43:05 +02:00
Sn0wStorm
5704852bd4 Reworked Trigger System 2013-08-02 22:54:35 +02:00
Sn0wStorm
bad062d4e6 Id Files for other Plugins 2013-07-30 22:32:24 +02:00
Grafe
680d41acd2 Fixed npe in LanguageReader 2013-07-29 13:23:09 +02:00
TTTheKing
6ae99bfbca update for 1.6.2
Signed-off-by: TTTheKing <tttheking@hotmail.com>
2013-07-25 14:13:23 +02:00
Sn0wStorm
08a8b31da0 Leave on Disconnect 2013-06-27 18:43:05 +02:00
Sn0wStorm
f97db1ed19 /dxl escape: leave without saving 2013-06-27 17:48:56 +02:00
Sn0wStorm
800e97adc1 Some more Checks 2013-06-04 14:18:34 +02:00
Sn0wStorm
8baac3202c Copy the Edit-World when unloading 2013-06-02 15:55:48 +02:00
Sn0wStorm
02862b4336 Disallow /dxl test while in a Group 2013-05-26 18:03:33 +02:00
Sn0wStorm
ff69271216 Fixed some enchantments not setting mobs on fire 2013-05-26 17:15:47 +02:00
Sn0wStorm
3d8dceec87 Sign-Copy/Block-Info Tool 2013-05-25 18:48:17 +02:00
Sn0wStorm
021026febd Reset Exp when switching Class 2013-05-25 16:42:06 +02:00
Sn0wStorm
545688fbd8 Improve SIGNBlock: Material and Data 2013-05-25 15:09:49 +02:00
Sn0wStorm
7d9c0b032b Remove Potion Effects when switching Class 2013-05-25 15:06:07 +02:00
Sn0wStorm
1f80c8bed9 Save Active Potion Effects 2013-05-25 14:38:35 +02:00
Sn0wStorm
7d7f30f3e8 Workaround for glitched blockplace 2013-05-23 12:56:03 +02:00
Sn0wStorm
36d29224b2 Fixes a bug that makes a Dungeon unfinishable
Also Groupsigns wouldnt clear after playing
2013-05-18 10:49:24 +02:00
Sn0wStorm
1a770fd0f8 Configurable Requirements - Closes: #29 2013-05-10 19:24:32 +02:00
Sn0wStorm
0c39816f2b Equip Armor after Respawn 2013-05-10 15:03:07 +02:00
Grafe
b7bcacf32b Fixed chest signs not working properly
Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-09 17:01:41 +02:00
Grafe
cb663d787e Changed SIGNChest to recognise top and bottom chest
Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-09 16:34:10 +02:00
Grafe
746e3347c6 Readded save on leave
Fixes: #35 /dxl leave without saving 
Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-08 11:23:33 +02:00
Grafe
f2c72d9328 Fixed: Cave Spider don't attack you in daylight
Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-05 03:09:15 +02:00
Grafe
c03d57a963 Removed Debug logs
Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-05 02:36:54 +02:00
Grafe
00785cbcd5 Now kick player on uninvite
Updatet to 1.5.2

Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-05 02:35:37 +02:00
Grafe
992542ec0f Formatting
Signed-off-by: Grafe <flingelfrank@hotmail.com>
2013-05-03 16:06:01 +02:00
Sn0wStorm
9d34c0154a Moved onUpdate() to DSign 2013-04-13 15:18:18 +02:00