1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How do i access economy and pureperms and use them in my code ?

Discussion in 'Development' started by XxMegaIs123xX, Aug 4, 2018.

  1. XxMegaIs123xX

    XxMegaIs123xX Silverfish

    Messages:
    18
  2. Pylay

    Pylay Spider

    Messages:
    10
    Do you want to use the EconomyAPI for another plugins?
     
  3. Pylay

    Pylay Spider

    Messages:
    10
    Get these plugins in a public variable and from there get the methods
     
  4. XxMegaIs123xX

    XxMegaIs123xX Silverfish

    Messages:
    18
    Im just a beginner at coding so i do not know how to do it
     
  5. Pylay

    Pylay Spider

    Messages:
    10
    [QUOTE = "XxMegaIs123xX, post: 55291, участник: 2891"] Я просто начинающий при кодировании, поэтому я не знаю, как это сделать [/ QUOTE]
    public $perms;
    public $economy;
    public function onEnable () {
    $this->perms = $this->getServer()->getPluginManager()->getPluginManager()->getPlugin("PurePerms");
    $this->economy = $this->getServer()->getPluginManager()->getPlugin("EconomyAPI");
    }
     
  6. XxMegaIs123xX

    XxMegaIs123xX Silverfish

    Messages:
    18
    Ok thanks but how do i use it for UI ?
     
  7. XxMegaIs123xX

    XxMegaIs123xX Silverfish

    Messages:
    18
    To reduce money
     
  8. XxMegaIs123xX

    XxMegaIs123xX Silverfish

    Messages:
    18
    Pylay do u have discord so i can talk to there ?
     
  9. Pylay

    Pylay Spider

    Messages:
    10
    Code:
     $ this-> perms-> getUserDataMgr () -> getGroup ($name); // в любых функциях
    [/ КОД] [/ КОД]
     
  10. Pylay

    Pylay Spider

    Messages:
    10
    [QUOTE = "XxMegaIs123xX, post: 55295, участник: 2891"] У Pylay есть у вас раздор, поэтому я могу поговорить? [/ QUOTE]
    disassemble methods in the plugin
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.