serverswitcher

last built 3 months ago
Build #30
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: Mr.Kwabs
Do you like this plugin? You can fund the maintenance of this plugin with a donation to Mr.Kwabs.
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

ServerSwitcher

Allows users to select and join a Server from a list whilst in a server.

This Plugin now supports RocketRegions. Thanks to Trojaner for allowing me to add this feature and M22 for the idea!

Configuration

  • RocketRegionsSupport – When set to true, you can use this plugin with RocketRegions!
  • Servers – A list of Servers with a custom Name and their IP, Port, Password, Permission and Delay.
    • Name – The custom name for the Server that users will use when they do /server [Server Name].
    • IP – The IP for the Server. This can be an IPV4 address or a domain name.
    • Port – The Port for the Server, such as 27015.
    • Password – The Password for the Server, leave this blank or with any password if the desired Server has no password.
    • Permission – The Permission a User has to have to be able to access the Server. See the Permissions section below.
    • Delay – The Delay, in seconds, before a User is moved to that Server.
    • CanBeUsedInRocketRegion – When set to true, this Server can be used in Rocket Regions.
    • IgnoreDelayInRocketRegion – When set to true, there will be no delay in switching Servers if it is called from a Rocket Region.

Commands:

  • /Servers – Displays a list of Servers in the configuration file. (Shows Name & IP.)
    • Only Servers that a User has permission to join will be displayed.
  • /Server [Name] – Selects a Server to join from the list.
    • The Name is the custom name you enter in the configuration.

 

RocketRegions Only

  • /rflag [Region-Name] EnterServerSwitch ["URL"] -g [GROUP] – When set, any Players that walk into that Region will be transferred to a different Server. See RocketRegions for more information.

Permissions:

  • serverswitcher.servers – Users with this permission can execute the /Servers command.
  • serverswitcher.server – Users with this permission can execute the /Server command.
  • serverswitcher.server.{SeverPermission} – Users with this permission can execute the /Server command with the selected Servers.
  • serverswitcher.server.* – Users with this permission can execute the /Server command with all Servers.

Demonstration:

https://www.youtube.com/watch?v=yQFYHYOUL1U

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<ConfigurationServerSwitcher xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RocketRegionsSupport>false</RocketRegionsSupport>
  <Servers>
    <Server>
      <Name>Server1</Name>
      <IP>127.0.0.1</IP>
      <Port>27015</Port>
      <Password>password</Password>
      <Permission>server1</Permission>
      <Delay>5</Delay>
      <CanBeUsedInRocketRegion>true</CanBeUsedInRocketRegion>
      <IgnoreDelayInRocketRegion>false</IgnoreDelayInRocketRegion>
    </Server>
  </Servers>
</ConfigurationServerSwitcher>

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="direct_transfer_countdown" Value="You will be moved in {0} second(s)" />
  <Translation Id="direct_no_view_servers" Value="There are no Servers to view!" />
  <Translation Id="direct_no_display_servers" Value="There are no Servers to display! Check you have the correct Permissions!" />
  <Translation Id="direct_no_permission" Value="You do not have permission to go to this Server!" />
  <Translation Id="direct_server_doesnt_exist" Value="The Server {0} does not exist!" />
  <Translation Id="direct_incorrect_syntax_server" Value="/server [Server Name]" />
  <Translation Id="direct_incorrect_syntax_servers" Value="/servers" />
</Translations>

Commands and permissions


/server /server [Server Name]

Permissions: server

Moves you to a different Server


/servers /servers

Permissions: servers

Lists the available servers


Git changelog


857524342c38807 2019-07-18 17:25:42

