OpenInv icon indicating copy to clipboard operation
OpenInv copied to clipboard

console commands

Open bog500 opened this issue 9 years ago • 4 comments

this is not an "issue" per say but most commands should be usable from console. openinv should work from the console but stuff would be listed as text instead of showing the gui.

bog500 avatar Dec 07 '15 16:12 bog500

Good idea. I'll see what I can do.

ShadowRanger avatar Dec 08 '15 06:12 ShadowRanger

What kind of display did you have in mind? There can be a lot of detail to a single item.

I'm not planning on implementing this soon, but here's my idea: openinv <player> for console would display a list of materials and quantity listed by slot ID:

1: AIR x0
2: STICK x10
...

openinv <player> <slot> would display detailed information about the item in the particular slot.

Does that sound good? If so, would we prefer the Bukkit string representation or Minecraft's JSON string representation? If we're really feeling it, we could add another optional parameter, where Bukkit variants result in the Bukkit version and Mojang variants result in the Minecraft version. If we don't feel like the optional parameter, it'd be best to use Bukkit's version for better backwards compatibility.

Jikoo avatar Nov 26 '16 21:11 Jikoo

Yes, that was pretty much how I imagined it. As for the name, I would go with the version that would be consider "best practices" by the bukkit plugin community.

bog500 avatar Nov 28 '16 07:11 bog500

I like this plugin but when i give my freinds op. but they sometimes look at my inv so is there way to block this?

Unknownio avatar Sep 28 '20 22:09 Unknownio