Jump to content

blacklisted commands work around

Closed 2.4.4

World_Gamerz
World_Gamerz

Posted

So I found players can still use blacklisted commands  if they walk out of the area use like /remove walk in the zone and use it .. I even set mine "Extended Distance To Spawn Away From Zone Manager Zones": 25.0, but they still walk that far away to use /remove then walk back and wipe the base.. is there a way to add a timer to certian ones or? 
Thanks

nivex

Posted

heya TwoShoes,

I think a better solution would be to use the hook provided by Removal Tool and block each remove if the command is blacklisted. then there's no possible way to continue exploiting this.

I've added the following code to achieve this in the next update:

in Subscribe() method:

                if (config.Settings.BlacklistedCommands.Exists(x => x.Equals("remove", StringComparison.OrdinalIgnoreCase)))
                {
                    Subscribe(nameof(canRemove));
                }

and above the canTeleport method:

        private object canRemove(BasePlayer player)
        {
            return !player.IsFlying && EventTerritory(player.transform.position) ? m("CannotRemove", player.UserIDString) : null;
        }

 

nivex

Posted

Changed Status from Pending to Closed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
163.9k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.