WhiteThunder
Limits how high RC drones can be flown above terrain

Supported Games
GameServerKingsGameServerKings

Features

  • Limits how high RC drones can be flown above terrain

Permissions

The following permissions come with the plugin's default configuration. Granting one to a player determines how high their drones can be flown above terrain or water, overriding the default. Granting multiple profiles to a player will cause only the last one to apply, based on the order in the config.

  • limiteddroneheight.low -- 25m
  • limiteddroneheight.medium -- 75m
  • limiteddroneheight.high -- 125m
  • limiteddroneheight.unlimited -- No limit

You can add more profiles in the plugin configuration (ProfilesRequiringPermission), and the plugin will automatically generate permissions of the format limiteddroneheight.<suffix> when reloaded.

Configuration

Default configuration:

{
  "DefaultMaxHeight": 75,
  "ProfilesRequiringPermission": [
    {
      "PermissionSuffix": "low",
      "MaxHeight": 25
    },
    {
      "PermissionSuffix": "medium",
      "MaxHeight": 75
    },
    {
      "PermissionSuffix": "high",
      "MaxHeight": 125
    },
    {
      "PermissionSuffix": "unlimited",
      "MaxHeight": 0
    }
  ]
}
  • DefaultMaxHeight -- Max height for drones deployed by players who do not have permission to any profiles in ProfilesRequiringPermission.
  • ProfilesRequiringPermission -- Each profile in this list generates a permission like limiteddroneheight.<suffix>. Granting a profile to a player determines how high their drones can be flown above terrain or water, overriding DefaultMaxHeight.
    • PermissionSuffix -- Determines the generated permission of format limiteddroneheight.<suffix>.
    • MaxHeight -- Determines the max height for drones deployed by players with this profile.

Note: Having a building below the drone does not allow it to fly higher. Height is only dictated by terrain and water. For this reason, if you want drones to be able to take off from and land on tall buildings, you should set the height limits to approximately 75m, or higher if your server has reduced stability requirements.

Recommended compatible plugins

Drone balance:

Drone fixes and improvements:

Drone attachments:

  • Drone Lights -- Adds controllable search lights to RC drones.
  • Drone Turrets -- Allows players to deploy auto turrets to RC drones.
  • Drone Storage -- Allows players to deploy a small stash to RC drones.
  • Drone Boombox -- Allows players to deploy boomboxes to RC drones.
  • Ridable Drones -- Allows players to ride RC drones by standing on them or mounting a chair.

Developer Hooks

OnDroneHeightLimit

bool? OnDroneHeightLimit(Drone drone)
  • Called when this plugin is about to start monitoring and limiting a drone's height
  • Returning false will prevent this plugin from limiting the drone's height
  • Returning null will result in the default behavior
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.