HomeJavaModsPayForCommand [1.9-1.13]
PayForCommand [1.9-1.13]
[​IMG]
My other Plugins:
UltimateFireworks - HelpPagePlus - ControllerBlock Reloaded - MessageMe - VoteReward




[​IMG]

[​IMG]

This plugin allows you to set a price for a command.

This Plugin requires Vault

[​IMG]

/pfc help (Page) (This command shows you the help page.)
/pfc info (This command shows you the info page.)
/pfc yes (This command accepts the buying of the command.)
/pfc no (This command denys the buying of the command.)
/pfc reload (This command is reloading the files.)


Admin permissions:

PayForCommand.Reload (/pfc reload)
PayForCommand.UpdateMessage (You get a message, if there is a new update for this plugin.)

[​IMG]

Spoiler: Commands.yml
Code (Text):

Version: 1.15

#If you want to add a new command, you can choose any name you like.
TestCommand1:
  #The name of the command must be set here. (Every command in this example, that starts with "/TestCommand give" will cost the price below.)
  Name: /TestCommand1 give
  Aliases:
  - /TC give
  - /TC i
  #If you are using Vault, you can set the price for the command here.
  Price:
    Money: 49.5
    #Set the Permission to the permission of the command if the PayForCommand should check the permission before buying the command.
  Permission: The.Default.Command.Permission.*
TestCommand2:
  Name: /TestCommand2 give
  Aliases:
  - /TC give
  - /TC i
  #If you don't want to use Vault, you can set a Item price. (You can find the Material-List here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html )
  Price:
    Item:
      Material: DIAMOND
      Amount: 5
      SubID: 0
  Permission: The.Default.Command.Permission.*

 

Spoiler: Commands.yml (Chinese from ItsDiaaaaaaa)
Code (Text):

Version: 1.18

#自定义指令名称.
TestCommand1:
#原指令
Name: /TestCommand1 give
#指令别名
Aliases:
/TC give
/TC i
#如果你装了 Vault 插件,您可以自定义这个指令的价格.
Price:
Money: 49.5
#运行这个指令需要的权限.
Permission: The.Default.Command.Permission.*
TestCommand2:
Name: /TestCommand2 give
Aliases:
/TC give
/TC i
#如果您没有 Vault 插件,你也可以以物品的形式来设置价格. (您可以在这里找到物品列表: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html )
Price:
Item:
Material: DIAMOND
Amount: 5
SubID: 0
Permission: The.Default.Command.Permission.*
 

(plugins/PayForCommand/Commands.yml)


Spoiler: Messages.yml
Code (Text):

Version: 1.15
'[PayForCommand]': '&a[&2PayForCommand&a] '
Color:
  '1': '&2'
  '2': '&a'
Message:
  '1': You have to be a player, to use this command.
  '2': You do not have the permission for this command.
  '3': "Do you whant to pay &a&l[MONEY]$&2 to use the \ncommand: &a&l[COMMAND]&2?"
  '4': '&a&lYES'
  '5': '&c&lNO'
  '6': '&a&m&l---------&r '
  '7': There is no command you can accept or deny.
  '8': You do not have enought money to use this command.
  '9': You payed &a&l[MONEY]$&2 to use this command.
  '10': You canceled the purchase of the command &a&l[COMMAND]&2.
  '11': The plugin is reloading...
  '12': Reloading completed.
  '13': Try [COMMAND]
  '14': The Plugin vault has not been found on the server!
  '15': There is a new update available for this plugin. &a( https://fof1092.de/Plugins/PFC )&2
  '17': You need &a&l[NUMBER]&2 more &a&l[ITEM](s)&2 to use this command.
  '18': You payed &a&l[NUMBER]&2 &a&l[ITEM](s)&2 to use this command.
  '19': Unable to find an command Price.
  '20': You have to hold the Item in your hand.
HelpTextGui:
  '1': '&a[&2Click to use this command&a]'
  '2': '&a[&2Next page&a]'
  '3': '&a[&2Last page&a]'
  '4': '&7&oPage [PAGE]. &7Click on the arrows for the next page.'
HelpText:
  '1': This command shows you the help page.
  '2': This command shows you the info page.
  '3': This command accepts the buying of the command.
  '4': This command denys the buying of the command.
  '5': This command is reloading the Config.yml and Commands.yml file.

 

Spoiler: Messages.yml (Chinese from ItsDiaaaaaaa)[/SIZE]
Code (Text):

#版本号,请勿修改
Version: 1.18
#前缀名称
'[PayForCommand]': '&a[&2PayForCommand&a] '
#指定文本颜色
Color:
'1': '&2'
'2': '&a'
#文本内容
Message:
'1': 该指令需要在游戏里面运行.
'2': 您没有足够的权限来运行这个指令.
'3': "您确定要花费 &a&l[MONEY]$&2 来使用这个指令吗? \n指令: &a&l[COMMAND]&2?"
'4': '&a&l确定'
'5': '&c&l否定'
'6': '&a&m&l---------&r '
'7': 没有任何指令需要来确认或否认.
'8': 您没有足够的金钱来运行这个指令.
'9': 您花费了 &a&l[MONEY]$&2 来运行这个指令.
'10': &a&l[COMMAND] &f指令的购买已被您取消&2.
'11': 插件正在重载中...
'12': 重载完毕.
'13': 试试 [COMMAND]
'14': 插件将不会在服务器运行,因为没有找到前置插件 Vault!
'15': 一个可用于本服务器的插件更新: &a( https://fof1092.de/Plugins/PFC )&2
'17': 您需要 &a&l[NUMBER]&2 和 &a&lITEM&2 来运行这个指令.
'18': 您支付了 &a&l[NUMBER]&2 &a&lITEM&2 来运行这个指令.
'19': 指令的价格无法查询.
'20': 您必须把要交付的物品拿在手上.
HelpTextGui:
'1': '&a[&2点击以使用以下命令&a]'
'2': '&a[&2下一页&a]'
'3': '&a[&2上一页&a]'
'4': '&7&o第 [PAGE] 页. &7点击箭头来翻到下一页.'
HelpText:
'1': 获取帮助.
'2': 获取信息页.
'3': 同意购买此指令.
'4': 拒绝购买此指令.
'5': 重载 Config.yml 和 Commands.yml.
 

(plugins/PayForCommand/Messages.yml)



[​IMG]


If you have a problem or a question about the Plugin, message me first before leaving a review!

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

PayForCommand [1.9-1.13] is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10, 1.11, 1.12 and newer. Downloaded 1,921 times (via Spigot). Download it and open it directly in the game.

Explore more