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

Config message substitutions

Discussion in 'Development' started by SOFe, Apr 25, 2017.

  1. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    There are frequently-used substitutions in config messages, e.g. @p = player name, @t = time, @money = money of the player.
    Can we list some global common substitutions here for developers' reference in the future, or even make a dependency plugin/library based on it?

    Part of @SOFe's plugin standards campaign
     
    Jack Noordhuis and jasonwynn10 like this.
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    there's also the thing about prefix to my observation most widely used ones are {$symbol} also % (tldr: a lot of variances) rarely seen plugin using @
    x y z level ip
    playerNick and playerUsername which are not to be confused
     
  3. WreckagePE / ZAYD

    WreckagePE / ZAYD Slime

    Messages:
    82
    Tip:
    # %NICK% - name of player
    # %MONEY% - count of player's money
    # NEED EconomyAPI OR PocketMoney. PocketMoney: https://forums.pocketmine.net/plugins/pocketmoney.63/
    # EconomyAPI: https://forums.pocketmine.net/plugins/€¢onom¥.30/
    # %ITEM_ID% / %ITEM_META% - ID/{META/DAMAGE} of item in hand
    # %FACTION% - player's faction
    # %ONLINE% - how many players now on server
    # %MAX_ONLINE% - max. online
    # %X% / %Y% / %Z% - get X/Y/Z-coordinates of player
    # %IP% - IP of player
    # %PP_GROUP% - PurePerms group of player
    # NEED PurePerms. You can download it from here: forums.pocketmine.net/plugins/pureperms.862/
    # %TAG% - player's tag (text above player's head)
    # %LOAD% - load of server (0-100 %)
    # %TPS% - TPS of server
    # %LEVEL% - name of player's current world/level
    # \n - new line. WARNING! \n is not the same as /n
     
  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.