Git Product home page Git Product logo

itemcommands's People

Contributors

poggit-bot avatar robske110 avatar theaz928 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

itemcommands's Issues

Help

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!

multiple clicks

when I click to use the item, it is used several times in sequence!

Enchanted Item

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'

Nothing wrong with my config


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}]}"
...

Suggestion

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:

  • /testcommand
    Button2:
    Button:3

Button1 will execute the command testcommand if it’s clicked.
Anyways Thanks for reading this!

Items go down if you use it

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?

improvement suggestion

please add the possibility to execute commands with {player} or with selectors as used in the PlayerSelector plugin, thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.