OreNotifier v1.0.0

OreNotifier

Plugin notifies about optional blocks around you.

  • You can set range
  • You can set blocks to get notified for
  • PermissionsBukkit support

on_screen


Commands

/orenotifier - shows your settings
/orenotifier setrange positive_number - set range, range is configurable in config
/orenotifier settype D|G|I|C|L|R|M|? - set blocks, /orenotifier blocks for available blocks
Exaple: /orenotifier settype DGRM - will notify for diamonds, gold ores, redstones, mob spawners
/orenotifier blocks - lists available blocks
/orenotifier reload - reaload configs


Configuration

In plugin folder you can find two configs:

config.yml

In this config are stored plugin global settings. Plugin use this config read only

# List of all available blocks
blocks:
  # Block code (must be one upper case letter), these letters are used for command /orenotifier settype
  D:
    # Block name, displayed in chat
    name: Diam.
    # Block ID
    id: 56
    # Color for this block, you can use these colors:
    # AQUA, BLACK ,BLUE, BOLD, DARK_AQUA, DARK_BLUE, DARK_GRAY, DARK_GREEN, DARK_PURPLE, DARK_RED, GOLD, GRAY, GREEN, LIGHT_PURPLE, RED, WHITE, YELLOW
    color: AQUA
  G:
    name: Gold
    id: 14
    color: GOLD
  I:
    name: Iron
    id: 15
    color: DARK_RED
  C:
    name: Coal
    id: 16
    color: DARK_GRAY
  L:
    name: Lapis
    id: 21
    color: BLUE
  R:
    name: Redst.
    id: 73
    color: RED
  M:
    name: MobSp.
    id: 52
    color: WHITE
# aliases for some blocks like redstone ore
aliases:
  # block id from 'blocks' section and it's aliases (73 is normal redstone ore and 74 is glowing redstone ore) 
  '73':
  - 74
# minimal usable range (cannot be lower then 1) 
minrange: 1
# maximal usable range (cannot be higher then 32) 
maxrange: 16
# max height where you want to find blocks
maxheight: 255
# min height where you want to find blocks
minheight: 0

players.yml

In this config are stored players individual settings.

# default section must be always presented! It is used as template for new players!
default:
  blocks: MDG
  range: 8
# Player name
z0ny:
  # Player custom range
  range: 8
  # Player custom blocks
  blocks: MDRG


Installation

Just copy OreNotifier.jar in your plugin directory and reload your server. After first load it will create configs for you.


Permissions

Permission nodes for PermissionsBukkit (tested only with version 1.6)

  # Gives access to all OreNotifier commands, Operators has this permission 
  orenotifier.*: true
  # Allows you to see notification. Commands /orenotifier and /orenotifier blocks
  orenotifier: true
  # Allows you to set range range. Command /orenotifier setrange
  orenotifier.setrange: true
  # Allows you to set your blocks. Command /orenotifier settype
  orenotifier.settype: true
  # Allows you to reload configs. Command /orenotifier reload
  orenotifier.reload: true


Changelog

version 1.0.0 (1.5.2012, bukkit-1.2.5-R1.0)

  • first release


Known bugs

  • 1st load does not loads default config and it loads only one block from config.yml (it means you must double reload plugin)




donate if you like this plugin and want to support me. I will be grateful.