Update README.md

    41b4a8d49ae1af6 2019-07-18 17:21:13

    Create LICENSE

      4193b63fb69e084 2019-07-18 17:20:44

      Delete LICENSE

        310b8ca9936e826 2019-07-18 17:19:43

        Update LICENSE

          8a91d15e80c31c1 2019-04-29 21:12:04

          Adding fix to bug.

          • This bug could possibility make it so you can't join the original Server if you are moved to a different Server whilst entering a new region.

          408d40a6f140257 2019-04-29 21:11:18

          Adding fix to bug.

          • This bug could possibility make it so you can't join the original Server if you are moved to a different Server whilst entering a new region.

          15c8ffe34577587 2019-04-29 21:10:57

          Adding fix to bug.

          • This bug could possibility make it so you can't join the original Server if you are moved to a different Server whilst entering a new region.

          43e909e0d10c7ea 2019-04-29 21:10:23

          Adding fix to bug.

          • This bug could possibility make it so you can't join the original Server if you are moved to a different Server whilst entering a new region.

          686bbf00724d67c 2019-04-28 22:43:57

          Added support for RocketRegions!

            cebc398f8e8f174 2019-04-28 22:40:27

            Debugging.

              32a1d0c03027702 2019-04-28 22:23:11

              Added support for RocketRegions!

                904fb4138657c86 2019-04-28 22:22:52

                Added support for RocketRegions!

                  a5f332d962716f6 2019-04-28 22:19:57

                  Added support for RocketRegions!

                    2cca323a46bc048 2019-04-28 22:19:38

                    Added support for RocketRegions!

                      0554c26c45085b4 2019-04-28 22:18:50

                      Added support for RocketRegions!

                        c748e210dad3069 2019-04-28 22:18:20

                        Added support for RocketRegions!

                          a4389501b379bb3 2019-04-28 22:17:59

                          Add files via upload

                            2c83df37ec3016b 2019-04-28 22:17:04

                            Update README.md

                              0b84b76854feff8 2019-04-28 22:16:45

                              Update README.md

                                f31324c57456953 2019-04-28 22:07:47

                                Update README.md

                                  46f2875fe738747 2019-04-28 22:06:28

                                  Update README.md

                                    a64d30eead18409 2019-04-28 22:06:13

                                    Update README.md

                                      87d3fa83333c10f 2019-04-28 16:38:35

                                      Update CommandServer.cs

                                        cbad8d2c7612216 2019-04-28 16:36:04

                                        Update ServerSwitcher.csproj

                                          0f4ef9c5ca01de0 2019-04-17 20:57:38

                                          Update ServerSwitcher.csproj

                                            7a63e606ae44244 2019-04-12 14:44:38

                                            Update ServerSwitcher.csproj

                                              0b7e099f4401d6e 2019-04-12 14:43:33

                                              Delete ServerSwitcher.dll

                                                26565bc1ce6ee4f 2019-04-12 00:24:47

                                                Create .gitignore

                                                  4c2fc157e3b872b 2019-04-12 00:18:49

                                                  Add files via upload

                                                    b294bd39af70def 2019-04-12 00:18:19

                                                    Update CommandServer.cs

                                                      b9dee8ed5f0f085 2019-04-12 00:18:04

                                                      Update CommandServer.cs

                                                        a9f9273de43a376 2019-04-12 00:17:47

                                                        Update CommandServer.cs

                                                          85ad7b3f58cdeee 2019-04-12 00:17:19

                                                          Added domain compatibility & translations.

                                                          • You can now use domain names & IPV4 addresses for Servers.

                                                          e4cb1bac7176d22 2019-04-07 23:40:39

                                                          Update README.md

                                                            7b8635876708607 2019-03-14 18:50:38

                                                            Fixed typo.

                                                              34882b965c32ab4 2019-03-14 18:49:50

                                                              Fixed typo.

                                                                1326dbddd608cd8 2019-03-14 18:49:14

                                                                Updated readability and added new configuration options.

                                                                  8b1623283849b0f 2019-03-14 18:42:54

                                                                  Add files via upload

                                                                    69778a97da4d414 2019-03-14 18:42:45

                                                                    Delete ServerSwitcher.dll

                                                                      09b9734d24ba268 2019-03-14 18:42:21

                                                                      Added new "Permission" configuration.

                                                                      • This adds the new Permission option to the configuration!

                                                                      a83389f1fbeebdd 2019-03-14 18:42:00

                                                                      Added new "Permission" configuration.

                                                                      • This adds the new Permission option to the configuration!

                                                                      446594a6915e0fd 2019-03-14 18:41:37

                                                                      Added new "Permission" configuration.

                                                                      • This adds the new Permission option to the configuration!

                                                                      69bbd28a387de9f 2019-03-14 18:41:19

                                                                      Added new "Permission" configuration.

                                                                      • This adds the new Permission option to the configuration!

                                                                      250583c99ed8da5 2019-03-13 23:04:59

                                                                      Update README.md

                                                                        4d9a1d633d331bf 2019-03-13 23:04:20

                                                                        Add files via upload

                                                                          edf5ac809907561 2019-03-13 23:03:39

                                                                          Delete ServerSwitcher.dll

                                                                            82ac8a73fc9154a 2019-03-13 23:03:26

                                                                            Added "delay" configuration

                                                                              25e04cb3e643f41 2019-03-13 23:02:46

                                                                              Added "delay" configuration

                                                                                78bb61b366938c4 2019-03-13 23:02:23

                                                                                Added "delay" configuration

                                                                                  ee60e4425aaab20 2019-03-13 21:57:46

                                                                                  Add files via upload

                                                                                    2aa31ce70b487da 2019-03-13 21:57:25

                                                                                    Create README.md

                                                                                      effdb518bb9f236 2019-03-13 21:54:21

                                                                                      Add files via upload

                                                                                        af022552c32ee0b 2019-03-13 21:52:21

                                                                                        Add files via upload

                                                                                          c5761fb87897f09 2019-03-13 21:51:59

                                                                                          Add files via upload