Xray control - Mined Ores Statistics

Discussion in 'Archived: Plugin Requests' started by MithrandirCraft, Nov 17, 2013.

  1. Offline

    danjb2000

  2. Online

    timtower Administrator Administrator Moderator

    danjb2000 likes this.
  3. Offline

    Staartvin

    I also recommend FoundOres Revisited, but that's because I'm the owner ;)
     
    rbrick and timtower like this.
  4. Online

    timtower Administrator Administrator Moderator

    MithrandirCraft Got bored: https://www.dropbox.com/s/ix94ua3w6fm3yf5/BlockLoggerLikeMe.jar
    This is only logging the block breaks, no commands, no kicks, just logging and putting it into the config file.
    Example config with explenation:
    Code:
    settings:
      loggedBlocks:                    #List of blocks to be logged
      - STONE
      - DIRT
      - GRASS
      - COAL_ORE
      - IRON_ORE
      - REDSTONE_ORE
      - GOLD_ORE
      - LAPIS_ORE
      - DIAMOND_ORE
      - EMERALD_ORE
      ignorecreative: true           #Ignore players in creative mode
      enabledWorlds:                  #Worlds where enabled
      - world
    loggedBlocks:                        #Logged blocks
      world:                                      #What world are we logging in
        timtower:                                 #Player name
          IRON_ORE: 3                         #Blocks that are logged
          GOLD_ORE: 3
    
     
  5. Offline

    MithrandirCraft

    Suggestion: (if something is not in the list, it's because I personally don't need it):

    - Tracking how many ores are mined from each type of ore and individually by players.
    (just like in this plugin http://dev.bukkit.org/bukkit-plugins/rate-xray/)

    - This is a suggestion for preventing false xrayers (allthough it might be hard to make, or could be more efficient if done some other way): The tracking of ores must be done just once per ore, this means that if someone mines an entire block of diamond with silk touch, and takes it to someone else (or maybe just re-mines it again and again) only the first time the block was mined should be counted into the rates.
    - A top ranking also has to be made for spotting potential xrayers easyer (also with same functions as plugin mentioned)
    Commands: (''ores'' as main name for commands is just an example):
    /ores top (shows top potential xrayers by calculating mined ores/ ammount of time they have been playing/ minimum ammount of blocks mined before they are considered potential xrayers )
    /ores clearall (clears all data on mined ores)
    /ores check [player] (checks a player individually for what ores he has mined)
    /ores clearplayer (clears all data on mined ores on a specific player)
    /ores reload (reload plugin)
    Permissions:
    ores.nolog (nothing is loged for this player/ players without this permission WILL be loged)
    ores.top (allows checking top suspicious possible xrayers)
    Config:
    Whatever is felt necesary, I personally don't think much config is necesary in order to keep it simple.

    That's a nice plugin, but I think it intimidates players xD (even legal ones), can also add spam to chat... well It just doesn't suit my server haha n_n
    btw, the issue I always experimented with your plugin (InventoryDropChance) might have something to do with PvPlogger compatibility xD

    Oh wait, your plugin might be it o_o, does it work with 1.6.4?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  6. Online

    timtower Administrator Administrator Moderator

    Won't do this part, don't want to create a database to keep track of stuff
    Already doing that... Seen the example config? That is also the log file.

    Will do rest without quotes

    /ores top (shows top potential xrayers by calculating mined ores/ amount of time they have been playing/ minimum ammount of blocks mined before they are considered potential xrayers )
    Just something that will take out the players with highest percentage ore / stone+dirt
    /ores clearall (clears all data on mined ores)
    That is a real easy one
    /ores check [player] (checks a player individually for what ores he has mined)
    Not hard either
    /ores clearplayer (clears all data on mined ores on a specific player)
    Not hard
    /ores reload (reload plugin)
    What do you want to reload?

    The not logging permission is useless in my opinion
    And will create a node for each command
     
  7. Offline

    Staartvin

    It should work, I have tested it.
     
  8. Offline

    MithrandirCraft

    timtower Even though I see Found Ores has changed quite a lot, the more simplified and updated plugin you offer is still interesting:

    Would you say these two are necesary?

    - DIRT
    - GRASS

    Could this one be added?

    - NETHER_QUARTZ_ORE

    It's a pitty you can't include a system for preventing false acusations due to silktouch & fortune xD
    Anyway, if you do that it would just be a matter of testing your plugin when you have something ready :)
     
  9. Online

    timtower Administrator Administrator Moderator

    MithrandirCraft I just added them, no big deal if you remove it
    And yes, you can do that yourself... just make sure that you also add the nether to you logged worlds
     
  10. Offline

    bgsteiner


    Well I guess I will delete my source since you have it
     
  11. Online

    timtower Administrator Administrator Moderator

    You can still finish it if you want, I actually don't feel like adding commands to this
     
  12. Offline

    bgsteiner


    I should be able to do it over thanksgiving break.
     
    timtower likes this.
  13. Offline

    MithrandirCraft

  14. Online

    timtower Administrator Administrator Moderator

    I stopped working on this after bgsteiner made his comment
     
    AndyMcB1 likes this.
  15. Offline

    bgsteiner

    Im working on it
     
  16. Offline

    bgsteiner

    Well I am close to being don't Hopefully I will have an alpha ready to test by the end of the day you can look here http://ci.steinserv.net/job/Ore Stats/ as this is where I wil publish the plugin not sure if I will put it on bukkit dev.
     
  17. Offline

    MithrandirCraft

    Allright, I will check regulary :)
     
  18. Offline

    bgsteiner

    Well I have compiled the first version of the plugin you need the SQLibrary that you can get from the jenkins build site just get both files. I have tested it with 2 players and it seems to work i will refine features like add command help and other shit like update notifications.

    Commands
    /os /orestat
    /os top - gets top users based on ores - will add alternat look up method later
    /os lookup [playername]
    /os reset [playername] - not sure if it works
    /os reset all - resets all data

    Perms - also default to op
    orestats.top
    orestats.lookup
    orestats.reset.player
    orestats.reset.all
    orestats.nolog

    I have planned features but I said I would get you a working version ASAP so here it is you can report problems here or on the tracker here https://bitbucket.org/bgsteiner/ore-stats/issues
     
  19. Offline

    MithrandirCraft

    bgsteiner SQLLibrary dependency? Couldn't you make it flat file?

    Allright I will be testing it anyway.
     
  20. Offline

    bgsteiner

    MithrandirCraft

    It doesn't require a SQL server I use the SQLite side of it once I fix my SQLite driver it will all be self contained. It stores it in a .db file so its a little more stable than a flat file as it cant be easily corrupted. If you really want it to be flat file I can redo it I guess.
     

Share This Page