Editing Factions Bank Balance

Discussion in 'Plugin Development' started by SoThatsIt, Oct 9, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    SoThatsIt

    Using the factions api how would i go about viewing its bank balance and then editing it. I have skimmed through all of the methods of the faction class but there is nothing close to editing its money/bank balance.
     
  2. Offline

    Mathias Eklund

    Never used factions api, i use my own plugin for factions :) But i believe it would work if you get faction name and the faction bank or something?
     
  3. Offline

    SoThatsIt

    Wow, so helpful! no offence but before you post something read it back and think if it would help someone at all, because that does not.
     
  4. Offline

    Mathias Eklund

    I'm sorry for trying, wont happen again.
     
  5. Offline

    SoThatsIt

    you arent even giving a suggestion as to what i might be able to do to do this, so dont go all 'im sorry for trying'

    anway, i figured it out if anyone wants to know you use the Money class in MCore, then you do Money.add(Faction, Amount), you can also do Money.subtract, Money.get, Money.has or Money.set. <- are all methods

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
Thread Status:
Not open for further replies.

Share This Page