bind commands to pressure plates (minecraft 1.12.2)
How to Play
- Drop the
CommandPlates.jarfile into the
pluginsfolder on your server.
- That's it! Only OPs can run commands unless the appropriate permission is given:
pplates.adminfor the ability to create new plates
pplates.usefor the ability to activate any plate
pplates.<plate_name>for the ability to activate a specific plate
- Run the following command to set up a Command Plate:
/pplates create <name> <run_as_console:true/false> <command 1, command 2, ...>
- You can remove plates with the command:
/pplates remove <plate_name>
- Check in on plates by running (either as a player or as the server console):
/pplates info <optional:plate_name>
- Everything will be saved into the
plugins/CommandPlates/config.ymlfile, which automatically fills in an example when running for the first time:
debug: false plates: Example: author: insanj location: world: world x: 0 y: 0 z: 0 console: true commands: - say Hello - say World!
server.basics: description: Basic permissions for the server. default: not-op children: pplates.chickenpasta: true
How to Build
You will need
craftbukkit-1.12.2.jar available on your machine. The makefile expects this to be in an
external/ directory that is not commited to git (you can change the path at the top of the file).
Minecraft version: 1.12.2 Suggested name: PressurePlates What I want: I like to request a plugin to allow players to bind command or commands to pressure plates that will either execute the command(s) by player or console when the pressure plate is stepped on. Ideas for command/permission: pressureplate.admin - /pplates create platename <true:false> <command_one, command_two> - Gives a pressure plate in which you can place down to execute the command. If set to true, the command will be execute by console. If set to false, it will be execute by the player. Use %player% in the command to replace the players name in commands - /pplates list - Shows all available pressure plates - /pplates info - While looking at a pressure plate, it will give you information about that plate - /pplates info platename - Just another way to look up plate info directly by command /pplates info platename: console: true/false - command_one - command_two /pplates list List of available pressure plates. - platename - platename2 - platename3 pressureplate.use This is default player permission needed to use any of the pressure plates. pressureplate.platename Players would also need pressureplate.platename permissions to execute certain pressure plate config.yml or pressureplates.yml to store all data Thank you for reading.
(c) 2019 Julian Weiss (insanj). Made with
MIT License Copyright (c) 2019 Julian Weiss Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.