pop4959 / Bolt

Modern protection solution for individual blocks and entities
GNU General Public License v3.0
50 stars 7 forks source link

Fix wrong number of arguments for /bolt modify #107

Closed rymiel closed 9 months ago

rymiel commented 9 months ago

A modify command looks like this:

  /bolt modify add autoclose door door
                1      2      3    4

As seen, there must be at least 4 parameters (there can be more than 4) after popping off the /bolt modify prefix. Currently, providing 3 arguments would pass the check but simply do nothing, exhibiting a bug similar to the one fixed by #106.