This plugin allows a player to have "One-Time" item, which will execute pre-defined set of commands when it is "right-clicked" in the air. Once the item is used, it will automatically be removed from player's inventory.
The server owner can :
Installation:
Just install OneTimeItem.jar in the plugin folder. Then you can either "restart the server" or "reload the plugin. You would also need to install Vault plugin, which this plugin uses to manage permissions.
Commands:
Configuration:
Code (Text):
Messages:
ErrorMsg : "&c[OneTimeItem] : Some error occured."
NoPlayer : "&c[OneTimeItem] : Player Not Found."
NoSuchOneTimeItem : "&c[OneTimeItem] : No such OneTimeItem %type% found."
OTItemGiven: "&a[OneTimeItem] %player% received %amount% one time items of type %type%!"
OTItemReceived: "&a[OneTimeItem] You received %amount% one time items of type %type%!"
OnceInALifetime: "&c[OneTimeItem] : You can use this item once in your lifetime!"
CannotUseIt: "&c[OneTimeItem] : You cannot use it here!"
NoPermission : "&c[OneTimeItem] : You don't have a permission to use this item!"
HelpMessages:
banner:
msg: "=== &e[&aOneTimeItem Commands List (%version%)&e] &r==="
help:
msg: "&a/oti help : displays this help menu."
reload:
msg: "&a/oti reload : reloads config file."
permission: "OneTimeItem.reload"
debug:
The server owner can :
- use any item as an One-Time item,
- assign any number of commands to be executed upon right-click.
Installation:
Just install OneTimeItem.jar in the plugin folder. Then you can either "restart the server" or "reload the plugin. You would also need to install Vault plugin, which this plugin uses to manage permissions.
Commands:
- /oti help : displays this help menu.
- /oti reload : reloads config file.
- /oti debug <true|false> : turn on / off the debug mode.
- /oti give <player> <one_time_item_id> <amount> : gives <player> the specified one time items.
- /oti list : lists available one time items.
- onetimeitem.admin : allows you to use give | list command
- onetimeitem.reload : allows you ot use reload command
Configuration:
Code (Text):
Messages:
ErrorMsg : "&c[OneTimeItem] : Some error occured."
NoPlayer : "&c[OneTimeItem] : Player Not Found."
NoSuchOneTimeItem : "&c[OneTimeItem] : No such OneTimeItem %type% found."
OTItemGiven: "&a[OneTimeItem] %player% received %amount% one time items of type %type%!"
OTItemReceived: "&a[OneTimeItem] You received %amount% one time items of type %type%!"
OnceInALifetime: "&c[OneTimeItem] : You can use this item once in your lifetime!"
CannotUseIt: "&c[OneTimeItem] : You cannot use it here!"
NoPermission : "&c[OneTimeItem] : You don't have a permission to use this item!"
HelpMessages:
banner:
msg: "=== &e[&aOneTimeItem Commands List (%version%)&e] &r==="
help:
msg: "&a/oti help : displays this help menu."
reload:
msg: "&a/oti reload : reloads config file."
permission: "OneTimeItem.reload"
debug: