create plugin playtime level with INVENTORY GUI and support hex code small text with lore Claim And can't claim wait tomorrow to claim
Create the Gradle project and plugin metadata.
Add persistent playtime tracking, level calculation, and daily reward claiming.
Add the reusable inventory GUI framework and playtime level menu.
Add hex/legacy text formatting, configurable lore, messages, and rewards.
Created the PlaytimeLevels plugin from scratch.
/playtimeopens an inventory GUI showing configurable playtime levels.Tracks and saves player playtime in
data.yml.Supports daily reward claiming with “already claimed, wait until tomorrow” protection.
Configurable level requirements, materials, reward commands, lore, titles, and messages.
Supports legacy colors (
&a) and hex colors (7D6FF) in titles, messages, item names, and lore.Includes default levels from 30 minutes through 8 hours.
add level custom Any level can be set up to 200 and add next page and previous page and add command admin can set playtime player how much and The playtime will change according to what is given. example 100d and name INVENTORY GUI &8ᴘʟᴀʏᴛɪᴍᴇ – ᴍᴇɴᴜ and lore required and your playtime use &f and name level use #00fc88 and status red #FF0000 and add Plugins required to run this plugin and author name cherryimut command admin /playtimeadmin and /ptadmin
Add configurable custom levels (1–200) and paginated playtime GUI navigation.
Add
/playtimeadminand/ptadmincontrols for setting player playtime, including formats such as100d.Update GUI text/lore, colors, plugin metadata, author, and required-plugin declarations.
Custom levels and pagination: I’ll cap configured level numbers to 1–200, render 28 levels per page, and add in-place previous/next navigation without replacing the active inventory.
Admin playtime control: I’ll add a permission-protected executor accepting
/playtimeadmin <player> <duration>(alsosetform), parses/m/h/dvalues such as100d, persist the exact seconds, and register both requested labels.
GUI presentation and metadata: I’ll apply the requested small-cap title,
&fplaytime lore,#00fc88level names, explicit red unavailable statuses, and declare that no external plugin dependency is required while setting authorcherryimut. Implemented the Playtime Levels updates.
Added support for custom levels
1–200.Added paginated GUI with 28 levels per page.
Added previous/next page buttons.
Added
/playtimeadminand/ptadmin.Admin command supports:
/playtimeadmin <player> <duration>/playtimeadmin set <player> <duration>Duration formats:
30m,12h,100d,3600s
Admin playtime changes are saved immediately and affect the player’s current playtime.
Updated GUI title to
&8ᴘʟᴀʏᴛɪᴍᴇ – ᴍᴇɴᴜ.Updated level names to
#00fc88.Required and current playtime lore uses
&f.Unavailable and already-claimed statuses use
#FF0000.Updated author to
cherryimut.Added
playtimelevels.adminpermission.No external plugins are required.
add level custom Any level can be set up to 200 and add next page and previous page and add command admin can set playtime player how much and The playtime will change according to what is given. example 100d and name INVENTORY GUI &8ᴘʟᴀʏᴛɪᴍᴇ – ᴍᴇɴᴜ and lore required and your playtime use &f and name level use #00fc88 and status red #FF0000 and add Plugins required to run this plugin and author name cherryimut command admin /playtimeadmin and /ptadmin update plugin version to 1.2.1 and plugin Minecraft this version update to 26.2 and kodari plugin bulid
Update the plugin/build metadata to version
1.2.1, authorcherryimut, Minecraft target26.2, and required-plugin declarations.Verify the custom 1–200 levels, pagination, admin aliases, duration parsing, and requested GUI text are implemented consistently.
Apply any missing fixes and leave the project ready for Kodari’s build verifier.
Updated the plugin to version 1.2.1.
Added Minecraft compatibility target metadata:
26.2.Updated Gradle project version to
1.2.1.Set author to
cherryimut.Declared no required or soft-dependent plugins.
Custom levels remain configurable from
1through200.Added validation to ignore negative playtime requirements.
Pagination includes next and previous page buttons.
Admin commands remain available:
/playtimeadmin <player> <duration>/ptadmin <player> <duration>Supports
100d,12h,30m, and seconds.
GUI title and requested colors/lore remain configured.
Project is ready for the Kodari plugin build verifier.
config.yml add custom level Up to 200 it is optional whether you want to add a level or not.
Update
config.ymlwith an optional, documented custom-level section supporting level numbers1–200.Preserve existing defaults and ensure omitted levels are simply skipped.
Updated config.yml:
Added documentation for optional custom levels.
Supports any level from
1to200.Missing level numbers are skipped automatically.
Added commented examples for level
6and level200.Existing levels can be edited, removed, or extended.
config.yml add sound and slot All levels are optional kodari plugin bulid
Add configurable
soundandslotfields to each level.Make level entries fully optional and safely ignore incomplete/invalid entries.
Apply the configured sound on claim and keep slot placement configurable, then leave it ready for the Kodari build verifier.
Updated the plugin for Kodari build verification.
Added optional
slotandsoundsettings for each level.Level slots support inventory positions
0–53.Omitted
slotvalues use automatic placement.Omitted or blank
sounddisables claim sounds.Added sound playback when a reward is successfully claimed.
All level entries in
config.ymlare now optional.Supports custom levels from
1through200.Invalid, missing, or incomplete level entries are skipped safely.
Added commented examples for level
1and level200.
wrong but opsional level before Returned again and level Up to 200 is opsional
Restore the default playtime levels that were removed.
Keep every level entry optional: levels
1–200may be edited, removed, or added, and an emptylevelssection remains valid.Document the optional custom-level format without forcing all 200 levels to be configured.
Restored the default levels in config.yml.
Default levels 1–5 are available again.
Any level from 1–200 can be added, edited, or removed.
You do not need to configure all 200 levels.
Missing level numbers are skipped automatically.
Added examples for optional levels 25 and 200.
An empty
levels:section remains valid.
Ikuti INVENTORY GUI di calender.yml dari deluxemenu yang 15: material: writable_book slot: 31 update: true display_name: '&#FF002Bsᴇɴᴅ ᴛᴏ ᴘʟᴀʏᴇʀ' lore: - '&f▪ Cảm ơn các bạn đã tham gia' - '&f▪ và ủng hộ server mình, hy vọng các' - '&f▪ bạn sẽ tiếp tục chơi và donate để server' - '&f▪ có kinh phí duy trì nhé!' click_commands: - '[sound] ui.button.click'
📄
calendar.yml
yml
81 lines
▶
menu_title: " F3F3Fɴᴇᴡ ʏᴇᴀʀs ᴄᴀʟᴇɴᴅᴀʀ"
open_command:
- calendar
size: 36
items:
9:
material: CHEST
slot: 12
update: true
display_name: 'FF002Bᴅᴀʏ #1'
lore:
- '&f▪ Click to claim'
click_commands:
- '[player] code new1'
- '[sound] ui.button.click'
10:
material: CHEST
slot: 13
update: true
display_name: 'FF002Bᴅᴀʏ #2'
lore:
- '&f▪ Click to claim'
click_commands:
- '[player] code new2'
- '[sound] ui.button.click'
11:
material: CHEST
slot: 14
update: true
display_name: 'FF002Bᴅᴀʏ #3'
lore:
- '&f▪ Click to claim'
click_commands:
- '[player] code new3'
- '[sound] ui.button.click'
12:
material: CHEST
slot: 21
update: true
display_name: 'FF002Bᴅᴀʏ #4'
lore:
- '&f▪ Click to claim'
click_commands:
- '[player] code new4'
- '[sound] ui.button.click'
13:
material: CHEST
slot: 22
update: true
display_name: 'FF002Bᴅᴀʏ #5'
lore:
- '&f▪ Click to claim'
click_commands:
- '[sound] ui.button.click'
14:
material: CHEST
slot: 23
update: true
display_name: 'FF002Bᴅᴀʏ #6'
lore:
- '&f▪ Click to claim'
click_commands:
- '[sound] ui.button.click'
15:
material: writable_book
slot: 31
update: true
display_name: 'FF002Bsᴇɴᴅ ᴛᴏ ᴘʟᴀʏᴇʀ'
lore:
- '&f▪ Cảm ơn các bạn đã tham gia'
- '&f▪ và ủng hộ server mình, hy vọng các'
- '&f▪ bạn sẽ tiếp tục chơi và donate để server'
- '&f▪ có kinh phí duy trì nhé!'
click_commands:
- '[sound] ui.button.click'
Menyesuaikan GUI playtime ke pola
calendar.yml: ukuran 36 slot, 6 level di slot 12–14 dan 21–23, serta item informasi di slot 31.Mempertahankan level opsional 1–200, pagination, claim status, lore, dan sound yang sudah dikonfigurasi.
Menambahkan konfigurasi tampilan GUI yang mengikuti format item calendar tanpa mengubah sistem reward/admin yang sudah ada.
[Generation stopped]
15: material: writable_book slot: 31 update: true display_name: '&#FF002Bsᴇɴᴅ ᴛᴏ ᴘʟᴀʏᴇʀ' lore: - '&f▪ Cảm ơn các bạn đã tham gia' - '&f▪ và ủng hộ server mình, hy vọng các' - '&f▪ bạn sẽ tiếp tục chơi và donate để server' - '&f▪ có kinh phí duy trì nhé!' click_commands: - '[sound] ui.button.click'
The generation was stopped before any content could be produced.
Ikuti INVENTORY GUI di calender.yml dari deluxemenu yang 15: material: writable_book slot: 31 update: true display_name: '&#FF002Bsᴇɴᴅ ᴛᴏ ᴘʟᴀʏᴇʀ' lore: - '&f▪ Cảm ơn các bạn đã tham gia' - '&f▪ và ủng hộ server mình, hy vọng các' - '&f▪ bạn sẽ tiếp tục chơi và donate để server' - '&f▪ có kinh phí duy trì nhé!' click_commands: - '[sound] ui.button.click' lore nya diganti bahasa english dan commands calender jangan ada yang diubah INVENTORY GUI dan ada yang 15
Menambahkan item GUI nomor
15pada slot31dengan materialWRITABLE_BOOK.Mengikuti format Calendar DeluxeMenus untuk nama, lore bahasa Inggris, dan sound klik.
Tidak mengubah command calendar maupun command level/playtime yang sudah ada.
Ditambahkan ke INVENTORY GUI:
Item nomor
15Material:
WRITABLE_BOOKSlot:
31update: trueNama:
&#FF002Bsᴇɴᴅ ᴛᴏ ᴘʟᴀʏᴇʀLore sudah diganti ke bahasa Inggris
Klik memainkan sound
ui.button.clickSlot item 15 dicadangkan agar tidak tertimpa level
Command calendar tidak diubah
Material INVENTORY GUI semua level itu chest ya dan lore nya claim tomorrow next day hex code nya #FF0000 dan loading server plugin nya server banner playtime level plugin author cherryimut server information nya server software dipakai server digunakan dan versi software dipake server dan plugin update 1.3.4
Ubah tampilan semua level menjadi
CHESTdan sesuaikan lore status klaim dengan warna hex#FF0000.Tambahkan informasi plugin/server serta banner Playtime Level dengan author
cherryimut.Naikkan versi plugin ke
1.3.4dan siapkan build Kodari.
Diperbarui ke versi plugin 1.3.4.
Semua item level di
INVENTORY GUIsekarang menggunakan materialCHEST, termasuk level terkunci.Lore status klaim berubah menjadi:
&#FF0000Claim tomorrow (next day)
Ditambahkan informasi banner Playtime Level:
Plugin: Playtime Level
Author:
cherryimutPlugin version
Server software yang sedang digunakan
Versi server yang sedang digunakan
Versi Gradle dan
plugin.ymlsudah menjadi1.3.4.Konfigurasi level opsional
1–200, pagination, dan item calendar nomor15tetap dipertahankan.
Banner itu pas servernya start dan loading muncul yang dikasih tau
Menambahkan banner startup ke console saat
PlaytimeLevelsselesai loading.Menampilkan nama plugin, author, versi plugin
1.3.4, software server, dan versi Minecraft/server.Tidak mengubah command calendar atau tampilan inventory.
Banner startup sudah ditambahkan. Saat server mulai memuat plugin, console akan menampilkan:
Playtime Level has been loadedAuthor:
cherryimutPlugin version:
1.3.4Server software yang digunakan
Versi server/Minecraft
Garis banner pemisah
Command calendar dan inventory GUI tidak diubah.
Yang INVENTORY GUI claim daily reward itu diganti yang items 15 yang INVENTORY GUI claim daily reward disebelah kiri si book nya dan tambah /ptadmin editor dan muncul INVENTORY GUI nya bisa pindah INVENTORY GUI manapun termasuk daily dan book nya dan tambah /ptadmin help untuk munculin semua command ptadmin
Ubah layout inventory agar item
15menjadi book, dengan tombol claim daily reward di sebelah kirinya.Tambahkan
/ptadmin editoruntuk membuka editor GUI yang dapat memindahkan item level, daily reward, dan book.Tambahkan
/ptadmin helpyang menampilkan seluruh command admin yang tersedia.
Claim Daily Rewardsekarang berada di slot30, tepat di sebelah kiri book item15di slot31.Ditambahkan
/ptadmin editor.Membuka inventory editor.
Item level, daily reward, book, info, previous, dan next dapat dipindahkan ke slot lain.
Perubahan posisi tersimpan otomatis ke
config.ymlsaat inventory ditutup.Editor mendukung perpindahan halaman level.
Ditambahkan
/ptadmin helpuntuk menampilkan semua command admin:/ptadmin <player> <duration>/ptadmin set <player> <duration>/ptadmin editor/ptadmin help
Posisi GUI baru yang dapat dikonfigurasi:
gui.info-slotgui.claim-slotgui.previous-slotgui.next-slotgui.items.15.slot
Posisi level tetap tersimpan di
levels.<level>.slot.Command calendar dan fungsi book tetap tidak diubah.
Dan previous dan next page hex code nya #00F986 plugin update 1.3.6
Ubah warna tombol
Previous PagedanNext Pagemenjadi#00F986.Naikkan versi plugin ke
1.3.6pada metadata dan banner startup.
Warna
Previous PagedanNext Pagediubah menjadi#00F986.Versi plugin diperbarui dari
1.3.4ke1.3.6.Diperbarui pada
config.yml,plugin.yml, danbuild.gradle.
package com.kodari.playtimelevels;
import com.kodari.playtimelevels.command.PlaytimeCommand;
import com.kodari.playtimelevels.command.PlaytimeAdminCommand;
import com.kodari.playtimelevels.gui.GUIListener;
import com.kodari.playtimelevels.gui.GUIManager;
import com.kodari.playtimelevels.listener.PlaytimeListener;
import com.kodari.playtimelevels.manager.PlaytimeManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class PlaytimeLevelsPlugin extends JavaPlugin {
private PlaytimeManager playtimeManager;
private GUIManager guiManager;
@Override
public void onEnable() {
saveDefaultConfig();
logStartupBanner();
this.playtimeManager = new PlaytimeManager(this);
this.guiManager = new GUIManager();
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
Bukkit.getPluginManager().registerEvents(new PlaytimeListener(playtimeManager), this);
getCommand("playtime").setExecutor(new PlaytimeCommand(this));
PlaytimeAdminCommand adminCommand = new PlaytimeAdminCommand(this);
getCommand("playtimeadmin").setExecutor(adminCommand);
getCommand("ptadmin").setExecutor(adminCommand);
Bukkit.getScheduler().runTaskTimer(this, playtimeManager::saveOnlineData,
20L * 60L, 20L * 60L);
}
private void logStartupBanner() {
getLogger().info("========================================");
getLogger().info("Playtime Level has been loaded");
getLogger().info("Author: cherryimut");
getLogger().info("Plugin version: " + getDescription().getVersion());
getLogger().info("Server software: " + getServer().getName());
getLogger().info("Server version: " + getServer().getBukkitVersion());
getLogger().info("========================================");
}
@Override
public void onDisable() {
if (playtimeManager != null) {
playtimeManager.saveOnlineData();
}
}
public PlaytimeManager getPlaytimeManager() {
return playtimeManager;
}
public GUIManager getGuiManager() {
return guiManager;
}
}