feat (core/cs): Make .go xyz ignore non-numeric data to improve copy-paste usability (#17772)

* Flexible `.go xyz` working well with existing syntax order.

* Make `.go xyz` ignore non-numeric characters

* Support values separated by something other than a space.

* Use current player orientation instead of `0.0f`

* Rename `inputCoords` to `args` per request.
This commit is contained in:
KJack
2023-11-19 16:43:48 -05:00
committed by GitHub
parent e4b90f5579
commit 48271945d0
2 changed files with 63 additions and 22 deletions

View File

@@ -0,0 +1,4 @@
-- Update `.go xyz` syntax
DELETE FROM `command` WHERE `name`='go xyz';
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('go xyz', 1, '\rSyntax: .go xyz #x #y [#z [#mapid [#orientation]]]\r\rTeleport player to point with (#x,#y,#z) coordinates at map #mapid with orientation #orientation.\r\rIf #z is not provided, ground/water level will be used. If #mapid is not provided, the current map will be used. If #orientation is not provided, the current orientation will be used.\r\rNon-numbers are allowed and will be ignored.');