Tanguygab / TAB-Additions

An addon for the TAB minecraft plugin with some more cool features :D
GNU General Public License v3.0
14 stars 4 forks source link

TAB Private Messaging Doesn't Work #41

Closed catches closed 4 months ago

catches commented 4 months ago

When I tried /msg, it doesn't show anything, no errors in console image

Tanguygab commented 4 months ago

send your chat.yml

catches commented 4 months ago
enabled: true
cooldown: 0
/togglechat: true
/ignore: true
chat-placeholder:
  format: '%msg%'
  relational: false
  stay: 3000
formats:
  default:
    display:
      prefix:
        text: '%rel_factionsuuid_relation_color%%factionsuuid_faction_name_custom%%vault-prefix%%essentials_nickname%&r%changeoutput_equals_input:{deluxetags_tag}_matcher:_ifmatch:_else:
          {deluxetags_tag}%&7: '
        hover: "&eRank: %vault_rank% \n&eBalance: &f$%vault_eco_balance_formatted%\
          \ \n&ePlaytime: &f%statistic_time_played% \n&7 \n&eClick to view %vault-prefix%%essentials_nickname%&e's\
          \ statistics."
        click: command:/statsfor %player%
      message:
        text: '&f%msg%'
commands-formats:
  localchat:
    name: '&2LocalChat'
    view-condition: inRange
    channel: local
    prefix: l!
    display:
      prefix:
        text: '%chat-format% &a%player% &8» '
        hover: Only players within 10 blocks can see this message!
      message:
        text: '&f%msg%'
        hover: '%date%'
  staffchat:
    name: '&4Staff Chat'
    condition: permission:tab.staff
    view-condition: permission:tab.staff
    keep-on-reload: true
    prefix: '!'
    display:
      prefix:
        text: '%chat-format% %rel_factionsuuid_relation_color%%factionsuuid_faction_name_custom%%vault-prefix%%player%&r%changeoutput_equals_input:{deluxetags_tag}_matcher:_ifmatch:_else:
          {deluxetags_tag}%&7: '
        hover: '&7Only staff members can see this message!'
        click: suggest_command:/staffchat
      message:
        text: '&f%msg%'
        hover: '%date% | %time%'
msg:
  enabled: true
  sender:
    text: '&7(To %rel_viewer:rel_factionsuuid_relation_color%%rel_viewer:factionsuuid_faction_name_custom%%rel_viewer:vault-prefix%%rel_viewer:essentials_nickname%&r%rel_viewer:changeoutput_equals_input:{deluxetags_tag}_matcher:_ifmatch:_else:
      {deluxetags_tag}%&7) &7%msg%'
    hover:
    - '%time%'
    - ''
    - '&fClick to reply to &6%rel_viewer:player%&f.'
    click: 'suggest:/msg %rel_viewer:player% '
  viewer:
    text: '&7(From %rel_factionsuuid_relation_color%%factionsuuid_faction_name_custom%%vault-prefix%%essentials_nickname%&r%changeoutput_equals_input:{deluxetags_tag}_matcher:_ifmatch:_else:
      {deluxetags_tag}%&7) &7%msg%'
    hover:
    - '%time%'
    - ''
    - '&fClick to reply to &6%player%&f.'
    click: 'suggest:/msg %player% '
  /togglemsg: true
  /reply: true
  save-last-sender-for-reply: true
  msg-self: true
  /msg-aliases:
  - m
  - w
  - tell
  - whisper
  cooldown: 0
item:
  enabled: false
  mainhand: '[item]'
  offhand: '[offhand]'
  permission: true
  output: '&8»&r%name% &7(&fx%amount%&7) &7(Hover)&8«'
  output-single: '&8»&r%name% &7(Hover)&8«'
  output-air: ''
mention:
  enabled: true
  input: '@%player%'
  output:
    text: '&b@%rel_viewer:player%'
    hover: Mentioned!
    click: suggest:@%player%
  sound: block.note_block.pling
  output-for-everyone: true
  /togglemention: true
  custom-mentions:
    staff:
      input: '@staff'
      output: '&4@Staff'
      condition: permission:tab.staff
      sound: block.note_block.pling
  /togglementions: true
