1. Domestos submitted a new resource:

    Custom Chat Commands - Completely dynamic and unlimited custom chat commands

    Read more about this resource...
     
  2. I'm not understanding how to use this plugin..... anyone want to enlighten me? Looks interesting :)
     
  3. Wulf

    Wulf Community Admin

    There are multiple examples on the Overview of what it does. It mainly provides chat commands that show chat text, with permissions.
     
  4. Hello and thank you for all the plug-inns :) I have a noob question regarding the config, i found a similar example i believe but wan in another language. I only get the words custom helptext when i do /help this is what i have in the config, thank if you can be of help :)
    Code:
    {
      "ChatCommands": {
        "command1": {
          "help": "This is the helptext for this command",
          "permission": true,
          "text": [
            "Rust Armageddon test help text"
          ]
        },
        "command2": {
          "helptext": "This is the helptext for this command, also admin only",
          "permission": "admin",
          "text": [
            "This is an example text for admins only",
            "You can also use multiline messages"
          ]
        }
      },
      "Messages": {
        "NoPermission": "You dont have permission to use this command!"
      },
      "Settings": {
        "ChatName": "SERVER"
      }
    }
    [DOUBLEPOST=1439021309][/DOUBLEPOST]Never mind i figured it out, wrong plugginn place for the text. long night at the computer lol
     
    Last edited by a moderator: Aug 8, 2015
  5. Hello can you help me how can i see the commands
     
  6. So then I can only use this to send back text to the user no real commands right?
     
  7. Wulf

    Wulf Community Admin

    Just text.
     
  8. I have tried doing this but I get an error
    "ChatCommands":{
    "help":{
    "text":["/rules /tpr /sethome /warp list /kit /location /players /remove"],
    "helptext":"use /help to display our help command",
    "permission":false
    },
    "Messages": {
    "NoPermission": "You dont have permission to use this command!"
    },
    "Settings": {
    "ChatName": "SERVER"
    }
    }

    This is the error
    Code:
    > oxide.reload CustomChatCommands
    [Oxide] 16:38 [Info] Unloaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 16:38 [Info] Loaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 16:38 [Error] Failed to initialize plugin 'CustomChatCommands v1.0.0'
    File: CustomChatCommands.lua Line: 12 invalid arguments to method call:
      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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Apr 28, 2016
  9. Wulf

    Wulf Community Admin

    You broke your config formatting. ;)

    Start fresh and make sure to follow the example when adding/changing.
     
  10. I don't get WHERE to put the text I just want it to pop up with this when people do /help
    /rules /kit /sethome /tpr /remove /location /warp list /players
    It keeps on saying it is corrupt :(
     
  11. Wulf

    Wulf Community Admin

    Please use the 'Upload a File' button to attach the full .json file here and I'll take a look.
     
  12. Ok here it is.
     

    Attached Files:

  13. Wulf

    Wulf Community Admin

    Here ya go.
     

    Attached Files:

  14. its weird it pops up with this
    Code:
    > oxide.reload CustomChatCommands
    [Oxide] 00:07 [Info] Unloaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 00:07 [Info] Loaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 00:07 [Error] Failed to initialize plugin 'CustomChatCommands v1.0.0'
    File: CustomChatCommands.lua Line: 12 invalid arguments to method call:
      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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    [Oxide] 00:08 [Info] Unloaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 00:08 [Info] Loaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 00:08 [Error] Failed to initialize plugin 'CustomChatCommands v1.0.0'
    File: CustomChatCommands.lua Line: 12 invalid arguments to method call:
      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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    > oxide.reload CustomChatCommands
    [Oxide] 00:08 [Info] Unloaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 00:08 [Info] Loaded plugin Custom Chat Commands v1.0.0 by #Domestos
    [Oxide] 00:08 [Error] Failed to initialize plugin 'CustomChatCommands v1.0.0'
    File: CustomChatCommands.lua Line: 12 invalid arguments to method call:
      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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
    I tried typing /help and /help test and it says unknown command
     
    Last edited by a moderator: Apr 28, 2016
  15. Wulf

    Wulf Community Admin