theaz928 / itemcommands Goto Github PK
View Code? Open in Web Editor NEWAdd commands to certain items!
License: GNU General Public License v3.0
Add commands to certain items!
License: GNU General Public License v3.0
when the item is used and youre not op it wont let you run the command
Please tell me how to add rank voucher really appreciate it..
On The Configuration file I did "setgroup {name} Knight" and I restarted my server and it didn't work and item Id is 339:200 please help
Thanks For Reading This!
when I click to use the item, it is used several times in sequence!
Doesn't support enchanted item
"277:5":
name: "Magic Shovel"
lore:
- "Tap For Better Shovel"
runAs: 2
commands:
- "give {name} 277 1 {display:{Name:"Diamond Shovel"}{ench:[{id:15s,lvl:4s} {id:17s,lvl:3s} {id:18s,lvl:3s}]}"
ERROR:
16.01 01:57:12 [Server] Server thread/INFO Loading ItemCommands v1.0.0
16.01 01:57:12 [Server] Server thread/INFO Loading items...
16.01 01:57:12 [Server] Server thread/CRITICAL ErrorException: "yaml_parse(): parsing error encountered during parsing: did not find expected '-' indicator (line 43, column 43), context while parsing a block collection (line 43, column 5)" (EXCEPTION) in "src/pocketmine/utils/Config" at line 155
16.01 01:57:12 [Server] Server thread/DEBUG #0 (): pocketmine\error_handler(integer 2, string yaml_parse(): parsing error encountered during parsing: did not find expected '-' indicator (line 43, column 43), context while parsing a block collection (line 43, column 5), string phar:///custom-php7.2.phar/src/pocketmine/utils/Config.php, integer 155, array Array())
16.01 01:57:12 [Server] Server thread/DEBUG #1 src/pocketmine/utils/Config(155): yaml_parse(string ---..# ItemCommands configuration file..# Developed by TheAz928....# If the item should be removed after usage..settings:.. remove-items: true....# Format:..# "ID:DAMAGE":..# runAs: player/console/asop..# commands:..# - " "..# - " "..# name: test..# lore:..# - " "..# TAGS:..# {name} - Player name..# {tag} - Player Name tag..# {level} - Player world name..# {x} - Player x..# {y} - Player y..# {z} - Player z..# RUN_AS:..# 0 - player..# 1 - op..# 2 - console.."339:100":.. name: "..aVoucher".. lore:.. - "Grants 100$".. runAs: 2.. commands:.. - "givemoney {name} 100"...."277:5":.. name: "Magic Shovel".. lore:.. - "Tap For Better Shovel".. runAs: 2.. commands:.. - "give {name} 277 1 {display:{Name:"Diamond Shovel"}{ench:[{id:15s,lvl:4s} {id:17s,lvl:3s} {id:18s,lvl:3s}]".....)
16.01 01:57:12 [Server] Server thread/DEBUG #2 src/pocketmine/utils/Config(86): pocketmine\utils\Config->load(string /plugins/ItemCommands/config.yml, integer -1, array Array())
16.01 01:57:12 [Server] Server thread/DEBUG #3 src/pocketmine/plugin/PluginBase(264): pocketmine\utils\Config->__construct(string /plugins/ItemCommands/config.yml)
16.01 01:57:12 [Server] Server thread/DEBUG #4 src/pocketmine/plugin/PluginBase(244): pocketmine\plugin\PluginBase->reloadConfig()
16.01 01:57:12 [Server] Server thread/DEBUG #5 ItemCommands_dev-6 (1).phar/src/ItemCommands/Core(22): pocketmine\plugin\PluginBase->getConfig()
16.01 01:57:12 [Server] Server thread/DEBUG #6 src/pocketmine/plugin/PharPluginLoader(112): ItemCommands\Core->onLoad()
16.01 01:57:12 [Server] Server thread/DEBUG #7 src/pocketmine/plugin/PharPluginLoader(65): pocketmine\plugin\PharPluginLoader->initPlugin(ItemCommands\Core object, pocketmine\plugin\PluginDescription object, string /plugins/ItemCommands, string phar:///plugins/ItemCommands_dev-6 (1).phar)
16.01 01:57:12 [Server] Server thread/DEBUG #8 src/pocketmine/plugin/PluginManager(161): pocketmine\plugin\PharPluginLoader->loadPlugin(string phar:///plugins/ItemCommands_dev-6 (1).phar)
16.01 01:57:12 [Server] Server thread/DEBUG #9 src/pocketmine/plugin/PluginManager(305): pocketmine\plugin\PluginManager->loadPlugin(string /plugins/ItemCommands_dev-6 (1).phar, array Array())
16.01 01:57:12 [Server] Server thread/DEBUG #10 AllAPILoader-ALPHA9.phar/src/TheNewHEROBRINE/AllAPILoader/Main(22): pocketmine\plugin\PluginManager->loadPlugins(string /plugins/, array Array())
16.01 01:57:12 [Server] Server thread/DEBUG #11 src/pocketmine/plugin/PluginBase(90): TheNewHEROBRINE\AllAPILoader\Main->onEnable()
16.01 01:57:12 [Server] Server thread/DEBUG #12 src/pocketmine/plugin/PharPluginLoader(122): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
16.01 01:57:12 [Server] Server thread/DEBUG #13 src/pocketmine/plugin/PluginManager(610): pocketmine\plugin\PharPluginLoader->enablePlugin(TheNewHEROBRINE\AllAPILoader\Main object)
16.01 01:57:12 [Server] Server thread/DEBUG #14 src/pocketmine/Server(1955): pocketmine\plugin\PluginManager->enablePlugin(TheNewHEROBRINE\AllAPILoader\Main object)
16.01 01:57:12 [Server] Server thread/DEBUG #15 src/pocketmine/Server(1941): pocketmine\Server->enablePlugin(TheNewHEROBRINE\AllAPILoader\Main object)
16.01 01:57:12 [Server] Server thread/DEBUG #16 PocketMine-DevTools_dev-83 (1).phar/src/DevTools/DevTools(49): pocketmine\Server->enablePlugins(integer 0)
16.01 01:57:12 [Server] Server thread/DEBUG #17 src/pocketmine/plugin/PluginBase(90): DevTools\DevTools->onEnable()
16.01 01:57:12 [Server] Server thread/DEBUG #18 src/pocketmine/plugin/PharPluginLoader(122): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
16.01 01:57:12 [Server] Server thread/DEBUG #19 src/pocketmine/plugin/PluginManager(610): pocketmine\plugin\PharPluginLoader->enablePlugin(DevTools\DevTools object)
16.01 01:57:12 [Server] Server thread/DEBUG #20 src/pocketmine/Server(1955): pocketmine\plugin\PluginManager->enablePlugin(DevTools\DevTools object)
16.01 01:57:12 [Server] Server thread/DEBUG #21 src/pocketmine/Server(1941): pocketmine\Server->enablePlugin(DevTools\DevTools object)
16.01 01:57:12 [Server] Server thread/DEBUG #22 src/pocketmine/Server(1655): pocketmine\Server->enablePlugins(integer 0)
16.01 01:57:12 [Server] Server thread/DEBUG #23 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /, string /plugins/)
16.01 01:57:12 [Server] Server thread/DEBUG #24 /custom-php7.2.phar(1): require(string phar:///custom-php7.2.phar/src/pocketmine/PocketMine.php)
16.01 01:57:12 [Server] Server thread/CRITICAL Could not load plugin 'ItemCommands'
settings:
remove-items: true
"339:100":
name: "§aVoucher"
lore:
- "Grants 100$"
runAs: 2
commands:
- "givemoney {name} 100"
"277:5":
name: "Magic Shovel"
lore:
- "Tap For Better Shovel"
runAs: 2
commands:
- "give {name} 277 1 {display:{Name:"Diamond Shovel"}{ench:[{id:15s,lvl:4s} {id:17s,lvl:3s} {id:18s,lvl:3s}]}"
...
#Bug
Hi,
Nice plugin dude!
I have a suggestion too make, too improve your already outsatanding plugin.
If player does /ic ui create (name)
It makes a ui, for that item. The ui can be edited in a separate config and config should look like his a bit:
Test
Button1:
Button1 will execute the command testcommand if it’s clicked.
Anyways Thanks for reading this!
I want to use a compass in lobby, but I need an infinite amount of them. For example, if you had 64, each time you'd click on it, you would lose one. Can you make the number infinite?
please add the possibility to execute commands with {player} or with selectors as used in the PlayerSelector plugin, thank you
I love this plugin 💯
Please Update API 4
If in the config it is runas console, a player without OP wont be able to use the paper with the command in IT.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.