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

Pocketmoney in prefix

Comments in 'Plugin Development' started by Jag, Jun 7, 2014.

  1. Jag
    Offline

    Jag Active Member

    Joined:
    Mar 26, 2014
    Posts:
    53
    Minecraft User:
    Jag
    I am looking to add the amount of a players pocketmoney to their prefix. I use -uchat- which shows kills, but I'd like to change it to show pocket money, so the plugin will need to search a different config file. I can do some customization myself so I am not looking for someone to do the work for me. But any help anyone could provide would be appreciated. The primary help I would need is how would I get it to search a the right config file using getmoney. Thank you.

    p.s. Can I turn off spell check in my posts? its pretty annoying when writing a plugin name.
  2. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    I dont know if it is possible it is probably something with a loop that updates the prefix of the player with to the variable where there money is stored in(Once again iam NOT sure)

    And are you using a tablad/phone that has spellcheck enabled?or are you using a computer?
  3. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    Can you please give me both of the plugins? This isn't very hard to do.
  4. Renzo
    Offline

    Renzo Active Member

    Joined:
    Mar 12, 2014
    Posts:
    96
    Minecraft User:
    Renzo_4
    He uses PocketMoney and UChat
  5. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    Use this
    For starting you must detect player
    PHP:
    $user $issuer->username;
    \\
    thenyou get player money using pm \\
    $moneyPlayer PocketMoney::getMoney($user);
    Then you must change sending chat format.
    Using variable: $moneyPlayer
    Jag and Lambo like this.
  6. Jag
    Offline

    Jag Active Member

    Joined:
    Mar 26, 2014
    Posts:
    53
    Minecraft User:
    Jag

    Awesome works great. Really appreciate it.
    Lambo likes this.
  7. ViperSniper
    Offline

    ViperSniper New Member

    Joined:
    Jun 5, 2014
    Posts:
    21
    Minecraft User:
    ViperSniper
    PocketMoney has an API for this :D
  8. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    And what api for this?
  9. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
  10. ViperSniper
    Offline

    ViperSniper New Member

    Joined:
    Jun 5, 2014
    Posts:
    21
    Minecraft User:
    ViperSniper
    Its built in. Snippet above uses it
  11. ViperSniper
    Offline

    ViperSniper New Member

    Joined:
    Jun 5, 2014
    Posts:
    21
    Minecraft User:
    ViperSniper

Share This Page

Advertisement