Commit graph

50 commits

Author SHA1 Message Date
Intelli
484614f71e Improved performance of BlockPreDispenseEvent 2025-03-10 19:39:33 -06:00
Intelli
67336168fb Minor cleanup 2025-03-09 14:55:05 -06:00
Intelli
e2c2505b2b Split up utility class 2025-02-25 19:30:28 -07:00
Intelli
2654562585 Changed minimum supported MC version to 1.16 2024-11-05 11:06:33 -07:00
Intelli
de978fce2c Added base changes for database migration command (unfinished) 2024-09-29 18:35:37 -06:00
Intelli
ea1b86c034 Only start CoreProtect on supported Minecraft versions 2024-08-20 14:13:44 -06:00
Intelli
c493a0dece Added support for Community Edition builds 2024-08-19 20:55:43 -06:00
Intelli
d2bffb2103 Fixed errors pertaining the CPU lib on startup on some systems (fixes #591) 2024-08-15 19:04:31 -06:00
Intelli
dbd8723752 Added CPU & RAM information to /co status 2024-07-09 18:02:49 -06:00
Telesphoreo
42af5dc7a1
Fix FAWE logging on newer builds (#528)
* Fix FAWE logging on newer builds

* fix regular WE logging

* Fix registering of FAWE for event bus

* Remove jcenter

* Add missing `replaceBlocks` method

* Remove FAWE toggle entirely

* oops, i can't do it that way

---------

Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com>
2024-05-12 11:43:36 -06:00
Intelli
5426e69fb8 Improved hopper logging to prevent infinite attempts on failed pushes
E.g. when a hopper is repeatedly trying to push into a smoker, but no items are actually being transferred
2024-05-07 14:08:59 -06:00
Nahuel Dolores
a4c37da8ee
Ditch weak map world references and use names instead (#533) 2024-04-25 14:05:48 -06:00
Intelli
0edf160f43 Added hidden "enable-ssl" database option (default: false) 2023-08-23 16:31:40 -06:00
Intelli
1dd293c5a4 Renamed "mysql-maximum-pool-size" to "maximum-pool-size" 2023-07-17 17:33:57 -06:00
Radiant
1331b8d0c5
Added hidden "unknown-user" logging option (default: false) (#397)
* Allow unknown user logging (attempt to patch a bug of tnt splashing blocks and it not being logged)

* Changed "unknown-logging" to be hidden (default: false)

* Update BlockFormListener.java

---------

Co-authored-by: Radiant <i.like.using.discord@gmail.com>
Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com>
2023-07-17 17:25:35 -06:00
Keno Medenbach
6045799fea
Make MySQL maximumPoolSize configurable (#411)
* Make MySQL maximumPoolSize configurable

* Correctly assign default value to mysql-maximum-pool-size

---------

Co-authored-by: Intelli <6790859+Intelli@users.noreply.github.com>
2023-07-17 16:47:52 -06:00
Intelli
342fadd0f6 Fixed invalid config values defaulting to zero rather than default value 2023-07-17 16:42:12 -06:00
Intelli
d7b76135c8 Reduced MySQL connection lifetime from 5m to 1m (fix #362) 2023-07-13 18:07:15 -06:00
Intelli
054beb700b Fixed ConcurrentModificationException in ProjectileLaunchEvent 2023-07-13 13:49:13 -06:00
Intelli
b9309482cf Fix config typo 2023-07-08 13:52:00 -06:00
Intelli
7170e29452 Added support for Folia 2023-03-23 19:45:44 -06:00
Intelli
61847f2f8d Changed minimum required version to Spigot 1.15 2022-12-15 16:45:24 -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
e3b82858b4 Updated config description regarding donation keys 2022-12-07 18:56:18 -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
9f8c2e8a2f Set Hikari maxLifetime to 5m, keepaliveTime to 1m (fixes #199) 2022-09-26 15:22:07 -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
01ed2e9f97 Fixed NullPointerException when logging player projectile data 2022-03-21 15:12:58 -06:00
Intelli
840eb3b4ee Added hidden "disable-wal" database option (default: false) 2022-03-20 16:37:20 -06:00
Intelli
02dcc873d6 Added hidden "exclude-tnt" rollback option to exclude TNT blocks (default: false) 2022-03-07 16:39:21 -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
6714ded600 Improved logging to skip unnecessary data from newly generated chunks 2022-03-01 17:41:46 -07:00
Intelli
659fe649ed Changed minimum required Java version to Java 11 2022-02-25 16:53:05 -07:00
Intelli
5494bce0fc Added logging and rollback support for players crafting items 2022-02-24 19:52:19 -07:00
Intelli
b96f47cbac Added logging and inventory rollback support for thrown/shot items 2022-02-22 19:26:17 -07:00
Intelli
d365eb498b Re-sort language file after upgrading 2022-02-18 20:47:18 -07:00
Intelli
7398f7dfe6 Added "/co consumer <pause|resume>" console command 2022-02-16 16:09:43 -07:00
Intelli
21eefff53f Added hidden "log-cancelled-chat" option (default: true) (#154) 2022-02-10 20:49:10 -07:00
Intelli
19efdeff89 Added clickable page numbers to lookup pagination 2022-02-08 19:25:07 -07:00
Intelli
29d01a158a Added internal caching of table names & table counts 2022-02-02 21:19:06 -07:00
Intelli
286cf2afb9 Manually load SQLite JDBC driver 2022-01-19 15:11:11 -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
3201a18b16 Fixed PoolInitializationException when initializing HikariCP 2021-12-17 17:00:06 -07:00
Intelli
d7ee5257dd Changed additional timestamp values to long types 2021-12-16 18:08:56 -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
922e4478dc Improved hopper logging performance when using Paper
Disables snapshot creation when getting inventory holders
2021-08-01 16:42:07 -06:00
Intelli
aa55472c1a Utilize item caching on invalid hopper events 2021-07-21 18:47:23 -06:00
Intelli
48ef18e2c8 CoreProtect v20.0 release 2021-07-16 12:13:54 -06:00