MACIEJNIERZWICKI.PL
MINECRAFT PLUGINS
PrivateMessages
Advanced private messaging plugin
Configuration – config.yml
Bukkit servers
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | # Help: https://maciejnierzwicki.pl/minecraft-plugins/privatemessages/configuration-config-yml/ # Set proxy to true if you are using supported proxy server (BungeeCord/Velocity) and have installed PrivateMessages plugin on proxy server as well. # This enables cross-server messaging and and allows to control most features from proxy server. # https://maciejnierzwicki.pl/minecraft-plugins/privatemessages/configuration-proxy-support/ Proxy: Enabled: false # Interval in seconds between attempts to detect if any changes to sounds configuration (sounds.yml) have been made on proxy server. # When plugin detects changes, it will automatically update sounds configuration on current server. SoundChangesDetectionInterval: 10 # Interval in seconds between attempts to inform proxy server about presence of PrivateMessages plugin on current Bukkit server. # Required for proper functioning of features utilizing inventory interaction as this requires Bukkit API on player's current server. LocalPluginInstanceNotificationInterval: 10 # Server name used to identify current server when communicating with proxy plugin. This cannot contain spaces and formatting codes aren't supported here. ServerName: "MyServer" TimeZone: "Europe/Warsaw" # Date-time formats accepted when searching for messages in commands like /pmdelete, /pmhistory InCommandDateTimeFormat: - "MM.dd.yyyy-HH:mm:ss" - "MM.dd.yyyy-HH:mm" - "MM.dd.yyyy" MessagesHistory: # Setting following to false will prevent messages from being stored in database Enabled: true # Date-time format displayed when viewing messages history DateFormat: "MM.dd.yyyy HH:mm:ss" AutoPurge: # When enabled, messages older than specified number of days will be automatically deleted from database Enabled: false # Number of days after which messages will be automatically deleted from database Days: 30 AllowSendingMessagesToSelf: true AllowSendingMessagesToOfflinePlayers: true # Notify about unread messages after player join. NotifyUnreadMessagesAfterJoin: true # Notify about unread messages after player unvanish. NotifyUnreadMessagesAfterUnvanish: true SpyInConsole: false # Help item material displayed in Sound inventory SoundHelpItem: PAPER # Help item material displayed in Sound Details inventory SoundDetailsHelpItem: PAPER # Sound enable/disable item in Sound inventory SoundToggleItem: LEVER # Navigation item 'Back' material BackItem: REDSTONE_BLOCK # Navigation item 'Exit' material ExitItem: REDSTONE_BLOCK # Item representing 'DELETE' action when Message Actions inventory is open MessageActionDeleteItem: LAVA_BUCKET # Item representing first player when Messages History inventory is open MessageItem1: PAPER # Item representing second player when Messages History inventory is open MessageItem2: MAP MessagesSaveIntervalSeconds: 10 MaxHistoryMessagesPerSecond: 5000 GlobalHistoryCacheTimeSeconds: 600 # When set to true, all /pmdelete command invokations require confirmation using /pmconfirm command MessagesDeletionByCommandRequiresConfirmation: true # When set to true, all 'DELETE' action invokations from Message Actions inventory require confirmation by clicking 'DELETE' item again. MessagesDeletionByInventoryRequiresConfirmation: true # When set to true, each notification sound requires permission before it can be used by player # Each permission node looks like this: pm.sound.<soundID> e.g. pm.sound.1 for a sound with ID 1 EachNotificationSoundRequiresPermission: false # When set to true, each notification sound a player hasn't permission to, # will be displayed in Sound Inventory allowing to listen for sound but not to pick it. DisplayInaccessibleSoundsInSoundInventory: true Storage: # Possible values for type: sqlite, mysql type: sqlite hostname: localhost user: username password: password database: privatemessages port: 3306 Metrics: true # Requires Paper 1.17+ or compatible fork ModernChatFormatting: false # Default behavior of reply command. # 1 - reply to the last player you sent a message to; if none, reply to the last player who sent you a message # 2 - reply to the last player who sent you a message # This setting is ignored when Integration.<plugin>.RespectReplyCommandConfig is set to true ReplyCommandMode: 1 # Maximum number of entries displayed per page in /pmhelp command output HelpCommandMaxEntriesPerPage: 5 PluginTips: Enabled: true # 1 - send tip after first use of command/feature (resets on server shutdown) # 2 - send tip after first use of command/feature and don’t do this again, even after server restart Mode: 1 Integration: Essentials: # When player is ignored using Essentials' /ignore command plugin prevents him from sending messages to target player. # Additionally, players ignored on Essentials are included in /pmignored output when this feature is enabled. RespectIgnore: true # If true, ReplyCommandMode setting will be ignored and reply command will always behave as configured in Essentials plugin ('last-message-reply-recipient' in Essentials' config.yml). RespectReplyCommandConfig: false CMI: # When player is ignored using CMI's /ignore command plugin prevents him from sending messages to target player. # Additionally, players ignored on CMI are included in /pmignored output when this feature is enabled. RespectIgnore: true # If true, ReplyCommandMode setting will be ignored and reply command will always behave as configured in CMI plugin ('Chat.ReplyToLastMessenger' in CMI's Settings/Chat.yml). RespectReplyCommandConfig: false |
Proxy servers (BungeeCord / Velocity)
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | # These settings override ones with same names on backend servers if they have set 'Proxy' to true in PrivateMessages config! # When set to true and player sends/receives message to/from player on other server, server display name (the one set on Bukkit server under PrivateMessages/config.yml) will be included near player name in message. Format is configured in lang.yml file. ShowServerDisplayNameInMessages: false # When set to true and when ShowServerDisplayNameInMessages is true, the server display name will be always included in messages sent to players, even those on the same server. AlwaysShowServerDisplayNameInMessages: false # These are names displayed in messages sent to players on other servers (only when ShowServerDisplayNameInMessages is enabled). This can contain spaces and formatting codes. Keys must match server identifiers in Velocity config. ServerDisplayNames: lobby: "Hub" survival: "<blue>Survival<reset>" AllowSendingMessagesToSelf: true AllowSendingMessagesToOfflinePlayers: true # Notify about unread messages after player join. # If this is set to true, make sure this setting has value of false on backend servers to avoid double notifications. NotifyUnreadMessagesAfterJoin: true # Notify about unread messages after player unvanish. # If this is set to true, make sure this setting has value of false on backend servers to avoid double notifications. NotifyUnreadMessagesAfterUnvanish: true SpyInConsole: false TimeZone: "Europe/Warsaw" # Date-time formats accepted when searching for messages in commands like /pmdelete InCommandDateTimeFormat: - "MM.dd.yyyy-HH:mm:ss" - "MM.dd.yyyy-HH:mm" - "MM.dd.yyyy" MessagesHistory: # Setting following to false will prevent messages from being stored in database Enabled: true AutoPurge: # When enabled, messages older than specified number of days will be automatically deleted from database Enabled: false # Number of days after which messages will be automatically deleted from database Days: 30 MessagesSaveIntervalSeconds: 10 # When set to true, all /pmdelete command invokations require confirmation using /pmconfirm command MessagesDeletionByCommandRequiresConfirmation: true Storage: # Possible values for type: mysql type: mysql hostname: localhost user: user password: password database: privatemessages port: 3306 # Default behavior of reply command. # 1 - reply to the last player you sent a message to; if none, reply to the last player who sent you a message # 2 - reply to the last player who sent you a message # This setting is ignored when Integration.Essentials.RespectReplyCommandConfig is set to true ReplyCommandMode: 1 # Maximum number of entries displayed per page in /pmhelp command output HelpCommandMaxEntriesPerPage: 5 PluginTips: Enabled: true # 1 - send tip after first use of command/feature (resets on server shutdown) # 2 - send tip after first use of command/feature and don’t do this again, even after server restart Mode: 1 Integration: Essentials: # When player is ignored using Essentials' /ignore command plugin prevents him from sending messages to target player. # Additionally, players ignored on Essentials are included in /pmignored output when this feature is enabled. RespectIgnore: true CMI: # When player is ignored using CMI's /ignore command plugin prevents him from sending messages to target player. # Additionally, players ignored on CMI are included in /pmignored output when this feature is enabled. RespectIgnore: true Metrics: true |