Giter VIP home page Giter VIP logo

commandtoitem's Introduction

Leonardo Bishop (he/him) 👋

Hello! 🎉

I'm Leonardo, a programmer based in the United Kingdom.

I'm currently completing a degree in Computer Science at university, and I like to spend some of free time working on projects like Quests, or learning new tools and languages.

Contact 📩

If you need to contact me privately, my email address is me [at] leonardobishop [dot] com.

commandtoitem's People

Contributors

lmbishop avatar meowsome avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

commandtoitem's Issues

Allow no command

Potentially odd suggestion given the name and function of the plugin:
Would it be possible to make on-use.commands optional? I like to use your plugin to save specific items to give in crates (your layout is by far the best for name/lore/enchants/attributes etc). It would be nice if the item didn't require command functionality!

Give a stack of item with a single command

Users can run command that gives specified amount of the item

currently with "/cti item player" u cant give a stack of the item to the player
and it's a pain to spam it 64 times

An error message when using plugin with Betterrtp

rtp:
name: "&f隨機&5傳送&f卷軸"
lore:
- "&c一次性產品&f,使用時將會被隨機&c傳送至千里之外"
- "&4備註:只能在主世界使用"
- "&f 右鍵 | 使用卷軸"
item: PAPER
on-use:
commands:
- "rtp player %player% world"

    error message when I was using it
    https://paste.in/nIkp35

Bug fix: Off-Hand support

Hi,

I have noticed that putting items on your off-hand makes them unusable. There doesn't seem to be a config option for disabling this, and it is annoying for players like me who use their off-hand for everything. Additionally, it makes Infinite food items consumable, which is against the point.

Suggestion: Making an item unconsumable by horses

Horses can eat Apples. Although it may seem like a pointless change or an extra feature only added for no reason, I think it would be a cute addition to this plugin. I know you can't disable every single way to lose an item, but thsi would be a really good addition to the plugin.

custom drop message doesn't work

Hi,
on the latest version of CommandToItem the custom drop message if the players inventory is full doesn't work as it is always displaying the default message.
My config looks like this:

  CustomItem:
    options:
      permission-required: false
      drop-if-full-inventory: true
    messages:
      receive-item-inventory-full: "&2Your inventory is full and your &a%item%&2 was dropped at your feet."

It displays always the default message which is
"&6You have been given %item%&6, but it was dropped at your feet because your inventory is full."

Suggestion: Allow Configuring for Command Fail

Users can create command items which may fail to execute their commands, such as when failing to find a target. Users may also want to configure commands/messages to be displayed once a command has failed, such as to explain to players what has gone wrong. This addition would help greatly aid players who want to use CommandToItem tools, but do not understand the underlying command logic to asertain what went wrong themselves.

Players are unable to hit signs with CommandToItem items

This prevents them from being able to initialize signs on shops with any items from CommandToItem.

This could be solved by allowing LEFT_CLICK_BLOCK while holding one of your items

Proposed fix:

if (item != null) {
     if (event.getAction() != Action.LEFT_CLICK_BLOCK)
           event.setCancelled(true);
     if (event.getAction() != Action.RIGHT_CLICK_AIR && event.getAction() != Action.RIGHT_CLICK_BLOCK) {
          return;
     }

How to use command as OP

Hello.
I was wondering if there is any way to do something like executeas:player but with temporal OP permissions. I have a workaround but I wouldn't want to implement the item that way (to give permissions temporarily and then remove them).

Thanks in advance!

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.