Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

Odd behavior of the /region command #1218

Closed Kojirremer closed 8 years ago

Kojirremer commented 8 years ago

So today I did some region management and while moving/deleting regions, I noticed that using /region delete gives an error message, yet the command actually worked despite the message, as the region targetted for deletion has indeed dissapeared.

Plugins that are a frontend of the /region command like House Regions also detect this error, as doing /house delete gives an "Internal Error" warning, but just like with /region delete the region is succesfully deleted despite the error.

Using the latest stable build for 1.3.1.1.

mistzzt commented 8 years ago

Didnt it show that "check logs for more details"? You should upload your log.

Kojirremer commented 8 years ago

It didn't. It just said there was no such region when trying to delete it, as if you made a typo. But as I said, it still went and deleted it as intended, so the command is still fully functional. I just noticed that DieMob's name is included there though, so I'm going to take a look. Maybe it's a plugin's fault after all.

2016-06-18 23:46:02 - RegionManager: ERROR: System.MissingMethodException: Método no encontrado: '!!0[] System.Array.Empty()'. en DieMob.DieMobMain.onRegionDelete(RegionDeletedEventArgs args) en TShockAPI.Hooks.RegionHooks.OnRegionDeleted(Region region) en TShockAPI.DB.RegionManager.DeleteRegion(String name)

mistzzt commented 8 years ago

Based on your log, i think the problem is caused by plugin "DieMob". As it has nothing to do with TShock, You should create issues for it.

Kojirremer commented 8 years ago

Yes, you are right. I didn't notice until I saw the log. Took Diemob down and it worked as usual. Sorry for the trouble.

Closes