I added the possibillity to grab the players formatting data to Better Chatname![]()
OverThrone [Unmaintained]
Discussion in 'Plugin Support' started by NobodyFTW, Jun 23, 2015.
-
To work this out, you must stop your server, delete the overthrone.json from the data folder and run the server back again.
The reason this happen was because you had to wipe your server, which means "all the players data the server had before is gone", I quoted this because what I said it is still a bit missleading for the for some specific reasons which I am still wroking on. Though this will be fixed in the next update, which then OverThrone will save the required information from the king and save it in the database instead of using the server's data, I should have done this at the first place I know, don't ask why I didn't.
Eitherway I hope you're enjoying the plugin so far.
[DOUBLEPOST=1435967266][/DOUBLEPOST]
Just give me a lil more time to start working on OverThrone again, I am currectly working on fixes for all the messes I did on Notifier this whole week.Last edited by a moderator: Jul 4, 2015 -
Do your stuff you plan for your plugin and when you're done let me know so we can work on that.
I suggest LaserHydra to wait for that and use the same method afterwards. -
-
SkinN õ.Õ'.|. updated OverThrone with a new update entry:
OverThrone | Improvements & New Commands!
This version will totally fix when the server wipes, the King will remain King, and all his information will be stored on the database, causing no errors, so far.
I hope you guys enjoy this update. -
I added the possibillity to grab that data. I can change the name of the method after @Domestos did his one.
this is how you should be able to get mine currently:
[EXAMPLE]
Code:PLUGIN.Title ="Better Chatname Data Grab" PLUGIN.Version = V(1,0,0) PLUGIN.Description ="Data Grabbing" PLUGIN.Author ="LaserHydra"function PLUGIN:Init() command.AddChatCommand("grab", self.Object, "cmdGrab") endfunction PLUGIN:cmdGrab(player) local betterName = plugins.Find("betterchatname") if betterName then data = betterName:Call("GetPlayerFormatting", player) rust.SendChatMessage(player, "Your Prefix", data.Prefix) rust.SendChatMessage(player, "Your Prefix Color", data.PrefixColor) rust.SendChatMessage(player, "Your Name Color", data.NameColor) rust.SendChatMessage(player, "Your Text Color", data.TextColor) end end
Code:using System.Collections.Generic; using System.Reflection; using System; using System.Data; using Oxide.Core;namespace Oxide.Plugins { [Info("Better Chatname Data Grab", "LaserHydra", "1.0.0", ResourceId = 0)] [Description("Data Grabbing")] class ChatnameDataGrab : RustPlugin { [ChatCommand("grab")] void cmdGrab(BasePlayer player) { var betterName = null; betterName = plugins.Find("betterchatname"); if(betterName != null) { var data = betterName.Call("GetPlayerFormatting", player); SendReply(player, "Your Prefix: " + data.Prefix); SendReply(player, "Your Prefix Color: " + data.PrefixColor); SendReply(player, "Your Name Color: " + data.NameColor); SendReply(player, "Your Text Color: " + data.TextColor); } } } }
-
I don't see the point of adding support to Better ChatName, at least for now. And also for now I rather focus on OverThrones features before giving support to other plugins.
Later on I also want to add support to Rank-ME, which Rank-ME would have a Top List of the Kings who spent most time ruling, but I won't do it for now. -
SkinN õ.Õ'.|. updated OverThrone with a new update entry:
OverThrone | Minor Fix
-
When used in conjunction with a plug-Chat Handler, the message is duplicated twice! Simply do to add players in the murder of a group of for example the King and have the privilege to register for a group
-
-
-
Idea: Add Human NPC support so that the NPC's are allowed to be King. A couple uses is after a wipe, an NPC is the King first, and secondly if you are killed by C4, Land Mine, etc.. then it can default back to an NPC. Just a suggestion anyways..
-
-
Noticed conflicts with plugins, Notifier and chathandler.
the problem between chat handler and overthrone is the prefix, unable to disable it in the overthrone config file
the problem with notifier and overthrone is the Icon and maybe some other stuff is not showing for notifier. -
I got this when trying to reset the king:
Code:> overthrone.resetking [Oxide] 8:14 PM [Error] Failed to call hook 'plugin_CMD' on plugin 'OverThrone' Traceback (most recent call last): RuntimeError: Failed to call plugin_CMD (ArgumentTypeException: plugin_CMD() takes exactly 4 arguments (2 given)) at Microsoft.Scripting.Interpreter.ThrowInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0 at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
-
What is the command to reset the king ?
Thx
EDIT : I'm sorry it's /resetking . Thx a lot and it's a really good plugin good job manLast edited by a moderator: Jul 13, 2015 -
iuse chat handler and perfix for vip and admin
when vip or admin become a king their messages shown twice when they type
http://prntscr.com/7sncut -
And about the both OverThrone's and Notifier's icons please make sure you're signed in to Steam Friends. -
-
Through on Steam?