This plugin provides utilities for Bungee plugin developers, but it also contains and will contain some useful tools for normal server admins to be able to use and test the libraries features.
Currently you should install this plugin to your BungeeCord, if you would like to use it's permission system or if a Bungee plugin needs it.
Awesome, you have just found an API for your future BungeeCord plugins. This plugin provides you many useful utilities for BungeeCord plugin development
Configuration file management, language file management, Json chat management and CLIENT-BUNGEECORD protocol management utilities .
I will make them for the first request. So in order to make plugins using this library, just contact me on Skype, or send me a PM.
Currently you can only use some /blp commands for managing the permissions:
/blp reload: Reload the permission file
/blp save: Save the permission file
/blp debug: Toggle permission debug messages.
Spoiler: Old feature list, rewriting it soon...
Features:
Configuration system
It looks similiar to Yaml, but it doesn't need any "s or 's! It just need the blocks and the texts, which can also be multilined.
It uses custom serializers, for each types of data, and it also supports very easy object serialization, without any need of creating your custom serializers, but of course, you can add unlimited amount of them, using method
ConfigSerialization.serializers.put(class,serializer);
Chat system
With it, you can easily build any kind of json messages without using long, long JSON messages. It uses a custom format for building them:
- You don't need to care about the colorcodes of each message part, the plugin does it automatically for you, so you only need to use the regular §+colorcode format.
- Adding special effects to the messages are really easy, using the \-<effect letter> separator, i.e. §a§lme§e§lssage\-TShown this text on hover\-SSuggest this message on click\-+Insert this text on shift+click!
You can use the following special effect letters:
T - Hover event, show text
I - Hover event, show item
A - Hover event, show achievement
E - Hover event, show entity
S - click event, suggest command
R - click event, run command
U - click event, open url
F - click event, open file
+ - insertion (on shift click)
- Of course you can also add several tags to your messages, if you need,
i.e.: text1\-HHover\|text2\-HHover2
So as you see, you need to use the \| separator.
Sending this json message is also really simple:
ChatAPI.sendJsonMsg(ChatMessageType type,ProxiedPlayer plr,String msg);
Language management system:
You can also use this plugin for managing your plugins language files. The language files are simple yaml like files, which avoids writing the same texts several times.
You can load your language file using method:
PluginLang GlobalLangFile.loadLF(String pluginname,String filename);
This pluginlang class provides you easy access for your plugins language file. It has the method String get(ProxiedPlayer plr,String adress, String... replacements), which gets a string from the file, but it also replaces the variables, with the given replacements.
Configuration system
It looks similiar to Yaml, but it doesn't need any "s or 's! It just need the blocks and the texts, which can also be multilined.
It uses custom serializers, for each types of data, and it also supports very easy object serialization, without any need of creating your custom serializers, but of course, you can add unlimited amount of them, using method
ConfigSerialization.serializers.put(class,serializer);
Chat system
With it, you can easily build any kind of json messages without using long, long JSON messages. It uses a custom format for building them:
- You don't need to care about the colorcodes of each message part, the plugin does it automatically for you, so you only need to use the regular §+colorcode format.
- Adding special effects to the messages are really easy, using the \-<effect letter> separator, i.e. §a§lme§e§lssage\-TShown this text on hover\-SSuggest this message on click\-+Insert this text on shift+click!
You can use the following special effect letters:
T - Hover event, show text
I - Hover event, show item
A - Hover event, show achievement
E - Hover event, show entity
S - click event, suggest command
R - click event, run command
U - click event, open url
F - click event, open file
+ - insertion (on shift click)
- Of course you can also add several tags to your messages, if you need,
i.e.: text1\-HHover\|text2\-HHover2
So as you see, you need to use the \| separator.
Sending this json message is also really simple:
ChatAPI.sendJsonMsg(ChatMessageType type,ProxiedPlayer plr,String msg);
Language management system:
You can also use this plugin for managing your plugins language files. The language files are simple yaml like files, which avoids writing the same texts several times.
You can load your language file using method:
PluginLang GlobalLangFile.loadLF(String pluginname,String filename);
This pluginlang class provides you easy access for your plugins language file. It has the method String get(ProxiedPlayer plr,String adress, String... replacements), which gets a string from the file, but it also replaces the variables, with the given replacements.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
BungeeLib is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 1,049 times (via Spigot). Download it and open it directly in the game.