guilds-plugin / Guilds

Adding RPG to your server has never been more fun and action-packed!
MIT License
162 stars 56 forks source link

Guilds remove any ess chat placeholders between Guilds placeholder and player name #292

Closed HauserGrim closed 4 years ago

HauserGrim commented 4 years ago

Description

Any placeholders between the guild placeholder and {DISPLAYNAME} are deleted if the player does not have a guild. It should not be like that.

Expected Behavior

Other placeholders should be visible in the chat

Actual Behavior

They are not displayed

Possible Fix

Change replace regex in ess chat

Steps to Reproduce

  1. Istall Guilds, Essentials and chat (I'm use EssentialsX) and enable essentials hook in Guilds
  2. Set chat format in essentials config to '{GUILD_PREFIX} {ANY} {DISPLAYNAME}: {MESSAGE}'
  3. Start server, send message in chat (you will see only your displayname and message)
  4. Create guild with prefix, send chat message (you will see guild prefix, {ANY}, displayname and message)

Context

Add extra chat prefix

Your Environment

I do not think this information will be useful. Guilds 3.5.4.2 Paper 1.13.2 build 655 Plugins: Plugins (51): AnBot, AuthMe, AutoMessage, AutoSaveWorld, BestViewDistance, ChatGuard, Citizens, CommandSigns, DeluxeMenus, DeluxeTags, DisableWindowItems, dtlTraders, DungeonsXL, Essentials, EssentialsChat, EssentialsSpawn, ExtendTime, eZProtector, FairNaturalSpawns, FastHarvest, FishFix, Guilds, HolographicDisplays, IllegalStack, LibsDisguises, LuckPerms, Matrix, MythicMobs, NametagEdit, NicksFilter, NoCollisionSpawner, NoCreativePhantoms, PandaWire, PlaceholderAPI, ProtocolLib, SaveTheCoral, ServerListPlus, SkinsRestorer, Soulbound, StackMob, TitleManager, TradePlus, UltimateTimber, Vault, WGExtender, WGFixer*, WorldBorder, WorldEdit, WorldEditSelectionVisualizer, WorldGuard, WorldGuardExtraFlags

HauserGrim commented 4 years ago

Ess chat format: ess chat Message without guild: without guild Message with guild: with guild