DylanSMR submitted a new resource:
BlueprintBlocker - Allows you to block certain blueprints from being learned
Read more about this resource...
BlueprintBlocker [Unmaintained]
Discussion in 'Plugin Support' started by DylanSMR, Apr 19, 2016.
-
DylanSMR updated BlueprintBlocker with a new update entry:
1.0.0
-
Dude, better change to:
Code:lang.RegisterMessages(new Dictionary<string,string>{ ["BP_NOLEARN"] = "<color='#DD0000'>Вы не можете выучить: { 0 }, т.к. он находится в черном списке!</color>", }, this, "ru");
Last edited by a moderator: Apr 20, 2016 -
Wulf Community Admin
-
-
Wulf Community Admin
-
-
Lol yeah sorry, google translate happened to space it out. I'll change it next time I update.
Attached Files:
-
-
Code:
{ "BP_NOLEARN": "<color='#DD0000'>Вы не можете изучить { 0 } , так как это запрещено правилами сервера!</color>" }
Code:You cannot study {0} as it is forbidden by rules of a server
-
-
It should be, translated it straight from english.
-
I just added this on my server and it's throwing this up every few seconds.
[Oxide] 12:08 [Error] Failed to call hook 'OnConsumableUse' on plugin 'BlueprintBlocker v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
[Oxide] 12:08 [Debug] at Oxide.Plugins.BlueprintBlocker.OnConsumableUse (.Item item) [0x00000] in <filename unknown>:0 at Oxide.Plugins.BlueprintBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 -
You need to add items in into the config file.
-
{
"blueprintBlacklist": []
} -
"item.item",
"item.item",
"item.item"
] -
{
"blueprintBlacklist": [
"explosive.timed",
"explosives"
]
}
I'm still getting the blueprints and this error message:
> oxide.reload BlueprintBlocker
[Oxide] 07:57 [Info] Unloaded plugin BlueprintBlocker v1.0.0 by DylanSMR
[Oxide] 07:57 [Info] Loaded plugin BlueprintBlocker v1.0.0 by DylanSMR
[Oxide] 07:58 [Error] Failed to call hook 'OnConsumableUse' on plugin 'BlueprintBlocker v1.0.0' (NullReferenceException: Object reference not set to an instance of an object)
[Oxide] 07:58 [Debug] at Oxide.Plugins.BlueprintBlocker.OnConsumableUse (.Item item) [0x00000] in <filename unknown>:0
at Oxide.Plugins.BlueprintBlocker.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0Last edited by a moderator: Apr 21, 2016 -
DylanSMR updated BlueprintBlocker with a new update entry:
1.0.2
-
Well, I'm still getting the same errors. I completely removed LootConfig, restarted my server and added it back in. I didn't remove any blueprints or items. We don't get kicked now which is good (when we try to reveal a C4 or explosives BP), but the error still spams and we are still getting the BPs for the ones I tried to block. Sorry for being such an annoyance, but thought you should know.
-
-
DylanSMR updated BlueprintBlocker with a new update entry:
1.0.3