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

€¢onom¥$ 5.7

The massive economy plugin with many features

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Like?
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    creating shop signs. the signs are stored in memory and looking at the code, it saves the signs stored in memory to its Shop.yml when server stops.

    im not sure of the queue stuff but when player taps on sign, its somehow store their names in memory also.
  3. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    since i guess theres no chance of being saved directly to files, ill modify my own version to save some memory and TPS.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    If you save to and read from files every time, it will be even more laggier. Use an SQL database.
  5. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    i have a modified EconomyS shop where it uses my currency from my mysql database instead of EconomyAPI.
    its just storing on memory takes a lot of TPS slowing down the server.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Depends on how many shops you have and how you save them. Remember our PocketFactions memory SQLite3 database? ;) also, a database like levelDb may be useful for these usages.

    In another thinking, maybe it is because PHP is slow itself. Shh, don't let @shoghicp read this! @shoghicp if you do, throw your device out of your window and assume you have never read this.
  7. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    not only the shop but also the $playerQueue. when player tap on shop signs, as i understand on the code, it stores players to memory. ill check again if it stores in memory.
    PEMapModder likes this.
  8. PanV
    Offline

    PanV New Member

    Joined:
    Sep 13, 2014
    Posts:
    6
    Minecraft User:
    PanV
    Maybe Pundler doesn't solve my problems. :p
  9. onebone
    Offline

    onebone Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    330
    Plugins:
    7
    Minecraft User:
    onebone
    $playerQueue is the variable used to reduce the memory. You do not have to care about them. This variable is created and removed in 1 second. Check the function onPlaceEvent().
    If the variable doesn't exist, I will have to check the existing shops to cancel block place event.
    Please retry downloading the lastest version :)
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Using an in-memory SQLite3 is possibly the fastest.
  11. onebone
    Offline

    onebone Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    330
    Plugins:
    7
    Minecraft User:
    onebone
    Nope, I think not. The structure of the EconomyShop is checking the key in array is existing. It saves the position as the key of the array and checks when the players touch the sign. It doesn't call any other functions, classes, only touches the array.
  12. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    $this->shops would be faster if you use an SQLite3 database or use numeric keys.
  13. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    yea, it turned out to be fast too. using mysqli calls data fast. im converting all plugins session data that are stored in memory to database.
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    MySQLi != SQLite3

    In-memory SQLite3 should be faster than MySQLi unless your machine is very slow and your network is very good.
  15. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    my MySQL server is just in localhost. using it remotely is quite useless and not worth it or probably laggy.
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is useful if you host servers in different machines.
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    you need it or you will die? We don't have the duty to finish a plugin for you.
    DovahDoVolom likes this.
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Then ask the author of KillMoney...
  19. onebone
    Offline

    onebone Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    330
    Plugins:
    7
    Minecraft User:
    onebone
    I have submitted version 5.1, wonder when it will be released :)
  20. onebone
    Offline

    onebone Notable Member Plugin Developer

    Joined:
    Aug 31, 2013
    Posts:
    330
    Plugins:
    7
    Minecraft User:
    onebone
    onebone updated €¢onom¥$ with a new update entry:

    €¢onom¥$ v5.1 UPDATE

    Read the rest of this update entry...

Share This Page

Advertisement