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
source code
https://gitlab.com/Lemar98/levelsystemreloadedThe plugin also has an API for developers. An example of use is given below.
Example code uses LevelSystemReborn API
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());
}
}
}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.
P.S. excuse me for my bad English, I am not a native speaker = (
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