This library contains a bunch of frequently used code snippets and classes that will help you work faster without wasting your time with always the same codes.
- SQL libraries (Include MySQL & SQLite [WIP])
- Database connection
- Connection pool
- Automatic reconnection
- Table creation and alteration
- Pre-made getters and setters to set and retrieve data to/from database
- Custom queries
- Easy method to close ResultSets, Statements and Connections
- YAML library
- Creation, reading and management of YAML files
- Console colors
- Print to console with text alterations easily
- Translate a string with color codes (&a, &b, &c, ...) to a colored string
- Encryption
- File encryption
- Password hashing
- Plugin system (Seed System) [WIP]
- Misc
- Zip utilities (Zip, Unzip, Append)
- Object serialization / deserialization
- 3D space methods (distance between two points, point in region)
- Watchdog
- Networking
- Custom packet support
- Netty connection pipeline
- You need at least JDK8.
You can add the modules using maven:
<dependency>
<groupId>it.multicoredev.mclib</groupId>
<artifactId>MCLib-MODULE</artifactId>
<version>...</version>
<scope>compile</scope>
</dependency>
Valid modules are:
- Configurations
- Console
- Database
- Network
- Plugins
- Utilities
You can also download the latest version of the library (with also sources and javadocs) from here and import it as a library.
To contribute to this repository just fork this repository make your changes or add your code and make a pull request.
MCLib is released under "The 3-Clause BSD License". You can find a copy here