A simple plugin for level mechanics.
This plugin will allow you to enter your unique level system on your server.
The plugin will save all the player’s time spent on the server and on its basis the player will increase his level.
Upon entering the game, the player will have the first level, in order to raise the level to the second, he needs to spend an hour (60 minutes) on the server. At the second level, in order to get the third, the played time is reset and counted again, but to get the third level, the player will have to spend 2 hours on the server, instead of one.
Thus, with each level increase, the required number of hours for the increase will be multiplied by 2, and so on to infinity.
The plugin is under development. I am waiting for your suggestions for improving it, and also waiting for your messages about bugs found.
Commands and permissions in config.yml
The plugin is open source on gitlab.com
The plugin also has an API for developers. An example of use is given below.
P.S. excuse me for my bad English, I am not a native speaker = (
This plugin will allow you to enter your unique level system on your server.
The plugin will save all the player’s time spent on the server and on its basis the player will increase his level.
Upon entering the game, the player will have the first level, in order to raise the level to the second, he needs to spend an hour (60 minutes) on the server. At the second level, in order to get the third, the played time is reset and counted again, but to get the third level, the player will have to spend 2 hours on the server, instead of one.
Thus, with each level increase, the required number of hours for the increase will be multiplied by 2, and so on to infinity.
The plugin is under development. I am waiting for your suggestions for improving it, and also waiting for your messages about bugs found.
Commands and permissions in config.yml
The plugin is open source on gitlab.com
Spoiler: source code
Code (Text):
https://gitlab.com/Lemar98/levelsystemreloaded
The plugin also has an API for developers. An example of use is given below.
Spoiler: Example code uses LevelSystemReborn API
This code is a rather crude example, but I think you already figured out how to use it.
All the "documentation" for the methods is in the plugin repository ( https://gitlab.com/Lemar98/levelsystemreloaded) in the API package.
Code (Java):
public
class Main
extends JavaPlugin
{
public void onEnable ( ) {
for (Player player : Bukkit. getOnlinePlayers ( ) ) {
Api api = new Api (player. getUniqueId ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " level: " + api. getLevel ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " NextLevel: " + api. getNextLvl ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " level: " + api. getLevel ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " CollectMinutes: " + api. getMinutesForLvl ( ) ) ;
}
}
}
public void onEnable ( ) {
for (Player player : Bukkit. getOnlinePlayers ( ) ) {
Api api = new Api (player. getUniqueId ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " level: " + api. getLevel ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " NextLevel: " + api. getNextLvl ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " level: " + api. getLevel ( ) ) ;
Bukkit. broadcastMessage (player. getName ( ) + " CollectMinutes: " + api. getMinutesForLvl ( ) ) ;
}
}
}
All the "documentation" for the methods is in the plugin repository ( https://gitlab.com/Lemar98/levelsystemreloaded) in the API package.
P.S. excuse me for my bad English, I am not a native speaker = (
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.12
- 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.
LevelSystemReloaded [1.12 - 1.15] is a free Minecraft Java mod. Compatible with Minecraft 1.12. Downloaded 106 times (via Spigot). Download it and open it directly in the game.