📎
1 file
5,779 chars
📄
pasted-code-1780821513600.txt
txt
332 lines
▶
pasted-code-1780821513600.txt
txt
332 lines
Create a professional Minecraft Paper 1.21.x plugin using Java 21.
Plugin Name: KodSistemi
The plugin language, commands, INVENTORY GUI titles, config values, messages, permissions, placeholders, and all user-facing content must be in Turkish.
Use:
* Java 21
* Paper API 1.21.x
* Maven
* SQLite storage
* LuckPerms API
* PlaceholderAPI support
* Clean OOP architecture
* Fully commented code
* Production-ready structure
Files Required:
* config.yml
* language.yml
* codes.db (SQLite)
All messages must be loaded from language.yml.
The plugin prefix must be configurable in config.yml.
=================================================
KOMUTLAR
========
/kodolustur
/kodlar
/kodsil
/kodkullan
/kod reload
Permissions:
kodsistemi.admin
kodsistemi.use
=================================================
/KODOLUSTUR
===========
When an administrator executes /kodolustur, open a INVENTORY GUI panel.
INVENTORY GUI title:
"&8Kod Oluşturma Paneli"
The INVENTORY GUI must contain the following sections:
* Eşyaları Seç
* Süre Belirle
* Aktif / Pasif
* Kod Adı
* Kullanım Adedi
=================================================
KOD ADI
=======
When clicked:
* Close the INVENTORY GUI
* Wait for chat input
* Save the next message as the code name
* Reopen the INVENTORY GUI
Example:
YAZETATIL2025
=================================================
SÜRE BELİRLEME
==============
When clicked:
* Close INVENTORY GUI
* Wait for chat input
* Parse Turkish duration formats
Supported examples:
30 saniye
15 dakika
2 saat
1 gün
30 gün
15 saat 20 dakika
1 gün 12 saat 30 dakika
The plugin must automatically parse these formats and convert them internally.
=================================================
KULLANIM ADEDİ
==============
When clicked:
* Close INVENTORY GUI
* Wait for chat input
* Accept a number
Example:
50
After 50 successful uses, the code must automatically become passive.
=================================================
AKTİF / PASİF
=============
Left click:
* Toggle between Aktif and Pasif
Visual status must update immediately.
=================================================
EŞYALARI SEÇ
============
When clicked:
Open a 54-slot chest INVENTORY GUI.
Title:
"&8Kod Ödülleri"
Administrators can drag and drop items into the inventory.
Bottom row buttons:
* Onayla
* İptal
When "Onayla" is clicked:
* Save all items as rewards.
=================================================
LUCKPERMS ÖDÜLLERİ
==================
The reward INVENTORY GUI must also contain the following options:
* VIP
* VIP+
* EVIP
* EVIP+
Left Click:
* Aç / Kapat
Right Click:
* Süre Belirle
After right-clicking:
* Close INVENTORY GUI
* Wait for chat input
Supported examples:
30 gün
15 gün
12 saat
7 gün
When the code is redeemed, the player must receive the selected LuckPerms group temporarily.
Use LuckPerms temporary nodes.
=================================================
KOD OLUŞTUR
===========
A button called:
"&aKod Oluştur"
must save the code.
Each code must store:
* Kod Adı
* Aktif/Pasif Durumu
* Süre
* Kullanım Limiti
* Kullanım Sayısı
* Eşyalar
* VIP Ödülü
* VIP+ Ödülü
* EVIP Ödülü
* EVIP+ Ödülü
* Oluşturulma Tarihi
* Kullanan Oyuncular
=================================================
/KODLAR
=======
Command:
/kodlar
Open a INVENTORY GUI listing all created codes.
Title:
"&8Aktif Kodlar"
Visual indicators:
Green item = Aktif
Red item = Pasif
Clicking a code opens a full edit menu.
Editable values:
* Kod Adı
* Süre
* Kullanım Adedi
* Aktif/Pasif
* Eşyalar
* LuckPerms Ödülleri
Changes must be saved instantly.
Support pagination.
=================================================
/KODSIL
==============
Deletes the code permanently.
Requirements:
* Remove database records
* Remove cached data
* Confirmation message
=================================================
/KODKULLAN
================
Validation:
* Kod mevcut mu?
* Aktif mi?
* Süresi geçmiş mi?
* Kullanım limiti dolmuş mu?
* Oyuncu daha önce kullanmış mı?
If successful:
* Verilecek eşyaları ver
* LuckPerms ödüllerini ver
* Kullanım sayısını artır
* Oyuncu UUID'sini kaydet
If usage limit reaches maximum:
* Kod otomatik olarak pasif olsun
=================================================
PLACEHOLDERAPI
==============
Create the following placeholders:
%kod_toplam%
%kod_aktif%
%oyuncu_kullanilan_kod_sayisi%
%kod_kalan_kullanim_%
=================================================
CONFIG.YML
==========
Configurable:
* Prefix
* INVENTORY GUI başlıkları
* INVENTORY GUI itemleri
* Ses efektleri
* LuckPerms grup isimleri
* Veritabanı ayarları
* Debug modu
=================================================
LANGUAGE.YML
============
All messages must be in Turkish.
Examples:
kod-olusturuldu: "&aKod başarıyla oluşturuldu."
kod-silindi: "&cKod silindi."
kod-kullanildi: "&aKod başarıyla kullanıldı."
kod-bulunamadi: "&cKod bulunamadı."
kod-pasif: "&cBu kod pasif durumda."
=================================================
ADDITIONAL REQUIREMENTS
=======================
* Async SQLite operations
* Cache system
* InventoryClickEvent protection
* InventoryDragEvent protection
* Memory-leak safe
* Error logging
* Reload support
* Modular structure
* Manager-based architecture
* Production-ready code
* Complete source code generation
* Generate every class, listener, command, manager, INVENTORY GUI, config, and database implementation
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code