emojis:
  enabled: true
  /emojis: true
  /toggleemoji: true
  auto-complete: true
  output:
    text: '%emoji%'
    hover: '%emoji% &7%emojiraw% &d/emojis'
    click: suggest:/emojis
  block-without-permission: true
  categories:
    default:
      list:
        <3: '&c❤'
        ':shrug:': ¯\_(ツ)_/¯
        ':pvp:': ⚔
        ':death:': ☠
        ':star:': ✮
        ':up:': ⬆
        ':tableflip:': (╯°□°)╯︵ ┻━┻
        ':surrender:': \("▔□▔)/
        ':grr:': ლ(ಠ益ಠლ)
        ':sword:': ╰(⇀︿⇀)つ-]═───
    paid:
      output:
        text: '%emoji%'
        hover:
        - '&eEmote &7◆ &f&lShop'
        - '&7This emote is obtainable in our shop.'
        - '&7Click to see other emojis you have access to'
        click: suggest:/emojis
      list:
        ':cool:': (☞゚ヮ゚)☞
        ':kiss:': (っ˘з(˘⌣˘ )
        ':n:': '&c&lNO'
        ':y:': '&a&lYES'
        ':gun:': ︻┳═一
        ':owo:': (o・ω・o)
        ':happy:': (ᵔ◡ᵔ)
        ':wow:': (✯◡✯)
        ':love:': (❤ω❤)
        ':sad:': (︶︹︺)
        ':argh:': ヽ(‵﹏´)ノ
    staff:
      list:
        ':cross:': '&c&l✘'
        ':check:': '&2&l✔'
  /toggleemojis: true
char-filter:
  enabled: true
  char-replacement: '*'
  fake-length: 0
  output:
    text: '%replacement%'
  filter:
  - (?i)n[i1l!|¡]gg[ae@3€](r)?
  exempt:
  - bypass
  cancel-message: true
embed-urls:
  enabled: true
  output:
    text: '%url%'
    hover:
    - '&aClick to Open'
    click: url:%fullurl%
clearchat:
  enabled: true
  amount: 1000
  line: ' '
discord-support:
  format: '%msg%'
  DiscordSRV: true
  EssentialsX: true
socialspy:
  enabled: true
  msgs:
    spy: true
    output:
      text: '&b&l[SocialSpy-Msg] &7[&6&l%player% &e➠ &6&l%rel_viewer:player%&7] &r%msg%'
      hover: '%time%'
  channels:
    spy: true
    output:
      text: '&b&l[SocialSpy-Channel]&r %player% &8» &f%msg%'
      hover:
      - 'Channel: %channel%'
      - '%time%'
  view-conditions:
    spy: true
    output:
      text: '&b&l[SocialSpy-ViewCondition]&r %player% &8» &f%msg%'
      hover:
      - 'Condition: %condition%'
      - '%time%'
custom-interactions:
  staff:
    input: '[staff]'
    permission: true
    output:
      text: <rainbow>[Da GOAT]
      hover: Staff Only!
  pos:
    input: '[pos]'
    output:
      text: 'World: %player_world% (%player_x%, %player_y%, %player_z%)'
      hover:
      - '&aClick to tpa'
      click: command:/tpa %player%
  links:
    input: '[links]'
    output:
      text: '&8&l[&aHover for TAB''s Links&8&l]'
      hover:
      - '&5Discord: https://discord.gg/EaSvdk6'
      - '&7GitHub: https://github.com/NEZNAMY/TAB'
      - '&9MC-Market: https://www.mc-market.org/resources/14009'
      - '&2Polymart: https://polymart.org/resource/484'
      - '&8Wiki: https://github.com/NEZNAMY/TAB/wiki'
      - ''
      - '&7Click to join our Discord server!'
      click: url:https://discord.gg/EaSvdk6
discord:
  format: '%msg%'
  EssentialsX: true
  DiscordSRV: true
Tanguygab commented 4 months ago

found the issue, though I'll have to rework how I'm handling commands. I'll do that tomorrow, thanks for the report

Tanguygab commented 4 months ago

Should be fixed here https://github.com/Tanguygab/TAB-Additions/releases/tag/2.0.10

catches commented 4 months ago

kk tysm, seems to work 👍