🏹

by @insanj

View the Project on GitHub insanj/CommandPlates

🏹
CommandPlates

bind commands to pressure plates (minecraft 1.12.2)




How to Play

debug: false
plates:
  Example:
    author: insanj
    location:
      world: world
      x: 0
      y: 0
      z: 0
    console: true
    commands:
      - say Hello
      - say World!

Example Permissions

server.basics:
  description: Basic permissions for the server.
  default: not-op
  children:
    pplates.chickenpasta: true


How to Build

make plugin

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).


Original Request

https://bukkit.org/threads/pressureplates.478872/


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.

Acknowledgements

Authors

(c) 2019 Julian Weiss (insanj). Made with πŸ’š in Brooklyn. insanj.com.


License

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.