PR MC Ultimate Roleplay — Complete Server Plugin Specification
- Project Mission
Develop a complete, production-oriented Minecraft plugin named PR MC Ultimate Roleplay for Minecraft Java Edition 1.20.1 using Paper API. The plugin must create a detailed Arabic GTA-style roleplay experience inspired by modern FiveM servers, including Kayan-style gameplay concepts, while using original PR MC branding, original interfaces, and properly licensed assets.
This is not a basic economy plugin or a collection of empty menus. Implement interconnected, persistent, secure, testable systems. Do not create fake features, decorative buttons without functionality, placeholder commands presented as finished systems, or simulated database operations.
The target server has a maximum of 60 simultaneous players and must support both Java PC players and Bedrock players on Android, iOS, and Windows through Geyser and Floodgate.
Build the project as one main plugin named "PRMC-UltimateRP", with modular internal components. Use compatible external libraries only when necessary. Clearly document every dependency.
- Language, UI, and Controls
- Arabic is the default language for all player-facing menus, messages, notifications, item names, holograms, help pages, and roleplay interfaces.
- Use consistent Arabic terminology, readable right-to-left-friendly layouts where supported, attractive colors, icons, clear navigation, confirmation dialogs, and back buttons.
- Brand the interface as PR MC.
- Make gameplay accessible to mobile touchscreen users and PC keyboard-and-mouse users.
- Use inventory GUI menus, clickable inventory items, supported Bedrock forms, chat components, action bars, boss bars, and compatible interaction systems.
- Provide quick-access menus through configurable items, inventory shortcuts, and commands as a fallback.
- Never require a player to memorize dozens of commands.
- Do not replace or interfere with Minecraft's normal mobile movement and camera controls.
- Ensure buttons work on both Java and Bedrock wherever the client protocol permits.
- Use a configurable resource pack only when custom models, icons, vehicle appearances, or additional visual assets require it.
- Include English as an optional secondary language.
- Network, Compatibility, and Performance
- Target Paper 1.20.1 and Java 17 for the initial supported server build.
- Support Java clients and Bedrock clients through compatible Geyser and Floodgate installations.
- Design player identity handling correctly for authenticated Java players and Floodgate-linked Bedrock players.
- Provide tested compatibility with ViaVersion and ViaBackwards where supported.
- Specify the oldest tested client version and newest tested client version. Do not claim universal compatibility without testing.
- Explain that client protocol compatibility does not guarantee that every modern feature, custom item, GUI, vehicle, or animation works on old clients.
- Keep the plugin compatible with Paper and avoid requiring Forge or Fabric client mods.
- Support 60 players with efficient database access, caching, asynchronous operations where safe, and minimal unnecessary repeating tasks.
- Never access Bukkit world or entity APIs asynchronously when unsafe.
- Avoid blocking the server's main thread with database operations or large file processing.
- Provide configurable limits, cooldowns, pagination, entity cleanup, and protection against lag-generating exploits.
- Character and Identity System
Implement:
- Character creation and selection.
- Configurable character name, unique character ID, age, biography, appearance metadata, and starting location.
- Multiple characters per account, with configurable limits.
- Persistent character data separate from account identity.
- Character switching with safe inventory, vehicle, and location handling.
- Character identity cards and profile GUI.
- Registration, login integration where necessary, and safe account linking.
- Character-specific money, jobs, licenses, possessions, properties, vehicles, fines, and criminal records.
- Optional character death, incapacitation, respawn, and medical treatment rules.
- Staff-controlled character management and audit logs.
Do not store plaintext passwords. Prefer supported authentication integrations and secure password hashing if an independent password system is implemented.
- Economy and Banking
Build one authoritative economy system shared by all PR MC systems.
Features:
- Wallet cash and bank balance.
- Bank accounts and account numbers.
- Bank branches and ATMs.
- Deposit, withdrawal, and player-to-player transfers.
- Transfer confirmation, transaction history, transaction receipts, and configurable fees.
- Daily transfer limits, anti-spam controls, insufficient-funds handling, and fraud protection.
- Salary payments, business revenue, fines, taxes, purchases, refunds, and legitimate staff adjustments.
- Bank GUI in Arabic.
- Optional joint business accounts and employee permissions.
- Persistent balances across restarts.
- Atomic financial transactions and rollback or compensation if an operation fails.
- Prevent duplicated money through disconnects, concurrent purchases, repeated clicks, or server crashes.
Never allow separate economy modules to maintain conflicting balances. Every financial operation must use the same transaction service.
- Jobs, Companies, and Businesses
Implement a job framework with configurable jobs, ranks, salaries, shifts, permissions, and progression.
Initial jobs:
- Police officer.
- EMS paramedic.
- Mechanic.
- Taxi driver.
- Delivery worker.
- Bus driver.
- Truck driver.
- Shop employee.
- Business owner.
- Civilian.
- Configurable additional jobs.
Include:
- Job applications and hiring.
- Boss and employee management menus.
- Promotions and demotions.
- Employee rosters, attendance, salaries, and payroll.
- Company bank accounts.
- Business ownership and ownership transfers.
- Shop inventories, configurable prices, stock, sales, and profits.
- Employee permissions and shift status.
- Job-specific tasks, work locations, rewards, and cooldowns.
- Anti-farming and anti-exploit protections.
- Optional government and company taxes.
- Police, Law Enforcement, and Criminal Justice
Build a complete police roleplay system.
Features:
- Police departments, ranks, badges, duty status, and permissions.
- Police GUI and emergency dispatch.
- Player search and identity verification with appropriate permissions.
- Criminal records, evidence records, warrants, and case files.
- Handcuffing, escorting, arresting, transporting, and releasing suspects.
- Configurable search and confiscation procedures.
- Jail sentences with persistent release times.
- Fines and digital payment receipts.
- Vehicle registration and ownership checks.
- License checks and revocation.
- Configurable wanted status and crimes.
- Evidence collection and storage.
- Court hearings, judges, legal case records, and bail where enabled.
- Police radios, unit communications, and emergency alerts.
- Administrative audit logs for sensitive actions.
Police features must be permission-controlled. Prevent unauthorized searches, arrests, evidence deletion, and financial penalties.
- EMS and Medical System
Implement:
- Health emergencies and configurable incapacitation.
- Downed-player states and treatment timers.
- EMS calls and dispatch notifications.
- Paramedic job, ranks, and duty system.
- Revive, stabilize, transport, and hospital treatment.
- Hospital beds and configurable treatment locations.
- Medical supplies and configurable treatment costs.
- Ambulance job tasks and rewards.
- Persistent medical status where appropriate.
- Configurable death and respawn rules.
- Protection against repeated revive rewards and treatment exploits.
Keep the medical system compatible with normal Minecraft damage rules and configurable PvP zones.
- Vehicles, Dealerships, and Garages
Build a modular vehicle framework suitable for Java and Bedrock without requiring players to install Forge or Fabric mods.
Features:
- Vehicle dealerships, purchasing, selling, ownership, registration, and vehicle IDs.
- Vehicle spawning and despawning with safe limits.
- Persistent vehicle storage.
- Fuel consumption, refueling, configurable fuel stations, and maintenance.
- Vehicle health, repair, damage handling, and mechanic services.
- Customization including paint colors, plates, and supported cosmetic upgrades.
- Vehicle keys, locks, authorized drivers, passenger access, and ownership permissions.
- Garages, vehicle retrieval, storage, impound lots, and insurance options.
- Police vehicle registration checks and fines.
- Anti-theft rules and ownership verification.
- Prevent vehicle duplication and unauthorized spawning.
- Configurable handling, speed, and vehicle restrictions.
Include BMW M4 GT3 and BMW X6 as requested vehicle models or configurable vehicle definitions. Use original or properly licensed visual assets. If exact models require a resource pack or compatible asset system, include the asset requirements and installation instructions.
Do not claim that realistic GTA driving physics or exact car models are possible through Paper alone. Implement the best compatible approximation and document any additional dependencies or limitations.
- Housing, Palaces, Shops, and Ownership
Create a permanent ownership system for houses, apartments, palaces, garages, shops, and businesses.
Requirements:
- Purchase and sale through GUI.
- Unique property IDs and ownership records.
- Permanent ownership across restarts.
- Property transfers, configurable resale rules, and transaction history.
- Door and region access permissions.
- Owner-controlled guest access and removal of permissions.
- Physical keys or secure virtual keys.
- Storage access rules.
- Property upgrades, furniture placement where supported, and configurable customization.
- Optional rent, taxes, maintenance fees, and mortgages.
- Integration with bank, phone, vehicles, garage, and inventory systems.
- Prevent unauthorized entry, storage theft, duplicate purchases, and ownership conflicts.
- Safe recovery of ownership data after crashes.
- Admin property inspection and audited recovery tools.
Property ownership must be checked server-side. A client-side GUI must never be trusted as proof of ownership.
- Phone and Communication
Build an in-game Arabic smartphone GUI with:
- Contacts.
- Private messages.
- Calls and supported voice-chat integration.
- Bank and transfer interface.
- Job applications.
- Police and EMS emergency calls.
- Vehicle management.
- Garage access.
- Property ownership and guest permissions.
- Business management.
- Fines and invoices.
- Player advertisements.
- Configurable public announcements.
- Notifications and message history.
- Phone settings and privacy controls.
Integrate Simple Voice Chat only if its supported platform and network configuration are appropriate. A phone interface must not falsely claim to provide real voice calls unless a working voice integration exists.
Use server-side validation, message rate limits, privacy permissions, and protection against spam and impersonation.
- Inventory, Hunger, Thirst, and Licenses
Implement:
- Roleplay inventory with configurable item categories and weight limits.
- Cash items only if configured; prevent conflict with the authoritative wallet.
- Secure item transfers, dropping, trading, and storage.
- Player-to-player trading with confirmation.
- Hunger and thirst meters displayed separately from the phone.
- Configurable consumption, food, water, and survival effects.
- Weapons licenses, driving licenses, and job-specific licenses.
- License application, purchase, expiration, revocation, and staff review.
- Item durability or degradation where appropriate.
- Safe death and respawn inventory rules.
- Anti-duplication protections for containers, trades, crafting, and disconnects.
Preserve normal Minecraft controls. Do not require a custom client to display the basic survival indicators; use compatible HUD methods and document visual limitations.
- Weapons, Crime, Gangs, and Crafting
Provide:
- Configurable weapon categories, ownership rules, and licenses.
- Weapon shops and legal purchase restrictions.
- Gang creation, membership, ranks, permissions, and gang storage.
- Configurable gang territory and competition systems.
- Illegal missions, configurable crime rewards, and police alerts.
- Weapon confiscation and evidence handling.
- Optional custom crafting tables and recipes for roleplay equipment.
- Configurable PvP rules, cooldowns, and combat logging penalties.
- Anti-exploit validation for all custom items.
Do not require a separate client mod for every weapon. Explain which weapon behaviors can be implemented through Paper and which need resource packs or additional supported dependencies.
- Quests, XP, Rewards, and VIP
Implement:
- Daily and weekly quests.
- Job progression and character XP.
- Levels, configurable rewards, and achievement tracking.
- Daily login rewards.
- Playtime rewards.
- Event rewards and seasonal challenges.
- Configurable VIP and Imperial tiers.
- Permission-based perks, cosmetic effects, configurable rewards, and shop discounts.
- Optional double jump, bonus XP, and money multipliers.
- Configurable hearts, particles, and visual effects where compatible.
- Reward claim history, cooldowns, and anti-abuse checks.
All rewards must be configurable. Prevent players from claiming rewards multiple times through reconnects or repeated clicks.
- Roleplay Chat, HUD, and Scoreboard
Build:
- Arabic local roleplay chat.
- Configurable global, local, department, business, and private channels.
- Proximity-based chat with supported distance settings.
- Character names and roleplay identity display.
- Optional /me and /do roleplay actions.
- Configurable scoreboard with money, job, rank, character name, and server information.
- Action-bar and boss-bar status indicators.
- Hunger and thirst HUD.
- Notification system for transactions, fines, purchases, and emergency calls.
- Customizable chat formatting and staff visibility.
- Anti-spam, mute, report, and moderation tools.
Provide configurable layouts for Java and Bedrock because some visual features differ between the two client types.
- Lobby and Four Gameplay Sections
The network must contain a Lobby and four gameplay sections:
- Roleplay.
- Survival.
- Adventure.
- PvP.
Implement configurable portal locations, teleport destinations, welcome messages, section-specific permissions, and game rules.
Lobby requirements:
- Arabic welcome interface.
- Four clearly labeled portals.
- Navigation GUI as a fallback.
- Protected spawn.
- No unauthorized building or damage.
- Crafting disabled in the lobby.
- Configurable player visibility and cosmetics.
- Safe teleportation and spawn recovery.
Roleplay:
- Enable the integrated PR MC roleplay systems.
Survival:
- Normal survival gameplay with configurable crafting, economy, protection, and progression.
Adventure:
- Configurable quests, adventure maps, NPCs where supported, and protected objectives.
PvP:
- Configurable arenas, combat rules, kill statistics, rewards, and respawn locations.
Allow these worlds to be configured independently. If a separate server network or Velocity proxy is required, provide the correct architecture and configuration instructions instead of pretending that a single Paper plugin creates multiple independent servers automatically.
- Staff, Permissions, Whitelist, and Security
Implement:
- Staff ranks and granular permissions.
- Arabic staff GUI.
- Player inspection tools.
- Ban, mute, kick, warn, and temporary punishment management.
- Reports, ticket handling, and moderation history.
- Whitelist management.
- Staff notes and administrative audit logs.
- Configurable anti-cheat integration.
- Rate limits and protection against command abuse.
- Permission checks for every privileged action.
- Secure configuration defaults.
- No hardcoded secret passwords.
- No hidden remote access or telemetry.
- Safe handling of UUIDs, usernames, Floodgate identities, and account links.
Do not implement a custom anti-cheat that claims to detect every cheat. Provide compatible integration points for an established anti-cheat and clearly document the limits of detection.
- Database and Data Integrity
Use SQLite as a convenient default for a single-server installation, with an optional MySQL/MariaDB backend for larger deployments.
Persist:
- Accounts and characters.
- Wallets, bank accounts, and transactions.
- Jobs and businesses.
- Vehicles and ownership.
- Properties, keys, and permissions.
- Inventory and licenses.
- Police records, fines, and jail sentences.
- EMS-related persistent records.
- Quests, levels, rewards, and achievements.
- Staff actions, reports, and configuration.
Requirements:
- Database schema migrations.
- Safe startup and shutdown.
- Prepared statements and input validation.
- Transaction integrity.
- Automatic scheduled backups with retention settings.
- Configurable restoration procedures.
- Database connection recovery and clear error logs.
- Never silently reset player data when a database fails.
- No plaintext passwords or unnecessary personal information.
- Configuration and Installation
Generate:
- "plugin.yml".
- "config.yml".
- Arabic language files.
- Database configuration examples.
- Job, vehicle, property, shop, reward, and section configuration files.
- Permission documentation.
- Dependency list with exact supported versions.
- Installation and update instructions.
- First-start setup wizard or clearly documented setup commands.
- Example configuration for Paper 1.20.1.
- Geyser and Floodgate setup guidance.
- ViaVersion/ViaBackwards setup guidance.
- Resource pack instructions if needed.
- Backup, migration, and recovery instructions.
The plugin must start safely when optional systems are disabled. Missing dependencies must produce clear errors rather than corrupting data.
- Required Deliverables
Produce:
- Complete Java source code.
- A successfully compiled "PRMC-UltimateRP.jar".
- A build file using Maven or Gradle.
- All required configuration and language files.
- SQL schema and migration files.
- A dependency list with direct official download links.
- Installation documentation in Arabic.
- Configuration documentation in Arabic.
- A compatibility matrix for Paper, Java clients, Bedrock clients, and supported client versions.
- Automated unit tests and integration tests wherever practical.
- A known-limitations document.
- A clean project directory without missing source files or unexplained build errors.
Do not provide a JAR that has not actually been compiled. Do not claim that a feature is complete unless its implementation and tests exist. If the full project exceeds the available generation limits, build it incrementally as modules in the same project, preserve a shared API and database schema, and continue until all modules compile together.
- Acceptance Tests
Before declaring the plugin complete, verify:
- The plugin starts on Paper 1.20.1.
- Java and Bedrock users can join when Geyser and Floodgate are configured correctly.
- Arabic menus open and their buttons execute the intended actions.
- Purchases, bank transfers, and rewards cannot duplicate money.
- Property, garage, and vehicle ownership survives a server restart.
- Unauthorized players cannot enter protected properties or access restricted storage.
- Police, EMS, jobs, and business permissions are enforced server-side.
- The four sections have independent configurable rules.
- The lobby prevents unauthorized building and crafting.
- Data remains intact after shutdown and restart.
- The server remains responsive with a realistic load test approaching 60 players.
- All external dependencies and known limitations are documented.
تأسيس إضافة Paper 1.20.1 وملفات البناء والإعداد واللغتين العربية والإنجليزية.
تنفيذ SQLite مع حفظ الحسابات والشخصيات واختيار الشخصية ومبالغ المحفظة والبنك.
ربط أوامر إنشاء الشخصية والاختيار والتحويلات المالية بقائمة تفاعلية عربية.
توثيق التثبيت والاعتماديات والميزات غير المنفذة في هذه الدفعة.
أُنشئت الدفعة التأسيسية: إضافة Paper 1.20.1/Java 17، تخزين SQLite غير متزامن، إنشاء الشخصيات واختيارها، عمليات محفظة وبنك ذرّية، قائمة تفاعلية، وأوامر عربية مع الإنجليزية اختيارياً. أُضيفت أيضاً ملفات الإعداد والترحيل والتثبيت والقيود المعروفة.
هذه ليست المواصفات الكاملة: أنظمة الوظائف والشرطة وEMS والمركبات والعقارات والهاتف وغيرها موثقة كغير منفذة في KNOWN_LIMITATIONS.md. لم أُنتج JAR ولم أزعم اجتياز البناء أو اختبارات القبول.
للبناء وتنزيل JAR في Kodari: اضغط Compile من الشريط العلوي (أو ⋮ → Compile Project على الهاتف)، ثم Compile في النافذة، وبعد نجاح البناء اضغط Download.
طب كمل الملفات لحد الاخر اعمل كله
راجعت المشروع: ما فيه ملفات مقطوعة أو أجزاء ناقصة عمدًا؛ لكنه إصدار تأسيسي محدود، وليس نظام الـPR RP كاملًا. ملف KNOWN_LIMITATIONS.md يذكر أنظمة غير مطبّقة كثيرة، مثل تعديل السيرة والمظهر، أدوات الإدارة، الوظائف، المركبات، العقارات، الهاتف، والشرطة وEMS.
ما أقدر أحدد معنى «كل شيء» لهذه الأنظمة من دون مواصفات سلوكها. حدّد الأنظمة التي تريدها أو أرسل المواصفات؛ وأقدر أبدأ بتعديل سيرة الشخصية ومظهرها.
اعمل كل حاجه بسرعه ضروري ومش لازم تختبرها
تعديل السيرة والمظهر.
أدوات الإدارة.
الوظائف.
المركبات والعقارات.
الهاتف.
أنظمة الشرطة وEMS.
هبدأ بالأولى وأكمل الباقي بالتتابع، من غير تشغيل اختبارات.
أُنجز تعديل السيرة ووصف المظهر وحفظهما في قاعدة البيانات. أنتقل لأدوات الإدارة.
أضفت أوامر إدارة لعرض شخصيات اللاعب المتصل، تفاصيل شخصية، وحذفها بتأكيد وصلاحية
prmc.admin. أتابع الوظائف.
أضفت وظائف قابلة للإعداد، اختيار وظيفة، ومطالبة راتب بفترة انتظار محفوظة في قاعدة البيانات. أنتقل للمركبات والعقارات.
أضفت شراء/بيع العقارات والمركبات كملكية محفوظة، مع الأسعار من الإعدادات. المركبات هنا سجل ملكية فقط، بلا موديلات أو قيادة مخصصة. أتابع الهاتف.5. الهاتف: سأضيف إرسال رسائل محفوظة وصندوق وارد داخل اللعبة، مع قصر الإرسال حالياً على اللاعبين المتصلين.
أضفت رسائل هاتف محفوظة وصندوق وارد للرسائل غير المقروءة، مع تنبيه عند وصول الرسالة. أتابع الشرطة وEMS.
نفّذت الأنظمة التي حددناها، مع حفظ البيانات في SQLite وإضافة ترحيلات قاعدة البيانات اللازمة:
السيرة ووصف المظهر:
/pr biography <نص>و/pr appearance <نص>.الإدارة:
/pr admin list <لاعب متصل>و/pr admin info <id>و/pr admin delete <id> confirm.الوظائف:
/pr job join <id>و/pr job work <id>، مع فترة انتظار محفوظة.العقارات والمركبات: قوائم شراء وبيع وملكية عبر
/pr propertyو/pr vehicle.الهاتف: إرسال رسائل للاعبين المتصلين وصندوق وارد عبر
/pr phone.الشرطة وEMS: صلاحيات مناوبة وبلاغات محفوظة عبر
/pr dutyو/pr reportو/pr dispatch.
لم أشغّل الاختبارات، حسب طلبك. ملاحظة: المظهر وصف نصي وليس تغييراً لسكين اللاعب؛ وملكية المركبة أو العقار تُسجّل في قاعدة البيانات فقط، من دون موديلات قيادة أو حماية مناطق فعلية.
package com.prmc.ultimaterp;
import com.prmc.ultimaterp.command.PRCommand;
import com.prmc.ultimaterp.gui.MenuService;
import com.prmc.ultimaterp.storage.SqliteStore;
import org.bukkit.ChatColor;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.util.Locale;
public final class PRMCUltimateRP extends JavaPlugin implements Listener {
private SqliteStore store;
private FileConfiguration messages;
private MenuService menuService;
@Override
public void onEnable() {
saveDefaultConfig();
saveResource("messages_ar.yml", false);
saveResource("messages_en.yml", false);
loadMessages();
store = new SqliteStore(this, getConfig().getString("database.file", "data/prmc.db"));
try {
store.initialize();
} catch (Exception exception) {
getLogger().severe("SQLite initialization failed. Player data was not reset: " + exception.getMessage());
getServer().getPluginManager().disablePlugin(this);
return;
}
menuService = new MenuService(this);
getServer().getPluginManager().registerEvents(this, this);
getServer().getPluginManager().registerEvents(menuService, this);
getCommand("pr").setExecutor(new PRCommand(this));
}
@Override
public void onDisable() {
if (store != null) {
store.close();
}
}
@EventHandler
public void onJoin(PlayerJoinEvent event) {
store.ensureAccount(event.getPlayer().getUniqueId()).thenCompose(ignored ->
store.setServicesOffDuty(event.getPlayer().getUniqueId())).exceptionally(exception -> {
getLogger().severe("Could not initialize account " + event.getPlayer().getUniqueId() + ": " + exception.getMessage());
return null;
});
}
@EventHandler
public void onQuit(PlayerQuitEvent event) {
store.setServicesOffDuty(event.getPlayer().getUniqueId());
}
public SqliteStore store() {
return store;
}
public MenuService menus() {
return menuService;
}
public String text(String key) {
return color(messages.getString(key, key));
}
public String text(String key, String... replacements) {
String value = text(key);
for (int index = 0; index + 1 < replacements.length; index += 2) {
value = value.replace("%" + replacements[index] + "%", replacements[index + 1]);
}
return value;
}
public void send(Player player, String key, String... replacements) {
player.sendMessage(text("prefix") + text(key, replacements));
}
public void runOnMain(Runnable task) {
getServer().getScheduler().runTask(this, task);
}
private void loadMessages() {
String language = getConfig().getString("language", "ar").toLowerCase(Locale.ROOT);
File file = new File(getDataFolder(), "messages_" + language + ".yml");
if (!file.isFile()) {
file = new File(getDataFolder(), "messages_ar.yml");
}
messages = YamlConfiguration.loadConfiguration(file);
}
private String color(String value) {
return ChatColor.translateAlternateColorCodes('&', value);
}
}