Sueta

MyLoans

1.0.0

A lightweight loans system

·Plugin

MyLoans

MyLoans is a lightweight and user-friendly plugin that introduces a loans system to your server. Players can borrow, repay, and request loans while maintaining credit scores

Features:

  • Borrow Funds: Players can take loans with configurable limits and penalties.
  • Repay Loans: Timely repayments improve credit scores.
  • Player-to-Player Loans: Request and manage loans between players with ease.
  • Punishment Effects: Apply effects like blindness or slowness for missed payments.
  • Persistent Data: Real-time saving ensures no data loss during crashes or restarts.
  • User-Friendly Commands: Intuitive commands for all loan-related actions.
  • Customizable Settings: Adjust loan parameters to fit your server's needs.


How It Works:

  1. Borrowing: Use /loan take <amount> to borrow funds within set limits.
  2. Repayment: Use /loan pay <amount> to repay loans; timely payments boost credit scores.
  3. Player Loans: Request loans from others with /loan request <player> <amount>.
  4. Penalties: Missed payments incur fees, credit score drops, and potential effects.
  5. Credit Impact: Maintain high credit scores with punctual payments; late payers face consequences.


Commands:

  • /loan take <amount> - Borrow money from the server.
  • /loan pay <amount> - Repay your loan.
  • /loan status - View your loan balance and credit score.
  • /loan credit - Check your current credit score.
  • /loan request <player> <amount> - Request a loan from another player.
  • /loan accept - Accept a loan request.
  • /loan decline - Decline a loan request.


Configuration Options:

  • Max Loans Per Player: Limit the number of loans a player can have
  • Maximum Loan Amount: Set the upper limit for loans.
  • Repayment Interval: Define the interval for repayment checks.
  • Late Fees and Penalties: Configure late fees and credit score penalties.
  • Credit Score Settings: Set starting scores and adjust rewards/penalties for player behavior.

** More features coming soon! **

Config.yml
loan:
  max_loans: 3
  max_loan_amount: 500
  repayment_interval_minutes: 50
  late_fee: 5.0
  punishment_effect_duration: 1000

credit:
  starting_score: 950.0
  max_score: 950.0
  new_loan_penalty: 20.0
  on_time_payment_bonus: 15.0
  late_penalty: 10.0

Similar projects

Plugin →