grouplimiter

#17 - published 2 years ago

GroupLimiter

This plugin limits the amount of players that can join the server from the same (lobby) group

 

When a player joins, the plugin will notify the player how many group members are online and what the maximum allowed amount is. When the player is the group member thats over the limit, he will get kicked.

 

The plugin does not kick players with the group.bypass permission. Additionally you can whitelist specific Steam groups in the configuration file. You need the Steam group’s id for this and its name (can be anything you want actually, just to make it easier). You can also do this with the command /gwhitelist if the player is on the server.

 

The id can be found by getting the group’s link e.g. http://steamcommunity.com/groups/rocketmod and adding /memberslistxml/?xml=1 to it.

 

If you appreciate my work you can always donate to me here

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<Config xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Enabled>true</Enabled>
  <GroupLimit>5</GroupLimit>
  <Whitelist>
    <Group Name="RocketMod" SteamID="103582791439889796" />
  </Whitelist>
  <Blacklist>
    <Group Name="RocketMod" SteamID="103582791439889796" />
  </Blacklist>
</Config>

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="current_amount" Value="Members on server: {0}/{1}" />
  <Translation Id="reject_message_group" Value="{0} exceeded the allowed group members ({1}) and has been refused to join." />
  <Translation Id="command_usage" Value="Wrong usage. Try /{0} &lt;playername&gt; &lt;groupname&gt;" />
  <Translation Id="group_whitelisted" Value="{0}'s group has been whitelisted under the name {1}." />
  <Translation Id="group_blacklisted" Value="{0}'s group has been blacklisted under the name {1}." />
  <Translation Id="group_already_whitelisted" Value="{0}'s group is already whitelisted under the name {1}." />
  <Translation Id="group_already_blacklisted" Value="{0}'s group is already blacklisted under the name {1}." />
</Translations>

Commands and permissions


/gblacklist <player> <groupname>

Permissions: gblacklist

Blacklist a player's group


/gwhitelist <player> <groupname>

Permissions: gwhitelist

Whitelist a player's group


Git changelog


dc4bb5cd21ca485 2017-06-04 13:52:25

Fix

    8f406502ab35c29 2017-05-31 18:19:25

    ...

      cc307fb92d6c9ec 2017-05-31 10:15:21

      Derp

        d36d7c1b4d03dea 2017-05-31 09:57:16

        Update libs again?

          13c2e118d2f2dfc 2017-05-31 09:52:57

          Lobby y u do dis

            03093a31b84d8ef 2017-05-19 22:49:05

            Derp

              191f62eff6e9492 2017-05-14 17:20:49

              ...

                1b0eaebeb2f1253 2017-05-14 17:17:27

                Update libs

                  a5370e637de0b0b 2017-05-14 17:14:03

                  Added limiting for Lobby groups

                    9d398e54919f81b 2017-04-01 18:26:55

                    Kick once, reject afterwards

                      ca86d228af108ae 2017-03-30 17:56:03

                      Lets not be too harsh on the kicked player

                        ee1d42eeb375a3c 2017-03-23 16:48:00

                        Update

                        • Added blacklisting
                        • Added blacklist command
                        • No more counting if the player has permission or is in a whitelisted
                        • group

                        ce08c5adfbb5829 2017-03-04 23:13:52

                        ...

                          361b96f1ab61240 2017-03-04 16:23:57

                          Added whitelist command

                            e77d8eef3146566 2017-02-20 02:39:40

                            ...

                              1242f337d269931 2017-02-20 02:37:34

                              ...

                                ef85f90c7115132 2017-02-17 16:15:47

                                ...

                                  c88b791581b9b98 2017-02-17 16:09:16

                                  ...

                                    ca94cccb8444215 2017-02-16 19:12:13

                                    Add files via upload

                                      2be0d3dfe86b43a 2016-12-11 15:17:04

                                      Add files via upload

                                        0ddfb4d2fd1139e 2016-12-11 15:09:11

                                        Update README.md

                                          Download

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

                                          Repository

                                          github.com

                                          License

                                          MIT

                                          Author

                                          Arechi