{
[Info("Stacksize", "Noviets", "1.1.1")]
[Description("Stacksize")]
class Stacksize : HurtworldPlugin
{
void OnServerInitialized() => Loaded();
void Loaded()
{
LoadDefaultConfig();
GlobalItemManager GIM = Singleton<GlobalItemManager>.Instance;
GIM.GetItem(48).GetType().BaseType.GetProperty("MaxStackSize").SetValue(GIM.GetItem(48) as IItem, (int)Config["Arrows"], null);
}
protected override void LoadDefaultConfig()
{
if(Config["Arrows"] == null) Config.Set("Arrows", 50);
SaveConfig();
}
}
why Arrows only one? My English is bad
Stacksize
Moved
Total Downloads: 4,775 - First Release: Jan 24, 2016 - Last Update: Jul 27, 2017
- 5/5, 6 likes
-
-
Can you please help me its my first time with plugins but if i put everything in it doens't work. Im hosting a Server on Nitrado. . net so can you pm or add me i hope you can help me.
-
Adding Rough Diamond and Cut Diamond to the list?
-
I think Noviets Died in a Plugin somewhere, because no reply on anything
-
I'm still alive! I've just been busy
Will be doing a few updates today. Hold tight -
15:00 [Error] Stacksize.cs(123,77): error CS1061: Type `System.Reflection.PropertyInfo' does not contain a definition for `SetVaule' and no extension method `SetVaule' of type `System.Reflection.PropertyInfo' could be found. Are you missing an assembly reference?
any solution? i just put the new items in like Rough Diamond and Cut Diamond .
EDIT : Got iti just had a space inside the new code
i Uploaded it for you if you want to use it.
USE AT OWN RISK!Attached Files:
Last edited by a moderator: Jul 25, 2016 -
-
-
Why do you have arrows set to 1? lol it caused a lot of confusion for me at first.
-
i have a error while compiling what is the problem????
-
-
-
Greetings, I am unable to set it up so designs or paints will stack. Im not getting any errors or such. Any help would be greatly appreciated.
-
@Noviets
Could you please update the Stacksize plugin because alot of stuff doesn't stacksize anymore -
@Wulf
Could you mabye update the stacksize plugin.
Because alot of staff isn't stacking anymore. -
Wulf Community Admin
-
-