Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Money for murder

Comments in 'Plugin Development' started by egr7v8, Mar 19, 2015.

  1. egr7v8
    Offline

    egr7v8 New Member

    Joined:
    Dec 5, 2014
    Posts:
    17
    Minecraft User:
    egr7v8
    How to charge money to the account of another player in the murder ?
    EconomyAPI
    Help me, please
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    PHP:
    $this->getPlugin()->getServer()->getPluginManager()->getPlugin("EconomyAPI")->reduceMoney($player$amt)
    where $player is a Player object and $ant is an integer (maybe whole number, not sure)

Share This Page

Advertisement