Enhanced Ban System [Replaced]
Discussion in 'Plugin Support' started by Reneb, Oct 28, 2014.
-
How is it possible to ban someone not on your server at the time?
Last edited by a moderator: Mar 18, 2015 -
-
ok thanks
[DOUBLEPOST=1426801251,1426681392][/DOUBLEPOST]Code:File: EnhancedBanSystem.lua Line: 29 After parsing a value an unexpected character was encountered: ". Path '76561198180563170', line 25, position 1.: at Newtonsoft.Json.JsonTextReader.ParsePostValue () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.ReadInternal () [0x00000] in <filename unknown>:0 at Newtonsoft.Json.JsonTextReader.Read () [0x00000] in <filename unknown>:0 at Oxide.Core.Configuration.KeyValuesConverter.ReadJson (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Object existingValue, Newtonsoft.Json.JsonSerializer serializer) [0x00000] in <filename unknown>:0
-
-
yes
-
-
-
@Domestos Feel free to update this plugin with the file attached to this post
Its tested plugin Permission works and everything is okay you can check it if u want
Thanks for help.. about the small error
I've made some changes to this plugin i think they are helpfull
TESTED ON MY OWN SERVER WORKS!!
Added Permissions
canban = /ban
cankick = /kick
canunban = /unban
cancheckban = /bancheckAttached Files:
-
-
I already have a local copy with implemented permissions but there are some more changes i plan to make before publishing it. -
It was my first time so i didnt know how to add this thing i just checked other plugins like Reneb and Wulf said and i learned something atleast. -
Is it possible to add support that you dont need to enter the whole playername? because if your name is like "Naked-Men Hunter" its not working.
-
-
I mean is it possible to make it like the TP system? So i only have to enter /ban Naked instead of /ban "Naked-Men Hunter"?
-
-
Greets -
-
I can't unban people.
Code:> player.unban 76561198040908402 [Oxide] 10:35 PM [Error] Failed to call hook 'ccmdUnban' on plugin 'Enhanced Ban System' File: EnhancedBanSystem.lua Line: 312 attempt to call method 'RustDBUnban' (a string value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Did you unload rustdb ?
This looks like the plugin is trying to call the rustdb plugin but can't find it anymore -
[DOUBLEPOST=1429649823,1429561532][/DOUBLEPOST]