Investment Earn money while staying AFK in an area 1.3

This plugin allows your players to earn money while staying afk in an area.
Supported software
Tags
Tags
economy fully configurable optimized
DssCrTD.jpg

Code:
mysql:
  enabled: false
  hostname: 'localhost'
  port: 3306
  username: "root"
  password: ""
  database: "MyDatabase"
  playerstable: "PlayerTable"
settings:
  #ProtocolLib is required !
  vanish: false

  #Locations A and B that define the cube of the area.
  investment-zone: "world:0:0:0;world:0:0:0"

  #Allow or not the refund
  refund-enable: true
  #Define the percentage of money that the player recovers when he gives up his investment.
  refund-percentage: 50
  #Commands executed when the player finish his investment.
  commands-when-player-finish-investment:
    - "give %player% diamond 1"

  #Every ticks that pass before checking the player's location
  #to know if he is in the zone or not.
  timer-check: 20

  #Enable to activate the time limit that the player can invest per day.
  limit-investment-time: false
  #Define time limit that the player can invest per day.
  limit-investment-time-in-second: 36000
Code:
name: "&9Choose your investment"
size: 54
items:
  idle-items:
    id: 160
    data: 14
    name: ""
    amount: 1
    idle-items-slots:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      - 17
      - 18
      - 26
      - 27
      - 35
      - 36
      - 44
      - 45
      - 46
      - 47
      - 48
      - 49
      - 50
      - 51
      - 52
      - 53
  # The name of the section must be the same as the name of the investment
  investments-items:
    investment1:
      id: 399
      data: 0
      name: "&6&l30 minutes"
      lore:
        - ""
        - " &6&l> &fInvestment: &b10,000$"
        - " &6&l> &fReward: &b25,000$"
        - ""
        - "&fStay in the area for &b30 minutes"
        - "&fto get your reward."
      amount: 1
      slot: 13
  other-items:
    emerald:
      data: 0
      name: "&6&lTime is money !"
      id: 264
      amount: 1
      slot: 49
Code:
prefix: '&6[&fInvestment&6] '
help-message:
- '&f&m------------------------------'
- '&6Investment Commands:'
- ''
- ' &7/&finvestment &8- &6Open Main Gui'
- ' &7/&finvestment stop &8- &6Abandon your current investment'
- ''
- '&f&m------------------------------'
help-message-admin:
- '&f&m------------------------------'
- '&6Investment Commands:'
- ''
- ' &7/&finvestment &8- &6Open Main Gui'
- ' &7/&finvestment stop &8- &6Abandon your current investment'
- ' &7/&finvestment create <name> <timeToStay> <toInvest> <reward> &8- &6Create a
  new investment'
- ' &7/&finvestment delete <investment> &8- &6Delete an investment'
- ' &7/&finvestment setZone &8- &6Set the main zone'
- ' &7/&finvestment players &8- &6Know the number of players in the investment zone'
- ' &7/&finvestment reload &8- &6Reload configs'
- ''
- '&f&m------------------------------'
on-enter-investment: '%prefix% &fYou have &6entered &fthe &6investment zone &f!'
on-leave-investment: '%prefix% &fYou &6left &fthe &6investment zone &f!'
no-permission-investment: '%prefix% &cYou do not have permission to invest in that
  !'
already-exist-investment: '%prefix% &cThis investment already exists !'
not-exist-inestment: '%prefix% &cThat investment doesn''t exist !'
created-investment: '%prefix% &fThe investment &6%investment% &fhas been created !'
deleted-investment: '%prefix% &fThe investment &6%investment% &fhas been deleted !'
abandon-investment: '%prefix% &cYou have abandoned your investment! You have been
  reimbursed &6$ %refund% &f!'
on-invest: '%prefix% &fYou have invested &6%invested%$ &fin the &6%investment% &farea
  !'
refunds-disable: '%prefix% §cRefunds are disable !'
on-invest-finish: '%prefix% &fYour &6%invested% $ &finvestment has given you &6$ %reward%
  &f!'
players-in-area: '%prefix% &fPlayers in investment zone: &6%size%'
not-invested: '%prefix% &cYou have not invested yet !'
already-invested: '%prefix% &cYou have already invested in something !'
repeating-message: '%actionbar%&fTime remaining: &6%hours%&fh &6%minutes%&fm &6%seconds%&fs.'
repeating-message-noinvestment: '%actionbar%&6&lNo investment in progress &7- &b&lDo
  &6&l/investment &b&lto start'
repeating-message-time-limit-exceed: '%actionbar%&cYou cannot invest more time today
  !'
investment-set-zone: '%prefix% &fThe &6investment zone &fhas been set !'
no-enough-money: '%prefix% &cYou do not have enough money to invest in that !'
selection-not-exists: '%prefix% &cPlease choose a selection !'
none-zone-defined: '%prefix% &cNone zone has been set ! Please contact an administrator.'
not-a-number: '%prefix% &c%args% must be a number !'
invalid-arguments: '%prefix% &cInvalid Arguments !'
no-permission: '%prefix% &cYou do not have permission to do that !'
open-gui: '%prefix% &fOpening the investment menu...'
config-reloaded: '%prefix% &aConfig reloaded !'
Commande CustomEntity 2.png
  • Commande CustomEntity 2.png
    Commande CustomEntity 2.png
    145.1 KB · Views: 2,322
  • inCollage_20190407_234328270.jpg
    inCollage_20190407_234328270.jpg
    1.1 MB · Views: 228

Latest updates

  1. Update - 1.3

    - [✔️] Now compatible with the latest version of **WorldEdit (7.0.0)** - [✔️] You can now create...
  2. Update - 1.2.8

    - [—] Fix messages generation
  3. Update - 1.2.7

    - [✔️] You can now define max account with the same ip in the investment zone

Latest reviews

Perfect plugins, however if he is not in the zone he gets kicked automatically?
CustomEntity
CustomEntity
Thanks for your review ! Yes if a player is outside the zone he will kick.
This plugin is very cool because he increase AFK players
CustomEntity is a nice guy and a really fast/good dev! :)
CustomEntity
CustomEntity
Thanks for the review ! It's really encouraging for me.
Perfect plugins, so you discord link is dead !
CustomEntity
CustomEntity
Thanks for the review ! The discord link has been updated !
Working very well, not lagging server, thx ! :D + 80 players in 2 days ♥
very good plugin. Very clean, well optimized and easy to use. I recommend it for all servers;)

Author

Author
CustomEntity
Downloads
40
Type
Digital product
License duration
Unlimited
Price
10.00 USD
Views
4,542
First release
Last update
Rating
5.00 star(s) 5 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.