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

Inactive PureChat v1.4.0

Provides custom chat formats based on PurePerms groups for your server.

  1. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    It's easy to make the plugin compatible with EssentialsPE's nicks, you don't even need EssentialsPE! XD use the following code:
    Instead of using:
    PHP:
    $player->getName();
    Use
    PHP:
    $player->getDisplayName();
    Or if you want pure EssentialsPE access... Access the API (explained on its wiki ;)) and do this:
    PHP:
    $esspe->getNick($playerObject); // Return the nick string. 
    NOTE:
    If you use "getDisplayName", it may vary... EssentialsPE save the nick that a player has, but of other plugin modify it, then the nick that EssentialsPE knows will be different that the one that PocketMine-MP knows... So be careful in that aspect
    64FF00 likes this.
  3. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
    It's really easy. Just replace {display_name} in default node with {user_name} and it will display your real name.
    HellBublz likes this.
  4. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
    Yup. And that was already added in this update ;)
    iksaku likes this.
  5. Bublz_654
    Offline

    Bublz_654 Active Member

    Joined:
    Dec 31, 2014
    Posts:
    120
    Ok i just added PureChat v1.2.3 to server and it diesnt automatically make a folder with the config :/ Do i need to make it manually ?
  6. Bublz_654
    Offline

    Bublz_654 Active Member

    Joined:
    Dec 31, 2014
    Posts:
    120
    Code:
    17:02:51 [INFO] Reloading properties...
    17:02:51 [ERROR] Could not load '/home/tcagame/hydrohos/430/plugins/PureChat_v1.2.3.phar' in folder '/home/tcagame/hydrohos/430/plugins/': internal corruption of phar "/home/tcagame/hydrohos/430/plugins/PureChat_v1.2.3.phar" (truncated entry)
    17:02:51 [CRITICAL] UnexpectedValueException: "internal corruption of phar "/home/tcagame/hydrohos/430/plugins/PureChat_v1.2.3.phar" (truncated entry)" (EXCEPTION) in "/src/pocketmine/plugin/PharPluginLoader" at line 85
    This is what i get when plugins are loading
  7. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    Try downloading the phar file again. Seems to be corrupted while downloading?
    64FF00 likes this.
  8. peepzandmeepz
    Offline

    peepzandmeepz New Member

    Joined:
    Oct 27, 2014
    Posts:
    6
    Minecraft User:
    peepzandmeepz
    I was requested to post my PureChat config file from when I mentioned the plugin seems to not work with alt codes/symbols when it's in the prefix. When I remove the two dots around the Player rank, it seems to operate normally. But when I place them back onto the prefix, I just get error messages. Welp, here you go.

    CONFIG - https://encodable.com/cgi-bin/filechucker.cgi?action=landing&path=/&file=config.yml

    ( I also put the YAML file in yamllint and it said it was fine. )

    Thanks!
    64FF00 likes this.
  9. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
    Yup!
  10. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
    Seems like the link is broken... Could you please upload your file here?
  11. peepzandmeepz
    Offline

    peepzandmeepz New Member

    Joined:
    Oct 27, 2014
    Posts:
    6
    Minecraft User:
    peepzandmeepz
    Here you go, sorry about that.

    ---
    # Allows you to use per-world chat formats
    # - true / false
    enable-multiworld-formats: false

    # A list of all PurePerms groups
    groups:
    Default:
    # Default tags: {world_name}, {display_name}, {user_name}, {message}
    # Also remember that you can also use {faction} tag if you have FactionsPro plugin installed!
    default: "[•PLAYER•] {display_name} > {message}"
    worlds: []
    Admin:
    default: "[ADMIN] {display_name} > {message}"
    worlds: []
    Owner:
    default: "[OWNER] {display_name} > {message}"
    worlds: []
    Mod:
    default: "[MOD] {display_name} > {message}"
    worlds: []
    Trial-Mod:
    default: "[TRIAL-MOD] {display_name} > {message}"
    worlds: []
    VIP:
    default: "[VIP] {display_name} > {message}"
    worlds: []
    Trial-Mod-Vip:
    default: "[TRIAL-MOD] {display_name} > {message}"
    worlds: []
    Mod-Vip:
    default: "[MOD] {display_name} > {message}"
    worlds: []
    Co-Owner:
    default: "[CO-OWNER] {display_name} > {message}"
    worlds: []
    64FF00 likes this.
  12. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
    Weird... What error message do you get btw?
  13. peepzandmeepz
    Offline

    peepzandmeepz New Member

    Joined:
    Oct 27, 2014
    Posts:
    6
    Minecraft User:
    peepzandmeepz
    I get an error like this...

    08:52:11 [CRITICAL] Could not pass event pocketmine\event\player\PlayerChatEvent to PureChat v1.2.0: yaml_parse(): reading error encountered during parsing: invalid trailing UTF-8 octet (line 1, column 1) on _64FF00\PureChat\ChatListener
    08:52:11 [WARNING] RuntimeException: "yaml_parse(): reading error encountered during parsing: invalid trailing UTF-8 octet (line 1, column 1)" (E_WARNING) in "/src/pocketmine/utils/Config" at line 137
    64FF00 likes this.
  14. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    maybe you wanna have a

    ...

    at the last line of your config file?
  15. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    You can use http://www.pastie.org/ so much easier :)
  16. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    64FF00, do you think you can add a country tag? Like {country} ;)
    64FF00 likes this.
  17. peepzandmeepz
    Offline

    peepzandmeepz New Member

    Joined:
    Oct 27, 2014
    Posts:
    6
    Minecraft User:
    peepzandmeepz
    The configuration file didn't work correctly when it had the "..." in it, even yamllint was stating there was an error when it had the "...". One I removed it, the plugin ran fine.
    64FF00 likes this.
  18. 64FF00
    Offline

    64FF00 Active Member Plugin Developer

    Joined:
    May 11, 2014
    Posts:
    297
    Plugins:
    2
    Minecraft User:
    64FF00
    Yup. Do you want me to add it in the next update? :)
  19. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    Yes, it would be really cool to see where people are coming from in chat :D
  20. BluetigerESW
    Offline

    BluetigerESW New Member

    Joined:
    Jan 22, 2015
    Posts:
    2
    Minecraft User:
    BluetigerESW
    Could you possibly add a command to set a prefix for a single players and a command to set a groups prefix ingame (so it wouldn't be neccesary to do it from console)?

    If you could add those that be amazing, that's the only thing this plugin is missing :)

Share This Page

Advertisement