TheXYZNetwork / xAdmin

A free and basic administration system for Garry's Mod.
The Unlicense
28 stars 6 forks source link

Fixing the prop hooks not being added if enabled #37

Closed kierancrossley closed 2 years ago

kierancrossley commented 2 years ago

sv_core.lua loads before the sh_config.lua so the "xAdmin.Config.PropLimitNotify" will always be false and the hooks won't be added - move the code to the extras sv file which loads after

EDIT: I also made sure we don't add any useless hooks that are continuously run if we're just going to return out of them.

Creekie1337 commented 2 years ago

@all-contributors please add @kierancrossley for code

allcontributors[bot] commented 2 years ago

@MilkGames

I've put up a pull request to add @kierancrossley! :tada: