Jump to content

Uninstalled plugin still effecting gameplay

Fixed 2.1.0 Next Version

Tyler_h
Tyler_h

Posted

Purchased the plugin, didn't like how it works so I removed the Creative.cs plugin from my server.  Also removed the data files and the .db file that it created.

Even after removing the plugin, it still has broken player inventories.  Even with enough slots, players cannot get /kits because there is not enough space.

When a player dies in a PvP Raidable Base Zone, the player comes back to their body to find all of their items gone and have been replaced with the +999,999 items of all the resources used for free building.

How can I fully purge your plugin from my server?

Ryuk_

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

Ryuk_

Posted

In order to purge "invisible inventory" you must do a full player inventory clear
Create this plugin  in your server:
(this one will clear the invisible inventory of the player when: players joins, and for players that are in the server)
clear_inventory.cs

1- if "containerMain" capacity is higher than 25, it means the player inventory capacity is modified by creative plugin
2- all items after slot 25 will be removed
3-  player "containerMain" inventory capacity will be reduced to 25.

clear_inventory.cs


code in case you want to copy paste:
 

// unmodified

using System;
using System.Collections.Generic;
using Oxide.Core;
using System.Linq;

namespace Oxide.Plugins
{
    [Info("Clear Inventory", "Ryuk_", "1.0.0")]
    [Description("Clear player extra inventory caused by creative plugin.")]

    public class clear_inventory : RustPlugin
    {
        void OnPlayerConnected(BasePlayer player)
        {
            ShrinkInventory(player);
        }

        void OnServerInitialized(bool initial)
        {
            foreach (var player in BasePlayer.activePlayerList)
            {
                ShrinkInventory(player);
            }
        }

        private void ShrinkInventory(BasePlayer player)
        {
            if (player == null) return;

            var container = player.inventory.containerMain;
            if (container == null) return;

            if (container.capacity > 25)
            {
                foreach (var item in container.itemList.ToList())
                {
                    if (item.position >= 25)
                    {
                        item.RemoveFromContainer();
                        item.Remove();
                    }
                }

                container.capacity = 25;
            }
        }
    }
}  

 

Ryuk_

Posted

Changed Status from Work in Progress to Fixed

Tyler_h

Posted

Dont think it works,  players are still complaining.  Also nothing happens when i oxide.unload clear_inventory

Plugin filename clear_inventory.cs must match the main class clear_inventory (should be clear_inventory.cs)
[CSharp] Started Oxide.Compiler v successfully
 was compiled successfully in 1742ms
Ignored unexpected plugin compilation failure: clearinventory
Error while compiling clear_inventory: Plugin filename clear_inventory.cs must match the main class clear_inventory (should be clear_inventory.cs)

Ryuk_

Posted

[Oxide issue] ngl, that error only happens using oxide
ClearInventory.cs

Here's the fixed file
- changed name from clear_inventory.cs to ClearInventory.cs
- changed class name from clear_inventory to ClearInventory

[OXIDE] Tested and working.

1.9m

Downloads

Total number of downloads.

8.6k

Customers

Total customers served.

129.1k

Files Sold

Total number of files sold.

2.7m

Payments Processed

Total payments processed.

×
×
  • 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.