Qbox-project / qbx_core

http://qbox-project.github.io
Other
46 stars 109 forks source link

Values swap randomly when doing commands #424

Closed alberttheprince closed 3 months ago

alberttheprince commented 3 months ago

Summary

when using certain commands, the values will swap positions randomly

Reproduction

Use a a command like /comserv 10 200, /time 10 20 (will result in time being 20:10), or /jail 10 200, and these values will swap inputs/positions.

This will result in either commands erroring as it thinks you are trying to comserver ID 200 for 10, rather than ID 10 for 200. This is an issue with the /time command.

This may be an issue with qb-compat layer, but no idea.

Expected behavior

Expecting these to work with /command (ID) (value)

Actual behavior

these are reversed on server start randomly

Additional context

This is totally random. Some server restart this will work normally, or the values will be reversed. This has been a long standing qbox issue.

Current Version

1.8.1

Custom Resources

Issue with both custom and qb- resources