Commit Graph

280 Commits

Author SHA1 Message Date
Intelli
d7d53bf9e2 Fixed NullPointerException while performing rollbacks 2023-07-08 13:57:36 -06:00
Intelli
b9309482cf Fix config typo 2023-07-08 13:52:00 -06:00
Intelli
410eba5559 Fixed Folia detection 2023-06-19 18:59:58 -06:00
ByteExceptionM
814ae4d9d5
Fixed NullPointerException when breaking/placing a spawner (#380)
* fix: Make Util#getEntityId parameter nullable

* Removed JetBrains Nullable

* Updated to follow contribution guidelines

---------

Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com>
2023-06-13 17:14:09 -06:00
Intelli
5d90f25211 Fixed logging and lookup issues after performing "/co reload" (fix #366) 2023-05-05 16:47:56 -06:00
Intelli
7825f61e45 Fixed NullPointerException when processing transactions for dyed armor 2023-04-09 13:19:02 -06:00
Intelli
7e49c95832 Fixed InventoryClickEvent exception when using Magma 2023-04-08 17:38:31 -06:00
Intelli
4b9e69c40f Fixed tree/mushroom growth not respecting config file when using bonemeal (...)
Fixed mushroom growth logging invalid data when using bonemeal
2023-04-06 13:55:57 -06:00
Sofiane H. Djerbi
f2934fd876
Fix Folia Teleportation (#349) 2023-04-03 18:15:16 -06:00
Intelli
f706bcf38e Added repeating task support to Scheduler 2023-03-31 16:43:27 -06:00
Intelli
fe6023450c Added missing methods to WorldEditBlockState 2023-03-29 19:11:48 -06:00
Intelli
ace870b930 Fixed item frame & armor stand logging under Folia 2023-03-24 18:10:11 -06:00
Intelli
7170e29452 Added support for Folia 2023-03-23 19:45:44 -06:00
Intelli
29345e2fb1 Use HumanEntity instead of Player when logging item crafting (fix #336) 2023-03-13 13:32:22 -06:00
Intelli
acb71a83a2 Fixed performLookup in API not returning valid block data (#308) 2023-01-03 12:17:09 -07:00
Intelli
5d6fd60d40 Added tooltips to lookups that display item names and enchantments (#67) 2022-12-21 19:11:34 -07:00
Intelli
20710a00de Added legacy component serialization support for signs in Paper 1.17+ 2022-12-20 14:37:22 -07:00
Intelli
5eabee6504 Added logging for dragon egg teleportation (#303) 2022-12-19 16:05:02 -07:00
Intelli
97eb0d777b Fixed incorrect amounts when dispensing items in Paper 1.19.3+ 2022-12-19 14:57:46 -07:00
Intelli
61847f2f8d Changed minimum required version to Spigot 1.15 2022-12-15 16:45:24 -07:00
Intelli
12f2000085 Fixed sign lookups displaying incorrectly when containing hex colors 2022-12-15 16:06:41 -07:00
Intelli
66e32c02bf Added player interaction logging for jukeboxes 2022-12-15 15:36:19 -07:00
Intelli
9da1343f7f Add logging and rollback support for jukebox transactions 2022-12-15 15:25:53 -07:00
Intelli
272ecae858 Fixed networking API connections being reset when reloading config
Credit: https://github.com/PlayPro/CoreProtect/pull/211/files#diff-1342ad937bb4d40012db93a64c02a41e92f2d6f35b069435f464af03aca69b00 (@vacla)
2022-12-10 14:12:33 -07:00
Intelli
2f28183261 Fixed NoSuchMethodErrorr when stopping server using Paper 1.14 2022-12-08 17:55:30 -07:00
Intelli
d82f92e06b Fixed tab completion not fully respecting player permissions (#226) 2022-12-08 17:35:03 -07:00
Intelli
ce5c1c50bf Added logging for player inventory transactions with allays 2022-12-08 16:24:53 -07:00
Intelli
026b9ce322 Fixed IllegalStateException when modifying containers using FAWE 2022-12-08 13:56:14 -07:00
Intelli
3cedc69205 Added extended support for mangrove blocks 2022-12-07 19:52:54 -07:00
Intelli
f4fe410141 Added logging and rollback support for tadpole age data 2022-12-07 19:14:44 -07:00
Intelli
e3b82858b4 Updated config description regarding donation keys 2022-12-07 18:56:18 -07:00
Intelli
990f90bab9 Rename #sculk to #sculk_catalyst 2022-12-07 18:38:40 -07:00
Ryan Huston
3b349c9d07
Add support for 1.19 specific features. (#239)
* Added support for 1.19 specific features.

* Removed leftover import from testing

* Added missing sculk materials for the catalyst and changed user field to #sculk

* Reverted version to v21.2

Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com>
2022-12-07 18:26:45 -07:00
Intelli
319d104622 Fixed NullPointerException when killing NPC (#261) 2022-12-07 17:49:50 -07:00
Intelli
9f8c2e8a2f Set Hikari maxLifetime to 5m, keepaliveTime to 1m (fixes #199) 2022-09-26 15:22:07 -06:00
dkim19375
b450f4d05a
Make version comparisons by long - Support WorldEdit 7.2.11 Beta 1 (#240) (Fixes #245) 2022-06-27 20:15:23 -06:00
Intelli
606c043bf0 Fixed NullPointerException when processing hopper transactions 2022-04-19 20:07:56 -06:00
Intelli
204456d6c5 Fixed queueLookup API method returning data in wrong order 2022-03-25 16:50:05 -06:00
Intelli
d34b60dc8f Improved database index handling 2022-03-24 19:16:57 -06:00
Intelli
070c5139e1 Fixed IllegalArgumentException when processing corrupt data 2022-03-24 17:11:58 -06:00
Intelli
acdfb3515b Fixed NullPointerException on disable if plugin failed to load 2022-03-23 18:56:53 -06:00
vacla
8cdf99429d
Added Networking API (#180)
* sent data to client

* send more data + debug + add docs + switch to handshake

* add diff between container and normal changes

* fix docs

* changes according guidelines

* make requested changes + cleanup

* correct documentation

* Improved Networking API documentation

* Moved networking API channel registration out of main class

* Cleanup

* Removed debug on chat/command lookups

* Optimized array merging

* Fixed ClassCastException when running console commands

* Skip preparing networking data if not a channel player

* Renamed "networking-debug" to "network-debug"

* Fixed failed handshake still registering players

* Adjusted networking phrases

* Renamed pluginchannel to channel

Co-authored-by: Intelli <contact@intelli.software>
2022-03-23 18:49:46 -06:00
Intelli
703d52bcc7 Changed inventory lookups to always require a username 2022-03-21 16:42:30 -06:00
Intelli
01ed2e9f97 Fixed NullPointerException when logging player projectile data 2022-03-21 15:12:58 -06:00
Intelli
5861570f8a Added post-rollback sorting for player inventories 2022-03-20 17:34:24 -06:00
Intelli
840eb3b4ee Added hidden "disable-wal" database option (default: false) 2022-03-20 16:37:20 -06:00
Intelli
92e030f3e8 Fixed WAL checkpointing not running on some systems 2022-03-20 16:29:51 -06:00
Intelli
d97f5482ee Fixed rollbacks/restores not correctly updating all blocks (#175) 2022-03-20 16:03:54 -06:00
Intelli
2763952dc6 Fixed deprecated display width warnings for MySQL databases 2022-03-11 18:16:16 -07:00
Intelli
3011aece46 Fixed inventory rollbacks not modifying player equipment slots (#170) 2022-03-11 17:20:52 -07:00
Intelli
64106e2d64 Fixed "user not found" error when performing inventory lookups/rollbacks 2022-03-09 15:32:18 -07:00
Intelli
975a030ebe Fixed NullPointerException when trading with wandering traders 2022-03-08 13:59:19 -07:00
Intelli
829f4e95d5 Fixed exploited end crystals logging phantom fire data (#164) 2022-03-08 11:59:39 -07:00
Intelli
dad51fc900 Removed deprecated item durability and art ID method usage 2022-03-08 08:42:06 -07:00
Intelli
40ee11f644 CoreProtect v21.0 release 2022-03-08 08:39:38 -07:00
Intelli
02dcc873d6 Added hidden "exclude-tnt" rollback option to exclude TNT blocks (default: false) 2022-03-07 16:39:21 -07:00
Intelli
2b96daa422 Change items crafted at crafting tables to log at table location 2022-03-07 15:25:27 -07:00
Intelli
d472879dec Added interaction logging for crafting tables, enchanting tables, smithing tables, and stonecutters 2022-03-07 15:16:03 -07:00
Intelli
c69ea79329 Fixed rollbacks not skipping processing for identical blocks 2022-03-06 17:05:18 -07:00
Intelli
83fc221bf2 Added logging for items traded with villagers (MC 1.18+) 2022-03-03 15:22:37 -07:00
Intelli
7bc95931d2 Added hidden "enable-awe" option for AWE logging (default: false) 2022-03-02 16:24:56 -07:00
Intelli
1be82111ed Changed entities killed via /kill command to log under #command 2022-03-01 20:34:12 -07:00
Intelli
a6869176be Minor refactoring in EntityDeathListener 2022-03-01 20:17:12 -07:00
Intelli
7c7fd200d2 Fixed all listener classes not being final 2022-03-01 20:05:13 -07:00
Intelli
6714ded600 Improved logging to skip unnecessary data from newly generated chunks 2022-03-01 17:41:46 -07:00
Intelli
6a22903240 Re-enabled BlocksHub & disabled logging integration with AWE 2022-03-01 16:49:22 -07:00
Intelli
0bbeee65e8 Added support for time ranges in the time parameter 2022-03-01 15:58:15 -07:00
Intelli
a596dd66a9 Blocked access to BlocksHub to prevent duplicate data from being logged 2022-02-28 18:49:20 -07:00
Intelli
1aaff4e2b0 Enabled write-ahead logging for SQLite 2022-02-28 17:47:07 -07:00
Intelli
1c476408e9 Fixed rare instances of lookups displaying negative time values 2022-02-28 17:11:24 -07:00
Intelli
5530a89189 Improved index handling when targeting a specific location 2022-02-27 17:19:37 -07:00
Intelli
c69a5a58c0 Fixed instances of NullPointerException in CraftItemEvent 2022-02-27 16:29:17 -07:00
Intelli
596a39c965 Fixed all firework metadata not being correctly logged 2022-02-25 19:34:23 -07:00
Intelli
42c6deff8a Added logging and inventory rollback support for throwing snowballs and lingering potions 2022-02-25 19:23:53 -07:00
Intelli
f5d13f8818 Fixed backwards compatibility with older server software/versions 2022-02-25 19:16:06 -07:00
Intelli
659fe649ed Changed minimum required Java version to Java 11 2022-02-25 16:53:05 -07:00
Intelli
9bdac6db4d Added entity counts to #preview confirmation page 2022-02-25 16:33:41 -07:00
Intelli
42233f1f72 Fixed phantom fire blocks being logged adjacent to lava 2022-02-25 16:14:35 -07:00
Intelli
900cad643f Fixed inventory lookups not returning correct item for planted seeds 2022-02-24 20:52:30 -07:00
Intelli
ddb804ce99 Fixed farmland displaying in inventory rollbacks 2022-02-24 20:15:48 -07:00
Intelli
45f9f4316e Added logging and inventory rollback support for players breaking items 2022-02-24 20:03:28 -07:00
Intelli
5494bce0fc Added logging and rollback support for players crafting items 2022-02-24 19:52:19 -07:00
Intelli
30c1921968 Fixed inventory rollbacks not restoring shulker boxes with items 2022-02-23 19:36:08 -07:00
Intelli
262f27da3e Changed doors and beds to no longer log data as two separate blocks 2022-02-23 18:56:00 -07:00
Intelli
f9083053b2 Fixed rolling back double blocks dropping an item in the world 2022-02-23 17:27:47 -07:00
Intelli
3b93046731 Fixed ClassCastException when rolling back banner inventory transactions 2022-02-22 21:41:11 -07:00
Intelli
4445c3c4a7 Fixed inventory rollbacks not always returning correct item for placed blocks 2022-02-22 21:15:45 -07:00
Intelli
c95bf3cc30 Fixed fire/water displaying in inventory lookups 2022-02-22 20:10:55 -07:00
Intelli
2a8e4f9797 Fixed "/co undo" not functioning when targeting a container 2022-02-22 19:49:02 -07:00
Intelli
f80c6ab5cd Fixed IllegalArgumentException when performing rollbacks on armor stand contents 2022-02-22 19:40:39 -07:00
Intelli
b96f47cbac Added logging and inventory rollback support for thrown/shot items 2022-02-22 19:26:17 -07:00
Intelli
0d7fa2dd59 Added logging for players picking up arrows and tridents 2022-02-21 18:54:50 -07:00
Intelli
a238045287 Moved BlockLookupAPI to net.coreprotect.api.BlockAPI 2022-02-21 18:22:55 -07:00
Intelli
167b8dfabd Display correct error message if a user isn't specified on an inventory rollback 2022-02-21 18:12:43 -07:00
Intelli
d365eb498b Re-sort language file after upgrading 2022-02-18 20:47:18 -07:00
Intelli
585d8b275a Fixed inventory lookups/rollbacks missing block placement actions 2022-02-18 20:29:45 -07:00
Intelli
527be90249 Fixed item frame transactions not logging BlockFace data 2022-02-18 17:31:35 -07:00
Intelli
c652ce852f Added interaction logging for players clicking item frames 2022-02-17 21:10:49 -07:00
Intelli
fb79071ee7 Added container transaction support for item frames (...)
Fixed ClassCastException when targeting an armor stand with #container
2022-02-17 20:56:20 -07:00
Intelli
e462e68806 Fixed item frames and paintings not logging directional data 2022-02-16 19:16:56 -07:00
Intelli
7398f7dfe6 Added "/co consumer <pause|resume>" console command 2022-02-16 16:09:43 -07:00
Intelli
eb5b3b5bcc Added "inspector" as alias for inspect command 2022-02-16 15:01:20 -07:00
Intelli
abfecda8d0 Added queueLookup method to API 2022-02-15 21:29:33 -07:00
Intelli
c5d5308753 Minor cleanup in SessionLookup class 2022-02-15 20:20:46 -07:00
Intelli
25b03511c2 Added sessionLookup method to API 2022-02-15 19:59:25 -07:00
Intelli
d9eea32b19 Improved WorldEdit logging and added compatibility with FAWE 2022-02-15 16:47:50 -07:00
Intelli
a2353afd0a Added inventory rollback support for online players 2022-02-11 21:45:33 -07:00
Intelli
29d55e6ba9 Fixed blocks placing when using shift+click to inspect trapdoors (#134) 2022-02-10 21:08:11 -07:00
Intelli
21eefff53f Added hidden "log-cancelled-chat" option (default: true) (#154) 2022-02-10 20:49:10 -07:00
Intelli
b1c2795289 Fixed "coreprotect.inspect" permission not being checked at the time of inspection (fixes #133) 2022-02-10 20:36:38 -07:00
Intelli
fdb98bd329 Fixed missing safety checks when inspecting certain blocks 2022-02-10 20:33:12 -07:00
Intelli
dc359a1be3 Added "+container" and "-container" to tab-complete 2022-02-10 19:59:44 -07:00
Intelli
d5c2b908d3 Fixed a:+/-inventory displaying mixed results 2022-02-10 19:57:30 -07:00
Intelli
54da739c1d Inverted action tags for deposits/withdraws 2022-02-10 19:36:23 -07:00
Intelli
01e6351194 Fixed "drop/pickup/deposit/withdraw" actions being incorrectly mapped 2022-02-10 19:26:27 -07:00
Intelli
855a2e5ae2 Renamed "a:inventory" to "a:item" in lookups 2022-02-10 19:21:30 -07:00
Intelli
971de8c078 Changed a:inventory to only display player inventory transactions 2022-02-10 19:18:32 -07:00
Intelli
cd8ef0d273 Improved permission handling for "inventory" and "item" actions 2022-02-10 17:32:11 -07:00
Intelli
02afc6c530 Changed a:item to no longer include container transactions 2022-02-10 17:19:29 -07:00
Intelli
748490b8f0 Added "logins", "logouts", "blocks", and "signs" as new action aliases 2022-02-09 19:43:29 -07:00
Intelli
40561e41c0 Fixed player disconnections not being logged on server shutdown 2022-02-09 19:34:06 -07:00
Intelli
6a978128af Improved performance of rollback/restore previews 2022-02-09 18:14:46 -07:00
Intelli
635a2b0d95 Fixed IllegalArgumentException when performing a rollback preview containing an end crystal 2022-02-09 17:28:49 -07:00
Intelli
ea69bf0dc5 UI improvements & action colours 2022-02-08 20:17:40 -07:00
Intelli
19efdeff89 Added clickable page numbers to lookup pagination 2022-02-08 19:25:07 -07:00
Intelli
673529df54 Fixed coordinates in lookups not always being properly aligned 2022-02-07 18:03:53 -07:00
Intelli
3a0c86a614 Fixed some lookups being slow when specifying an action 2022-02-07 17:39:33 -07:00
Intelli
70f74ced0f Added tooltips for clickable commands in lookup results 2022-02-03 20:36:27 -07:00
Intelli
2c8e289c43 Added "/co page" alias command for page lookups 2022-02-03 20:18:17 -07:00
Intelli
b0d14f4d2b Fixed SQLiteException on lookups 2022-02-03 18:16:35 -07:00
Intelli
29d01a158a Added internal caching of table names & table counts 2022-02-02 21:19:06 -07:00
Intelli
67d9f2f832 Improved rollback speeds, now up to 2,000% faster 2022-01-31 21:49:44 -07:00
Intelli
591110cbb2 Improved lookup query performance 2022-01-31 20:03:07 -07:00
Intelli
286cf2afb9 Manually load SQLite JDBC driver 2022-01-19 15:11:11 -07:00
Intelli
19ed0162e5 Fixed MySQL purges not being gracefully interrupted on shutdown 2022-01-04 19:19:08 -07:00
Intelli
03bd19480e Fixed SQLite purges not successfully completing on some systems 2022-01-04 17:55:52 -07:00
Intelli
947c59882e Fixed MySQL connections not being released when performing a reload 2022-01-04 16:49:57 -07:00
Intelli
8ed4216c64 Fixed SQLException when MySQL driver isn't automatically detected (#117) 2022-01-04 16:32:30 -07:00
Intelli
64188f5a75 Fixed the top block of bamboo growth not being logged (#129) 2022-01-04 15:58:09 -07:00
Intelli
55fec1d092 Moved entity & teleport methods out of Util class 2022-01-04 15:20:01 -07:00
Intelli
c1eecefa6f Fixed radius selections not supporting negative heights 2021-12-21 15:31:08 -07:00
Intelli
3201a18b16 Fixed PoolInitializationException when initializing HikariCP 2021-12-17 17:00:06 -07:00
Intelli
085e410ab1 Fixed NoClassDefFoundError when using Paper 1.16 (#120) 2021-12-17 11:31:04 -07:00
Intelli
a4c21ec8f3 Added MC 1.18 to adapters 2021-12-17 11:24:29 -07:00
Intelli
d7ee5257dd Changed additional timestamp values to long types 2021-12-16 18:08:56 -07:00
Intelli
f0779d288c Incremented API version to 8 2021-12-16 14:01:23 -07:00
Intelli
550c3038b8 Added support for Paper AsyncChatEvent (fixes #75) 2021-11-30 19:11:19 -07:00
Intelli
d864bbe233 Replaced commons-lang with Guava 2021-11-22 15:39:57 -07:00
Jan Erik Petersen
fc99c24a0a
Add HikariCP connection pool for MySQL (#86)
* Add HikariCP connection pool for MySQL

* Make code more compatible with connection pooling

- Remove connection caching in Process/Consumer
- Use try-with-resources to make sure Connections always get closed, even in
  when an Exception occurs.

* Disable SSL for MySQL
2021-11-15 17:57:33 -07:00
Intelli
2d90f9cc08 Fixed moving pistons logged during explosions not rolling back correctly (#92) 2021-11-09 16:42:48 -07:00