Skip to content

A Spigot plugin designed to automatically enforce ship rules on Movecraft servers.

License

Notifications You must be signed in to change notification settings

drfiveminusmint/Movecraft-ShipRules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movecraft-ShipRules

A Spigot plugin designed to automatically enforce ship rules on Movecraft servers. Written by a4bde but borrows code heavily from Movecraft 8, written by cccm5, TylerS1066, and BaccaYarro.

Building

Movecraft-ShipRules requires Movecraft 8 to build. Its directory should be placed in the same directory as the directory containing Movecraft, and then mvn clean install can be run to build the plugin. Jars will be located in Movecraft-ShipRules/target.

Usage

Movecraft-ShipRules adds the following craft type properties:

  • minLengthToWidthRatio: The minimum ratio of length to width for the craft's detected hitbox. This is not direction-dependent, which axis constitutes 'length' and which constitutes 'width' is found at detection time. Defaults to -1, which will have no effect.
  • maxLenghtToWidthRatio: Same as above.
  • minLengthToHeightRatio: Same as above. Unlike Length and Width, which change which axis they are depending on a ship's configuration, Height is always the Y-axis.
  • maxLengthToHeightRatio
  • minWidthToHeightRatio: It's width to height rather than the other way around as it is expected that ships will be wider than they are tall.
  • maxWidthToHeightRatio
  • minAbsoluteHeight: The maximum number of blocks tall this type can be, irrespective of all other directions. Defaults to -1 (disabled).
  • maxAbsoluteHeight: Same as above. Setting this and the above as the same integer value will require crafts to always be the same number of blocks tall, and will change the message to only display one number rather than the 'max' and 'min.'
  • minAbsoluteLength: Same as above.
  • maxAbsoluteLength
  • minAbsoluteWidth
  • maxAbsoluteWidth
  • minEngineBlobs: Currently unused.
  • maxEngineBlobs: Same as above.
  • requireCruiseSignAlignment: Requires all cruise signs on the craft to be facing the same direction.

About

A Spigot plugin designed to automatically enforce ship rules on Movecraft servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages