FlagsLib - Persistent Data the Easy Way
1.0.1-SNAPSHOTA Minecraft library for developers to make it effortless to attach persistent data to objects.

Description
A Minecraft library made for developers to make it easy and effortless to attach persistent data to entities, locations, chunks, worlds, and more.
Examples

Documentation
Setup
You may shade this plugin or just add the jar to your plugins folder.
Config.yml
Run your server to generate a config.yml file. Update the config with your MySQL database details and your all set.
FlagManager
This is how you interact with this API, access if via FlagManager static context.
Methods
In the following methods "Identifier" accepts String, Entity, Location, and Chunk.
- createFlag(Identifier, String, Value) Create's a new flag returning the new flag, will return null if flag already exists.
- hasFlag(Identifier, String) Return's boolean stating whether flag exists or not.
- getFlag(Identifier, String) Return's a flag, null if not found.
- getAllFlagsByType(FlagType type) Returns list of flags with specified type.
- getAllFlagsByTypeWithKey(FlagType type, String key) Returns list of flags with specified type and key.
- getAllFlagsByTypeWithValue(FlagType type, String value) Returns list of flags with specified type and value.
- getAllFlagsByTypeWithKeyAndValue(FlagType type, String key, String value) Returns list of flags with specified type, key, and value.
- getAllFlags(Identifier) Returns list of flags with specified Identifier.
Flags
- getId() Return's unique ID of flag.
- getIdentifier() Return's flags identifier.
- getKey() Return's flags key.
- setValue(String value) Set's flags value.
- getValue() Return's flags value.
- getType() Return's flags FlagType
- isTemp() Return's if flag is temporary or not(Won't change anything, not implemented yet).
- setTemp(int isTemp) Set's flag to temporary or not(Won't change anything, not implemented yet).
- getUpdated() Return's LocalDateTime of last time flag was modified.
- getCreated() Return's LocalDateTime of when the flag was initially created.
- delete() Delete's the flag from storage.
Maven
Repository
<repository>
<id>tds-repository-snapshots</id>
<name>TDSMC Maven</name>
<url>https://maven.tdsmc.com/snapshots</url>
</repository>
Dependency
<dependency>
<groupId>me.playajames.flags-lib</groupId>
<artifactId>flags-lib</artifactId>
<version>1.0.0-dev-SNAPSHOT</version>
</dependency>
Release History
* 1.0.0-SNAPSHOT - Re-Release rewritten from ground up
License
Licensed under the GPL-3.0 license.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta