[INFO] CommandAlert - Moved to bukkit dev

Discussion in 'Inactive/Unsupported Plugins' started by ementalo, May 14, 2011.

Thread Status:
Not open for further replies.
  1. CommandAlert :- Log to file/ Display ingame command usage . GroupManager / Permissions


    Moved to bukkit dev - Version 2 is there!

    http://dev.bukkit.org/server-mods/commandalert/

    In Game Alert:
    [​IMG]

    Breakdown of an alert:
    The number at the start is the id of the CommandAlert. You can use this id in conjunction with the command cmdcheck to teleport to the location that command was used. The amount of history is configured in config.yml. NOTE: This is in memory history and is lost on server reset.

    Config (open)

    locationHistory: 30 - The ingame location history limit
    logToFile: true - Shall we also log to file. This will create a folder /logs in the plugin directory, it should make one log per day.
    logToConsole:false -Shall we log to console too?
    showInGameAlert:true - Shall we show the alerts ingame?
    commands: warp, home, spawn - The comma separated list of commands, accepts * for all commands (blacklist only)
    mode:
    blacklist - Only commands in the commands: section will be logged.
    whitelist - Commands in the commands: section will not be logged, all others will.

    Commands (open)

    • cmdcheck : Teleports you to a location history
      • Usage: Accepts an optional id as an argument, otherwise sends you to the last logged location.
      • Permissions: commandalert.cmdcheck
    • cmdalertr : Reloads the CommandAlert config.
      • Usage: No arguments
      • Permissions: commandalert.cmdalertr



    Other Permissions (open)

    • commandalert.alerts: Give this permission to who you want to see the ingame alerts
    • commandalert.notrigger: Give this permission to who you do not want to trigger the alert




    Features:
    • Log commands to file
    • Show command usage ingame
    • Teleport to where the command was used
    Changelog:

    Version 1.2
    • Removed GM support. Will use Permissions if installed otherwise default to OP
    Version 1.1
    • Extra logging options
    Version 1.0

    • Initial Release
     
  2. Offline

    cronikkk

    Idk if i like the ingame part, but the teleport and log to file is good :D
     
  3. revoke your permission for it and you won't see :D, But I will add some logging options at some point
     
  4. Offline

    cronikkk

    then ithat would be pretty cool :) good job
     
  5. Offline

    woodzy

    will this log to file ALL commands used (as in from all plugins)? even the ones consol dont see?
     
  6. It should do :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  7. Offline

    KimKandor

  8. Offline

    Juze

    Does this work perfectly with /msg, to show the full message?
     
  9. Yep
     
    Juze likes this.
  10. Must I type only * for commands in the config.yml ?
    When I typed that, there is a error in the console:

    Code:
    2011-05-16 16:53:12 [SEVERE] Could not load 'plugins/CommandAlert.jar' in folder 'plugins':
    while scanning an alias
     in "<reader>", line 4, column 11:
        commands: *
                  ^
    expected alphabetic or numeric character, but found but found
    
     in "<reader>", line 4, column 12:
        commands: *
                   ^
    
            at org.yaml.snakeyaml.scanner.ScannerImpl.scanAnchor(ScannerImpl.java:1156)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchAlias(ScannerImpl.java:782)
            at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:313)
            at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
            at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingValue.produce(ParserImpl.java:592)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:132)
            at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
            at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
            at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:73)
            at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:158)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
     
  11. Try putting it in quotes '*'
     
  12. Offline

    piousminion

    If "logToConsole:true" is it also logged to server.log?
    That really is the only functionality I'm looking for.... not that including the coords isn't wonderful. :)
     
  13. yep
     
  14. Offline

    Wakko

    Is there an option to disable in-game alerts?
    I don't want to get spammed with command alerts.
     
  15. in the config showInGameAlert
     
  16. Offline

    Wakko

    Cool, testing this now. :)
     
  17. It seems this does not log admin commands, could that be enabled/configurable?
     
  18. You need to revoke the commandalert.notrigger permissions explicitly on admin group
     
  19. Thanks, should have known that :<
     
  20. :D Welcome to bukkit also
     
  21. Offline

    godsyn

    Code:
      Admins:
        default: false
        permissions:
        - -commandalert.notrigger
        - '*'
        inheritance: []
        info:
          prefix: '&4'
          build: true
          suffix: '&f'
      Mods:
        default: false
        permissions:
        - commandalert.alerts
    Admins do not alert, but do see other's. Mods do not see alerts. Resolve?
    Note: using commandalert 1.1, and it doesn't appear to matter what version of craftbukkit.
     
  22. Can you try 1.2 (just added)
     
  23. Offline

    godsyn

    Code:
    00:24:15 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-920-g82c1a3d-b974jnks (MC: 1.7.3)
    ...
    00:23:30 [INFO] Loaded CommandAlert build 1.2 maintained by [ementalo]
    Code:
    00:25:40 [INFO] [CONSOLE] david, "/rules" plz
    00:25:43 [INFO] §9[PLAYER_COMMAND] davidbullship: /rules
    00:25:46 [INFO] [PVE]§4davidbullship§f§f: nothing
    00:25:50 [INFO] [PVE]§4davidbullship§f§f: but rules
    Code:
    00:26:24 [INFO] [CONSOLE] wire, rules plz. David, can you see wire's?
    00:26:28 [INFO] §9[PLAYER_COMMAND] KogeBob: /home
    00:26:30 [INFO] §9[PLAYER_COMMAND] wirewrapper1: /rules
    00:26:35 [INFO] [PVE]§4davidbullship§f§f: yep
    
    Same issue. Same permissions as previous post. David is in the "Admins" group.
     
  24. I have re-uploaded a new jar can you download and see if it works
     
  25. Offline

    trentroolz

    I tried to use this plugin, it doesn't seem to work at all. At first it was tossing errors, now it's not doing anything. It says it loads but it doesn't output anything to console and it doesn't output anything to logs.
     
  26. Offline

    godsyn

    No change :(
     
  27. Offline

    Khan Jal

    Sadly I too get no errors but nothing in the logs or console.

    Bukkit 935

    Code:
    locationHistory: 30
    logToFile: true
    showInGameAlert: true
    commands: abcd
    logToConsole: true
    mode: blacklist
     
  28. Offline

    Wiernusz

    No errors.. but also no command logging.
     
  29. Offline

    piousminion

    My Admin's permissions are:
    *
    -commandalert.notrigger

    However, only opped people can see in-game alerts.
    Ideas?
     
  30. Offline

    imaxorz

    Same issue here. Only OPed players see the alerts.
     
Thread Status:
Not open for further replies.

Share This Page