Skip to content

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.

License

Notifications You must be signed in to change notification settings

MultiCoreNetwork/MCLib

Repository files navigation

MCLib

GitHub version GitHub stars GitHub issues

Common library for Java programming

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.

Features

  • 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

Requirements

  • You need at least JDK8.

Getting started

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.

Contributing

To contribute to this repository just fork this repository make your changes or add your code and make a pull request.

License

MCLib is released under "The 3-Clause BSD License". You can find a copy here

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages