try to reload it or delete your plugin file its call cs and place the new one that wulf place
Stack Size Controller [Moved]
Discussion in 'Plugin Support' started by AnExiledGod, Jun 29, 2015.
-
Great Plugin. Problem though, after the recent update for some reason i had to delete plugin and put back in. Now its not creating a .json file so i can edit. Any help would be great.
-
Wulf Community Admin
-
Code://Lines 81-95 if (items.Count == 0) { SendReply(player, "Syntax Error: That is an incorrect item name. Please use a valid shortname."); return; } else { if (items[0].condition.enabled && items[0].condition.max > 0) { return; } Config[items[0].displayName.english] = Convert.ToInt32(stackAmount); items[0].stackable = Convert.ToInt32(stackAmount); SaveConfig(); SendReply(player, "Updated Stack Size for " + items[0].displayName.english + " (" + items[0].shortname + ") to " + stackAmount + "."); }
Code://Line 114ish int stackAmount = 0; if (int.TryParse(args[0], out stackAmount) == false) { SendReply(player, "Syntax Error: Stack Amount is not a number. Syntax Example: /stackall 65000"); return; }
Code://Lines 154-168 if (items.Count == 0) { Puts("Syntax Error: That is an incorrect item name. Please use a valid shortname."); return; } else { if (items[0].condition.enabled && items[0].condition.max > 0) { return; } Config[items[0].displayName.english] = Convert.ToInt32(stackAmount); items[0].stackable = Convert.ToInt32(stackAmount); SaveConfig(); Puts("Updated Stack Size for " + items[0].displayName.english + " (" + items[0].shortname + ") to " + stackAmount + "."); }
Code://Line 182ish int stacksize; if (!(int.TryParse(arg.Args[0].ToString(), out stacksize))) { Puts("Syntax Error: That's not a number"); return; }
-
Wulf Community Admin
-
-
-
Wulf Community Admin
-
-
Wulf Community Admin
Stack Size Controller for Rust | Oxide