MisterPixie
Allows players to set a message on a door, so when someone comes knocking they will get a message

Supported Games
GameServerKingsGameServerKings

If you are using an older version than 1.1.0, please make sure to read the update log for version 1.1.0 before updating otherwise you might encounter errors.

This plugin allows players to set a message on any of your doors. So when someone comes knocking on your door, the player knocking will get a message sent to them in chat.

Permissions

  • knockknock.allow -- Allows player to use the /knock chat command
  • knockknock.auto.allow -- Allows the player to use the auto command

Chat Commands

  • /knock -- Show all available commands for the plugin
  • /knock add "message" -- Add or update a door message
  • /knock remove -- Remove a message from a door
  • /knock auto -- Toggles the users ability to add messages onto doors automatically when they are placed
  • /knock auto "message" -- Sets the message for the auto function.

Configuration

{
  "Command": "knock",
  "Enable Auto Function": true,
  "Permission Settings": {
    "Permission to use Auto Message Function": true,
    "Permission to use Main Plugin Functions": true
  },
  "Prefix Settings": {
    "Message Prefix": "<color=#cf4d4d>KnockKnock: </color>",
    "Use Message Prefix": true
  }
}

Localization

{
  "NoPermission": "You don't have permissions to run this command.",
  "NoDoor": "Make sure you are looking at a door.",
  "DontOwnDoor": "You don't own this door",
  "MessageAdded": "New Message added to Door\n{0}",
  "RemovedMessage": "Door Message Removed.",
  "DoorMessage": "{0}",
  "NoMessageOnDoor": "The door does not have a message set.",
  "Commands": "List of Commands:\n/{0} add (Message) - Adds Message to your door\n/{0} remove - Removes door's message",
  "PermCommands": "List of Commands:\n/{0} add (Message) - Adds Message to your door\n/{0} remove - Removes door's message\n/{0} auto - Turns on auto messages\n/{0} auto (Message) - Set's a message for auto message",
  "AddCommand": "Incorrect Syntax - /{0} add (Message)",
  "ToggleAutoOn": "Auto messages have been turned On",
  "ToggleAutoOff": "Auto messages have been turned Off",
  "AutoMessageSet": "Your Auto message has been set\n{0}"
}

MIT License


Copyright (c) 2019 MisterPixie


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.