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

Additional API around sendPopup and sendTip

Comments in 'Plugin Development' started by aliuly, Jun 8, 2015.

  1. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Should there be an API to manage this? For example, a PlayerSendPopupEvent and PlayerSendTip event?

    Since the "popup" and "tip" areas are shared resource which plugins will contend for, it probably would be good to somehow control this.

    For example, My new plugin, BasicHUD shows continuous Popups. SimpleAuth also shows a popup ("login please"). Right now, BasicHUD has code that checks if SimpleAuth is doing its thing and stops it from doing popups. Also BasicHUD has code to allow other plugins to "sendPopups" through BasicHUD (so as the HUD popups do not get overwritten). Obviously as we start having more Plugins that make use of the popup/tip area, this is bound to get messy.

    Would it be a good to have an API that can arbitrate the use of popups? (And let the server owner decide to control what happens?)
    xiaoq, ZacHack, Falk and 4 others like this.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    DataPacketSendEvent? (Bad practice)

    There should be a common library (I tried working on one but didn't have time) that plugins use together, updated frequently to provide the latest API support. Plugins using this API can be inter-compatible in using some non-strictly-controlled API functions like the above case.
  3. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    It is all available in github. So it is already public with a gpl license.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No, I mean to make it for public use. Standardize it publicly.
    Legoboy0215 likes this.

Share This Page

Advertisement