Configuration

Configuration

Options

optiondescvalue
permissionShould player need a permission to use this chat mode? False by default.true/false
radiusRequired distance between players to hear each otherint
formatFormat of the message. Avaiable tags: %username%, %message% and for colors: &1-9/a-fstring
commandsList of commands that used for chat modelist


Radius System

  • If you want the message will shown to all players in the server, you should set radius to: -1
  • If you want the message will shown to all players in the same world with sender, you should set radius to: 0
  • Else you can set this option to any number and message won't send if distance between players more than radius.
  • Thats all :)

Default Mode

  • With 1.0.9 update I have removed default option from chat.yml files. Just name a chat mode as "default".

Chat.yml

I have created a chat.yml that includes commands like /me, /whisper, /shout and /b . You can create your own chat files like this:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
default:
  permission: false
  radius: -1
  format: '%prefix%%username%: &f%message%'
  commands: {}

emote:
  permission: false
  radius: 15
  format: '&4[Emote] &c%prefix%%username% &c%message%'
  commands:
    - 'me'

shout:
  permission: false
  radius: 25
  format: '&3[Shout] &b%prefix%%username%: &b%message%'
  commands:
    - 'shout'

whisper:
  permission: false
  radius: 5
  format: '&5[Whisper] &d%prefix%%username%: &d%message%'
  commands:
    - 'whisper'
    - 'w'

ooc:
  permission: false
  radius: -1
  format: '&8[OOC] &7%prefix%%username%: &7%message%'
  commands:
    - 'ooc'
    - 'b'