CustomPlate
What does CustomPlate do?
- Pressure plates, with a special block under it, can only be activated by special entitiys / items.
- If the block under the pressure plate is not specialized for an entity / item, every entity / item can activate the pressure plate
Why do i need CustomPlate?
- You can use CustomPlate, to make your house more save.
- Just place a CustomPlate in front of your door, which can only be activated by players or even just yourself.
- Zombies, Creepers (other Players) and so one have no chance!
- You can also use it, for specail redstone circuit.
- Just create a CustomPlate, which can only be activated by a thrown EXP-Bottle or a falling block.
- Use it as Payment: Detect diamonts to activate a dispenser or a door.
Download
Installation
- Download the CustomPlate.jar.
- Move the CustomPlate.jar in your plugins folder.
- Start your server.
- If you would like to edit the blocks:
- Stop your server again.
- Edit the config.txt of CustomPlate.
- Save it, and restart your server.
- Enjoy
Config
In the config, you define, which entity, player or item can use which CustomPlate.
Example
pig: iron_ore odinoxin: iron_ore players: iron_block odinoxin: diamond_block chrissw-r1: diamond_block item.emerald: emerald_block
Block under Plate | Can be used by... | Cannot be used by any... |
Iron_Ore | Pigs and OdinOxin | item, other players or other entitys |
Iron_Block | All players (Including ChrissW-R1 and OdinOxin). | item or other entitys |
Diamont_Block | OdinOxin and ChrissW-R1 | items, entitys or other players |
Emerald_Block | Emerald (As item) | player, entity or other items |
Others | All and everything |
Permissions
There are just 2 permissions for CustomPlate:
- customplate.create
- customplate.break
They are self explaining, aren't they?
@ChengZi368
Could be implemented in the next version, but is also avaiable in the current version:
Here the player "OdinOxin" has the permission to use an IRON_ORE-plate, and nobody else.
maybe add one perm node: customplate.use ?
@OdinOxin does this still work man?
@Dunbaratu But that is a good point. I'll do my best to dectect items in the same way in the next version!
@Dunbaratu Since version 2.3.0 it is possible, to detect Items as well.
If you got any new ideas, then please report them to me.
Have fun ;-)
@OdinOxin
@OdinOxin: Thanks. I was hoping to use the plugin to make a vending machine that detects the type of the item being dropped down a chute (with custom pressure plate at the bottom), and only accept it as payment if it's the right sort of item. It looks like that won't work because all dropped items have the same entity id. They're all "DROPPED_ITEM".
@Dunbaratu Hi,
first, CustomPlate detects only Entitys. They could be also Players and "Items" like falling blocks or EXP-Bottles.
You can find all Strings you need right here:
http://jd.bukkit.org/rb/apidocs/org/bukkit/entity/EntityType.html
The String for EXP-Bottle would be: "THROWN_EXP_BOTTLE" (CustomPlate is case insensetive...)
In future CustomPlate will also be able to check the Profession of Villagers and types of ocelots. (I hope so ;) ).
The message means, that CustomPlate could not found the Plugin Vault, which is a Plugin to connect diffrent permissions-plugins with a plugin like CustomPlate. This is helpful, because CustomPlate now doesn't depend on 1 special permission-plugin; It supports the most common.
If you haven't installed Vault, it does not metter. In this case, only the operators have access to build CustomPlates and break them. But if you want your users to build them, without giving them access to stop the server, or something like that, you need a permissions plugin AND Vault, to connect those 3: CustomPlate <-> Vault <-> permissions plugin.
What does this startup message mean in the log:
[WARNING] [CustomPlate] Vault was not found. Only Operators have access to create/break CustomPlates.
What is this "Vault" that it's looking for?
The description implies that there is a way to do this:
* Just create a CustomPlate, which can only be activated by a thrown EXP-Bottle or a falling block.
What would the config file look like for that? The examples only show using player names for the triggers, like this:
means "if the block under the plate is ID 15 (iron ore) then the thing called "dunbaratu" (a player name) can trigger this plate".
But what string am I supposed to use if the trigger isn't a monster or a player but an item thrown onto the block? To use the example from the instructions, what string do I use for "exp bottle"?
Am I supposed to use the strings from here: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html ?
@ChengZi368
@leobizaz
In the next Update, there will be CustomPlates for custom players. Just need some Time. Donations will keep my work, and our Project ;-).
Great work.will u add that can only active by the owner or some player?or have to answer the password to active it.
Can you make it so it only activates for a certain player? :D