LaserHydra submitted a new resource:
Notifications - Manage various server messages.
Read more about this resource...
Notifications [Unmaintained]
Discussion in 'Plugin Support' started by LaserHydra, Sep 20, 2015.
-
Code:
[Oxide] 8:33 AM [Error] Failed to run a 60.00 timer in 'Notifications v1.0.0' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 8:33 AM [Debug] at Oxide.Plugins.Notifications.BroadcastAdvert () [0x00000] in <filename unknown>:0 at Oxide.Plugins.Notifications.<InitializeFeatures>m__0 () [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
-
I can see myself of hopping on this plugin, would it be possible to integrate custom command's on intervals? So I could say, call "server.save" with this plugin, as well as "server.say [message]"?
-
Would you add it?
Code://Cfg("Settings"); SetConfig("Enable Helicopter broadcast", true); // Messages Cfg("Messages"); SetConfig("Heli", "<color=red>ATTENTION</color> Patrol helicopter inbound!"); // Colors Cfg("Colors"); SetConfig("Heli", "silver");
Code:void OnEntitySpawned(BaseEntity entity) { if(!(bool)Config["Settings", "Enable Leave Message"]) return; string msg = Config["Messages", "Heli"].ToString(); if(entity != null) { BaseHelicopter heli = entity.GetComponent<BaseHelicopter>(); if (entity is BaseHelicopter) { if((bool)Config["Settings", "Enable Helicopter broadcast"]) { BroadcastChat($"<color={Config["Colors", "Heli"].ToString()}>{msg}</color>"); SendConsole(Config["Messages", "Heli"].ToString()); } } } }
-
[DOUBLEPOST=1442754352][/DOUBLEPOST] -
Maybe you can workaround this here:
Code:void OnEntityDeath(BaseEntity entity) { string msg = Config["Messages", "HeliDeath"].ToString(); if (entity == null) return; BaseHelicopter heli = entity.GetComponent<BaseHelicopter>(); if (entity is BaseHelicopter) { if((bool)Config["Settings", "Enable Helicopter broadcast"]) { SendAirControl($"<color={Config["Colors", "Heli"].ToString()}>{msg}</color>"); SendConsole(Config["Messages", "HeliDeath"].ToString()); } } }
-
LaserHydra updated Notifications with a new update entry:
1.0.1
-
Hi
When I type /players it clears my chat and I get no info. -
-
[DOUBLEPOST=1443027571][/DOUBLEPOST] -
-
-
[DOUBLEPOST=1443094349][/DOUBLEPOST] -
Do you have any plans for adding country information in join message for the future @LaserHydra?
Thanks again for this brilliant plugin! -
-
-
LaserHydra updated Notifications with a new update entry:
1.1.0
-
/dc is working, but if I use any of /c /admins /players I get the errors below:
[Error] Failed to call hook 'C' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
[Error] Failed to call hook 'cAdmins' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
[Error] Failed to call hook 'cPlayers' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object) -
-
Code:
[Oxide] 9:47 AM [Error] Failed to call hook 'cAdmins' on plugin 'Notifications v1.1.0' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 9:47 AM [Debug] at Oxide.Plugins.Notifications.IsAdmin (.BasePlayer player) [0x00000] in <filename unknown>:0 at Oxide.Plugins.Notifications.cAdmins (.BasePlayer player) [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
Last edited by a moderator: Oct 11, 2015