selldoor

last built 3 weeks ago
Build #2
By downloading this file, you agree to our license terms.
Source: github.com
License: MIT
Maintainer: MCrow
The RocketMod team curates a dozen of community plugins and could need your support.
Consider a donation to RocketMod and sponsor your favourite plugins or contribute code to them.

SellDoor

About Plugin

This plugin allows players to buy and sell their doors. It’s mainly meant to be an open source example of such plugin.

Features

• Players can sell their doors
• Players can check the price of the door
• Players can buy others doors if they are putten on sale
• Saves the doors that are on sale to .json file inside plugin directory

Commands

/selldoor <price> – Puts on sale the door you look at
<Permission Cooldown="0">selldoor</Permission>

/costdoor – Check’s for the price of the door look at
<Permission Cooldown="0">costdoor</Permission>

/buydoor – Buys the door you look at
<Permission Cooldown="0">buydoor</Permission>

Need help?

Discord: Restore Monarchy

Default configuration


<?xml version="1.0" encoding="utf-8"?>
<SellDoorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <MessageColor>green</MessageColor>
</SellDoorConfiguration>

Default english translation


<?xml version="1.0" encoding="utf-8"?>
<Translations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Translation Id="DoorNotFound" Value="You are not pointing at any door" />
  <Translation Id="DoorNotForSale" Value="This door is not on sale" />
  <Translation Id="SellDoorFormat" Value="Use: /selldoor &lt;price&gt;" />
  <Translation Id="SellDoorWrongPrice" Value="{0} is not a correct price" />
  <Translation Id="SellDoorSuccess" Value="Successfully put your door on sale for {0}" />
  <Translation Id="SellDoorNotOwner" Value="You are not an owner of that door" />
  <Translation Id="CostDoorPrice" Value="You can buy this door for {0}" />
  <Translation Id="BuyDoorSuccess" Value="You successfully bought this door for {0}" />
  <Translation Id="BuyDoorCantAfford" Value="You can't afford to buy this door" />
</Translations>

Commands and permissions


/buydoor

Permissions: buydoor

Buy the door you are pointing at


/costdoor

Permissions: costdoor

Checks the door's you are point at price


/selldoor <price>

Permissions: selldoor

Puts the door player is pointing at on sale


Git changelog


25546a50a6a65fc 2019-10-12 09:52:02

Update README.md

    efae69d36544753 2019-10-12 09:50:02

    Initial commit (uploaded wrong project before)

      c46a07c3f545a43 2019-10-12 09:45:51

      Update README.md

        9d3eafd5d492e82 2019-10-12 09:44:42

        initial commit