🐾Pet Transfer System
🐾 Pet Transfer System
📋 Overview
The Pet Transfer System enables safe and validated transfer of pets between players. It ensures pets are not active (spawned) during transfers and that recipients do not already have active pets. The system supports optional transfer fees requiring recipient confirmation.
Ideal for servers with pet systems featuring inventories and animations, providing a seamless and secure pet ownership transfer process.
Perfect for:
🐾 Secure pet ownership transfers with validations
💰 Managing optional transfer fees between players
🎮 Enhancing player interaction with pet trading features * 🔔 Clear notifications and Discord logging for auditing
✨ Key Features
🖥️ Interactive Pet Transfer Menu
User-friendly UI for selecting pets, viewing detailed status, skills, and inventory
✅ Robust Validations
Prevents transfers of active pets and ensures recipient has no active pets
💰 Optional Transfer Fee
Supports configurable fees with mandatory recipient approval before transfer
🔔 Notifications and Discord Logs
Clear communication with players and detailed administrative logging
Complete Feature List
✅ Interactive Pet Transfer Menu – Easy selection and detailed info on pets for transfer
✅ Active Pet Transfer Prevention – Ensures pets currently out cannot be transferred
✅ Recipient Pet Check – Prevents transfer if recipient already has an active pet
✅ Configurable Transfer Fees – Supports fees with recipient approval and validation
✅ Clear Notifications – Informative messages guide players through the transfer process
✅ Discord Logging – All transfer actions, successes, failures, and declines are logged
✅ Robust Server-Side Validation – Validations happen server-side to prevent cheating or desyncs
✅ Flexible Configuration – Easily enable/disable system and adjust fee
🎮 How to Use
Accessing the Menu

Command:
/pettransfer
What Happens:
1️⃣ System Enable Check
System verifies if Pet Transfer is enabled in configuration
If
PetTransfer.enable = false, you'll see "Pet transfer is currently disabled!" notificationCommand fails gracefully with no menu opening
2️⃣ Pet Ownership Check
Server fetches all pets owned by you from database
If you have no pets, you'll see "You have no pets to transfer" notification
If you have pets, menu proceeds to open
3️⃣ Menu Opens
Interactive menu appears showing all your pets
Each pet displays:
Pet Name and ID
Model/Breed information
K9 Status (Yes/No indicator)
Inventory Count (number of items)
4️⃣ Pet Details View
When you select a pet, you see detailed information organized in sections:
📋 Pet Information
Pet ID
Pet Name
K9 Status (Yes/No)
💚 Pet Stats
Health percentage
Hunger percentage
Thirst percentage
Stamina percentage
Loyalty percentage
Happiness percentage
🛡️ K9 Skills (Only for K9 pets)
Sniff level
Resistance level
Agility level
Attack level
📦 Pet Inventory
List of items with quantities and slots
Hidden items (like "k9activation") are automatically filtered out
Shows "Inventory (Empty)" if no visible items
🔄 Transfer Pet Section
Input field for Target Player ID
Input field for Transfer Fee (if enabled in config)
Instructions text
Confirm Transfer button
5️⃣ Transfer Initiation
When you click Confirm Transfer:
System validates all inputs (player ID, fee range)
Checks if pet is stored (not active/spawned)
Checks if recipient has no active pets
If fee is set, sends confirmation request to recipient
You see "Waiting for target player to confirm transfer and fee..." notification
6️⃣ Recipient Confirmation (If fee is enabled)
Recipient receives a popup with:
Sender's name
Pet name being transferred
Fee amount
Accept or Decline buttons
7️⃣ Transfer Completion
If accepted: Money transferred, pet ownership updated, both players notified
If declined: Both players notified, no changes made
If insufficient funds: Both players notified of failure
Overview

How It Works
1️⃣ Set Transfer Fee
Sender inputs a fee amount within configured minimum and maximum bounds.
2️⃣ Recipient Prompt
Recipient receives a detailed prompt including sender’s name, pet info, and fee.
3️⃣ Approval Required
Recipient must accept or decline the fee to proceed.
4️⃣ Funds Check & Transaction
System verifies recipient's funds and processes payment if approved.
5️⃣ Completion or Cancellation
Transfer completes on success; otherwise, appropriate notifications are sent.
Configuration Options
enableCharge
Enable or disable the fee system
true
minCharge
Minimum allowed fee amount
50
maxCharge
Maximum allowed fee amount
1000
Important Notes
🧾 The recipient pays the fee, not the sender.
⚠️ Transfers only complete after recipient’s explicit acceptance.
⛔ Fees outside min/max trigger validations and rejection.
🔒 All fee validations happen server-side to prevent abuse.
📜 Full transaction and transfer logs are posted to Discord for audit.
Bring depth and fairness to your pet trading economy with this intuitive transfer fee system!
⚙️ Configuration
Permission Configuration
🎯 Menu Navigation Complete Review

❓ Frequently Asked Questions (FAQ)
Last updated