vitamin.z submitted a new resource:
Reserved Names - Reserve a nickname X by SteamID Y for Z amount of time.
Read more about this resource...
Reserved Names [Unmaintained]
Discussion in 'Plugin Support' started by vitamin.z, Feb 3, 2016.
-
How do I use this? Just kidding! Great work bro! Thanks again for making this for our community and sharing it for others to use! You sir, are a god among men
-
Awesome plugin thank you mate :3
-
Is it possible to add to the plugin an opportunity for some nicks to go with the addition of 1,2,3,4 ?
-
You mean to reserve given nick names x,y,z by steamID 1,2,3 in the config file?
-
so players with the same name were allowed but giving the value 1,2,3,4.
[DOUBLEPOST=1456895779][/DOUBLEPOST]Example: on the server there is a player with the nickname Hurt next included with such a name gets 1 or 2 (and Hurt1 Hurt2)
[DOUBLEPOST=1456895842][/DOUBLEPOST]Only nickname -
Oh i see what you mean! The Hurt1, Hurt2, did it.
Yes that should be possible and is a good idea.
I'll upload a updated version of the plugin within the next ~24 hours.
*edit*
The problem is see coming is people using Hurt², Hurt|, Hurt! as a workaround though.
(If Steam || Hurtworld Server allow these characters in a nickname) -
many players who initially can't figure out how to change your nickname. And it repels them. And so he goes and seeing a car alert on the server with the manual understand how to change it. Thank you very much looking forward to it.
-
vitamin.z updated Reserved Names with a new update entry:
0.0.8
[DOUBLEPOST=1457006142][/DOUBLEPOST]@setv78: I hope that is the feature you wanted?
A collegue of mine told me that you maybe want to have Steam/Luma nicknames changed if Username x is already on the server?
If that is the case: a) That is not the goal of this plugin, and b) i am not even sure if a server plugin has the possibility to change Steam/ Luma client nickname settingsLast edited by a moderator: Mar 3, 2016 -
6:36 PM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'ReservedNames v0.0.8' (ArgumentException: An element with the same key already exists in the dictionary.)
6:36 PM [Debug] at System.Collections.Generic.Dictionary`2[System.String,System.Object].Add (System.String key, System.Object value) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ReservedNames.CheckPlayer (.PlayerSession currentSession) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ReservedNames.OnPlayerConnected (.PlayerSession new_player) [0x00000] in <filename unknown>:0
at Oxide.Plugins.ReservedNames.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
[DOUBLEPOST=1457019991][/DOUBLEPOST]this error comes when the player with the nickname of another player
[DOUBLEPOST=1457203857,1457019946][/DOUBLEPOST] -
Code:
[Oxide] 8:19 PM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'ReservedNames v0.0.8' (KeyNotFoundException: The given key was not present in the dictionary.) (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65) [Oxide] 8:19 PM [Debug] at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ReservedNames.CheckPlayer (.PlayerSession currentSession) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ReservedNames.OnPlayerConnected (.PlayerSession new_player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.ReservedNames.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
-
Hello Sirs,
as of now i was not able to reproduce the "KeyNotFoundException" neither the "ArgumentException".
My suggestion would be to backup/rename the file located in ../oxide/data/ReservedNames.json and reload the ReservedNames plugin.