nsporillo / HCFactions

Hardcore Factions for hardcore people.
3 stars 10 forks source link

Error when using /f who, /f show #10

Open Squirzy opened 7 years ago

Squirzy commented 7 years ago

Hi,

Currently using latest HCFactions and when players use /f show {faction} or /f who {faction} this error message comes up:

https://gyazo.com/81a12f41d3f5531cced1f2ac0154f464

nsporillo commented 7 years ago

Looking into this, could you link me your configs?

Squirzy commented 7 years ago

Sure: https://pastebin.com/1h9VaNjm

If it helps, when I remove the {online} and {offline} variable from show section of the config the error no longer shows. ({online} and {offline} are removed from the config I linked)

nsporillo commented 7 years ago

Okay so you're having a problem with the {online} and {offline} tag variables. You were originally using the default configuration and had this problem?

I'll try and reproduce locally, perhaps there is some sanity checks I could add to the code to gracefully fail under the circumstances you're reporting.

Squirzy commented 7 years ago

Yeah, that is correct. Removing the 2 tags has stopped the error from appearing