joinleave-messages

#8 - published 2 years ago

Join/Leave Messages

This simple plugin adds chat messages for when someone joins or leaves the server.

Configuration Options
  • JoinMessageEnable: Enables the messages on player joins.
  • LeaveMessageEnable: Enables the messages on player disconnects.
  • JoinMessageColor & LeaveMessageColor: Allows you to set a custom color for the messages. valid options are: black, blue, cyan, gray, green, magenta, red, white, yellow, gold, or a comma separated rgb color string in “0-255, 0-255, 0-255” (eg. “255, 255, 0” for yellow.). This defaults to green if it is left blank or isn’t a valid name or color string.
  • GroupMessages: Enables showing what group the player is in, if they have the right permission “jlm.group,” or have unturned admin, when they join the server. This works best if the player is only in one primary group(The groups that the player has been directly added to, non-inherited groups.), otherwise the plugin will show the first value rocket returns for the groups the player is in.
  • ExtendedMessages: Enables the ability for players with the “jlm.extended” perm to also view the Steam Name and Steam ID’s of the players that join/leave the server.
Permissions
  • jlm.extended – Extends the messages to a player with this perm to also include the Steam Name and Steam Id of a player when they get on the server. The option “ExtendedMessages” needs to be enabled, set to true, for this permission to do anything.
  • jlm.group – For use with the GroupMessages option, shows the group on the Join/Leave messages for players with this permission.
  • jlm.vanish – Allows players with this permission to join or leave the server silently without a message.

 

Update Notes:

  • 1.1.0.0: You will need to delete and regenerate the translation file, if you want to use the group join/leave messages feature in this plugin on the server.
  • 1.2.0.0: You will need to delete and regenerate the config file for this plugin for the plugin to work properly, as some of the config options have been changed.
  • 1.3.0.0: You will need to delete and regenerate the translations file again, there was some new entries added to the translations for the new extended player info feature.
  • 1.3.1.0: Fixes a typo in the tranlations, you should regenerate the translations file to get the change.

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<JoinLeaveMessagesConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <JoinMessageEnable>true</JoinMessageEnable>
  <LeaveMessageEnable>true</LeaveMessageEnable>
  <JoinMessageColor>green</JoinMessageColor>
  <LeaveMessageColor>green</LeaveMessageColor>
  <GroupMessages>false</GroupMessages>
  <ExtendedMessages>false</ExtendedMessages>
</JoinLeaveMessagesConfig>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="connect_message" Value="{0} connected to the server." />
  <Translation Id="disconnect_message" Value="{0} disconnected from the server." />
  <Translation Id="connect_group_message" Value="{0}{1} connected to the server." />
  <Translation Id="disconnect_group_message" Value="{0}{1} disconnected from the server." />
  <Translation Id="connect_message_extended" Value="{0} [{1}] ({2}) connected to the server." />
  <Translation Id="disconnect_message_extended" Value="{0} [{1}] ({2}) disconnected from the server." />
  <Translation Id="connect_group_message_extended" Value="{0}{1} [{2}] ({3}) connected to the server." />
  <Translation Id="disconnect_group_message_extended" Value="{0}{1} [{2}] ({3}) disconnected from the server." />
</Translations>

Commands and permissions


This plugin doesn't have any commands.

Git changelog


86d190fc998d2ae 2017-01-20 18:48:44

libs

    0c8609dabee72ce 2016-11-04 16:20:07

    Update plugin for Unturned 3.17.4.0

      91e3ed63a4315e5 2016-11-04 16:19:16

      libs

        35a5b14644fa164 2016-10-08 00:09:52

        Update to compile on newer versions of unity.

          c44f9e38ea1ed5d 2016-10-08 00:09:31

          Libs

            08f881e48950d0f 2016-06-19 00:44:42

            Libs

              f83773d96ef40f9 2016-06-15 02:07:22

              Fix a typo in the translations lines.

                6ab104b92d81570 2016-02-20 21:06:53

                Fix for a potential for the player data to be null on dissconnect.

                  c9f30019a576a66 2015-12-09 03:15:58

                  Added parsing for color components, and added extended player info to show to admins.

                    a9a1c3f144f15f3 2015-11-04 03:02:41

                    Added options to allow the join or leave messages to be enabled or disabled seperately, and added message color option to the join and leave messages.

                      b3b948064ad1dd8 2015-09-12 17:01:58

                      Update for rocket 4.6.3.0

                        d116b99b2ba6c9e 2015-09-05 04:10:15

                        Added the jlm.vanish permission to the plugin, to allow players to join or leave the server silently.

                          b936915cfe69537 2015-08-07 21:10:00

                          Adding group join/leave messages, and fixing the Unloading or reloading of the plugin.

                            6c75996f36bbe4e 2015-08-04 20:26:19

                            Initial code commit.

                              Download

                              Build #8
                              By downloading this file, you agree to our license terms.

                              Repository

                              github.com

                              License

                              MIT

                              Author

                              cartman-2000