Inactive [ECON] YouLoan v1.1 - Loan money and pay it back with rent and day interest [Register] [1317]

Discussion in 'Inactive/Unsupported Plugins' started by jeroende2e, Sep 16, 2011.

  1. Offline

    jeroende2e

    YouLoan
    by jeroende2e

    <font color="rgb(0, 0, 0)">►</font> What is it?
    YouLoan give you the ability to loan money using Econ plugins.
    Admin's can set a rent percentage on the money players lend.
    They can also set a max on how much people can lend.
    They can set two maxes, which have different permissions.
    Players can only have one loan at a time.
    When they have paid there last loan they can get a new one.
    Every day there will be interest. also configurable.

    <font color="rgb(255, 0, 0)">IMPORTANT</font>
    <font color="rgb(255, 0, 0)">if You used 1.0 and updated 1.1,</font>
    <font color="rgb(255, 0, 0)">people who where loaning money at that point won't get Day Intrest.</font>
    <font color="rgb(255, 0, 0)">They either need to to pay there loaned money back to get day interest again, or youw ould have to modify the data.yml file.</font>

    I changed the name cause im in the YouDev team from the YouCombat server. all plugins have "You" before it, so i did that too.

    <font color="rgb(0, 0, 0)">►</font> Requirements
    You need 2 plugin to let this plugin work.
    An Economie plugin, these plugins do i support:
    - BOSE 6/7
    - iCo 4/5/6
    - EE17
    - MCUR

    And Register. Why register? Register is a plugin wich detects certain Econ plugins. this makes coding way better. also for iCo6 it is recommanded.
    All info about Register here

    <font color="rgb(0, 0, 0)">►</font> Downloads
    v1.1 <Edit by Moderator: Redacted bit url>

    <font color="rgb(0, 0, 0)">►</font> Instalation

    1. Download the Register, and YouLoan jar.
    2. Start your server. or reload.
    3. Make sure you see no errors.
    If you get any errors, please report them.
    4. Set the config and permissions if you want.
    5. And you are done!

    <font color="rgb(0, 0, 0)">►</font> Commands
    Just use /LoanMoney in game, and the in-game help menu will lead you.

    <font color="rgb(0, 0, 0)">►</font> Permissions
    <font color="rgb(0, 0, 0)">►</font> Changelog

    - v1.1:
    Added ay interest.
    Support for more Econ plugins
    Works with build #1317
    - v1.0:
    Release.

    <font color="rgb(0, 0, 0)">►</font> Todo

    <font color="rgb(0, 0, 0)">►</font> Inform op's/mod's if someone doesn't pay his money back in x days.
    <font color="rgb(0, 0, 0)">►</font> Jail Players who don't pay back in x days.
    <font color="rgb(0, 0, 0)">►</font> If you don't pay back alot, you can lend less.
    <font color="rgb(0, 0, 0)">►</font> Spout. when i have time to make GUI
    <font color="rgb(0, 0, 0)">►</font> Day interest

    If you have any good idea's please post them here!

    For bugs also place a post.
    if you have an error log please include it. Thanks!

    I hope you like this plugin and thanks for using!
     
    Last edited by a moderator: Feb 21, 2017
    tombik and MuisYa like this.
  2. Offline

    MuisYa

    Awesome and good plugin, cant wait for newer versions!
     
  3. Offline

    jeroende2e

  4. Amazing plugin! Love it!

    I can't wait for the spout and all the other upcoming features!

    Thumbs up!
     
  5. Offline

    Zaros

    Suggestion: Add a configurable amount of interest per game day.
     
  6. Offline

    jeroende2e


    How do you mean intrest, like the iConmy intrest with getting money,
    Or something else?
     
  7. Offline

    MuisYa

    Interest PER day.
    So not at the end you need to pay more, but everyday you loan it: 10% interest.
    I like this idea :D
     
  8. Offline

    Zaros

    @jeroende2e @ MuisYa Yes, adding interest onto the loan. It makes it more expensive to have a long standing loan, and the interest should cap out.
     
  9. Offline

    jeroende2e

    @MuisYa @Zaros

    I was think of that too, though i didn't know how to then :p
    I'll try to add this. And also give jail support to it.
    Auto jail :D

    Thanks for the idea
     
  10. Offline

    Zaros

    @jeroende2e
    It has something to do with the sceduler. You would want to find out how long a minecraft day is in ticks, and then have the sceduler add a variable percentage.
     
  11. Offline

    jeroende2e

    Yeah i know how scheduler works. But i want to make sure that the days is in time with real day.
    Im at school atm, so when i get home and done with ZZdunegonz party system i will take a look at it.
    Unless i finish party system at school, then i can try to fix it too :p
     
  12. Offline

    Zaros

    I don't... yet :oops:
    Same! But programming ftw.
     
  13. Offline

    jeroende2e

    @Zaros

    Haha, it isn't that hard. Just search a good opensource plugin with scheduler.
    And then learn and try :p

    And hahaha, guess what i did it school today :p
    Programming :DDDD
    I make like 50% of the plugins on school :p

    But im finaly freee :D
     
  14. Offline

    MuisYa

    Or just get the server time. I think there is API on that...
    Im almost 100% sure.
     
  15. Offline

    Zaros

    Will do, open for suggestions. :cool:

    Lucky, mines just Pseudocode bs and a bit of Raptor...
    They changed the next class from VB to Java, so I kinda excited.
    At the same time, I'm forbidden to run Eclipse on school computers. Even off my flash drive... :(
     
  16. Offline

    jeroende2e

    Every 20 mins 10% / 4% interest. Ehm.. In 1 hour. 60% extra to pay back.
    What is the point of lending, if you can't pay it back cause you don't earn more then you have to pay.

    Like:
    In our server you get 15 coins per 15 mins. So let's say 60 per hour. Now let's say you loaned 100.
    You can then pay the interest. But not the rest of the money. So that should be configurable ALOT.

    Then it would work :D

    And @MuisYa

    READ YOU'RE FRIGGING TEXTMESSAGE I SENT TO YOU!

    :3 <3

    @Zaros

    Yeah i have dyslexie so i have my own laptop. With my own plugins. And my own stuff :D
    Win for me :p
    And alot of classes are so borring. so i can do 2 hour full coding :D
    Yeah life is good ;p

    And when i get home i will search for a good opensource scheduler

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  17. Offline

    Zaros

    @jeroende2e

    Thanks!

    Wish I had a laptop, fried the graphics card on my last one with to much gaming:oops:

    I haz no moniez...
     
  18. Offline

    jeroende2e

    @Zaros

    Hahaha, that sucks

    Yeah i have a mini-laptop.
    I can code on it
    Run a little server to test
    Enough batterie to code 2 with no batt

    An that is all i need.
    Just buy one from someone else. And get it very cheap :p
     
  19. Offline

    Zaros

    @jeroende2e

    I need one that can run Minecraft. I almost always test my plugins via Client. Also, it isn't going to run Windows. Ubuntu 11.04 after I throw in a cheap/small SSD for the boot drive ;D.

    /thread jack
     
  20. Offline

    jeroende2e

    @Zaros

    yeah mine can run minecraft. so that's ok.
    is Ubunut so much better then windows?
    i have a Ubunut computer standing nezt to the one i use xD
    the only problem is it has no lan :/

    so that's pritty lame.

    btw, a little bit of scheduler here
     
  21. Offline

    Zaros

    My desktop is set to dual boot, although I always go to windows. The issue is that my sound card does not support ubuntu 11.04 and I am a huge user of mumble. It also has less bloat, loads faster (especially with a ssd) and has alot more customization. I'm no adv linux nerd, but I like it alot better.

    As for the sceduler:

    Code:
    myPlugin.getServer().getScheduler().scheduleSyncDelayedTask(myPlugin, new Runnable() {
    
        public void run() {
            getServer().broadcastMessage("This message is broadcast by the main thread);
        }
    }, 60L);
    
    I just call 'Runnable()' to start the thread, and it runs once after (60/20=) 3 seconds?
     
  22. Offline

    jeroende2e

    @Zaros

    yes. i prefer this though:

    SomeWhere in your main:

    Code:
         public void startDelayedCode(){
                getServer().getScheduler().scheduleAsyncDelayedTask(this, new RunStart(this), 60l);
            }
    and then in your OnEnable(or on command)

    Code:
    startDelayedCode();
    Andthen in your runnable:

    Code:
    public class RunStart implements Runnable {
         private final Main plugin;
    
         public RunStart(Main plugin) {
            this.plugin = plugin;
         }
    
        public void run() {
            // TODO Auto-generated method stub
    
        }
    
    }
    now this task will run 3 secs after i called the "startDelayedCode();" somewhere.
    if you want it to be a repeat task:

    Code:
    .scheduleAsyncRepeatingTask(this, new RunStart(this), 60L, 600L)
    in this case it will run every 10 sec (200l) and when it runs. it will wit 3 sec (60L)

    Get it ;p
     
  23. Offline

    MuisYa

    Nice i also like ubunut..... Ubuntu...

    You are talking about how you code in a Plugin Advertation -____-

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  24. Offline

    jeroende2e

    @MuisYa
    SSSSSSSTTTTTT!

    i will make a forum for it.
    but where....
     
  25. Offline

    Zaros

    @MuisYa Guilty as charged :oops:

    @jeroende2e Thanks for the short tutorial, I'll play around with it after work.
     
  26. Offline

    jeroende2e

    @MuisYa
    i know so wll how you did prenounce Ubunutu
    @Zaros
    I made a thread here :D

    we can talk about anything there.
     
  27. Offline

    Zaros

    will do, gotta head to class
     
  28. Offline

    MuisYa

    wll? prenounce? Ubunutu? Whut? You chinese?
     
  29. Offline

    jeroende2e

    Update:
    Working on RealTime interest .
    work: 50%

    [||||||||||::::::::::]
     
  30. Looks great, you should shorten the command to /loan, if that does not clash with anything.
     

Share This Page