Git Product home page Git Product logo

chestcommands's Introduction

ChestCommands

Bukkit Page: http://dev.bukkit.org/projects/chest-commands

API Javadoc for developers: https://ci.codemc.io/job/filoghost/job/ChestCommands/javadoc/index.html?me/filoghost/chestcommands/api/ChestCommandsAPI.html

Maven

<repository>
    <id>codemc-repo</id>
    <url>https://repo.codemc.io/repository/maven-public/</url>
</repository>
<dependency>
    <groupId>me.filoghost.chestcommands</groupId>
    <artifactId>chestcommands-api</artifactId>
    <version>4.0.4</version>
    <scope>provided</scope>
</dependency>

License

Chest Commands is free software/open source, and is distributed under the GPL 3.0 License. It contains third-party code, see the included THIRD-PARTY.txt file for the license information on third-party code.

chestcommands's People

Contributors

donotspampls avatar filoghost avatar hsgamer avatar johnfriedrich avatar sgdc3 avatar zomis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

chestcommands's Issues

Namespace Support

Description

Please add support for namspaces in mods, cause Im using Magma and I need some modded textures, but with out namespace it doesnt accept the Icon, propably not even the buy functionality
Id love to see this in yor great plugin,
Thanks!

I can't remove anymore the message "opening the {name}.yml menù

I cant remove the message "opening the {name}.yml menu" because ther isn't anymore in the config file the opening-menu string, this is soo bad and annoying, im using a server where if you open a menu you can see the name and all of you want, please FIX IT NOW!

Readd use-only-commands-without-args setting

Description

I guess this will be shot down, because you probably removed it due to architectural changes with handling commands, but I found it quite useful for a warp menu. When players just type /warp, open the menu, if they add a argument let the /warp plugin handle that. If it is indeed trivial to add back it would be much appreciated. Other than that thanks for the support, the conversion has worked perfectly fine!

Suggestion "close-actions" on Chest Commands

Hello, I think adding a close-actions list working like open-actions but on inventory close could be really nice (especially if you want to add/remove permissions on menu open/close)

problem with lapis lazuli

Hey, i'm trying to do chest shop , but i can't sell lapis lazuli

step : required-item : dye:4

and in game , when i'm clicking on sell , he call me "u need to have 1 Ink Sac to do that"

this way doesn't work with all "dye:"

An issue possible ?

CustomModelID

How can I display items with CustomModelDataID?
Eg: For Paper with CustomModelDataID 2

Helpme Selling ChestCommands 1.14.4 server bug

[ChestCommands] Task #256 for ChestCommands v3.2.0 generated an exception
java.lang.IllegalArgumentException: Cannot get ID of Modern Material
at org.apache.commons.lang.Validate.isTrue(Validate.java:136) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at org.bukkit.Material.getId(Material.java:3302) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at com.gmail.filoghost.chestcommands.internal.icon.ExtendedIcon.onClick(ExtendedIcon.java:185) ~[?:?]
at com.gmail.filoghost.chestcommands.task.ExecuteCommandsTask.run(ExecuteCommandsTask.java:35) ~[?:?]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1023) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:396) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:971) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:816) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]

Permissions issue

Hello to you,
First of all, I am French so my English is not very good.
I am contacting you, because I have a problem with your Plungin, I am on Spigot 1.16.1; and I don't have any Permision plugins (I use basic Minecraft permissions), and I would like everyone to access that menu I create, how do I do that?)

Sign ERROR

Here's the error: The sign doesn't work at all.
I also tried the basic "example".
Consol does not print anything.
Version: Spigot 1.15.2
Here is a video: https://www.youtube.com/watch?v=xtncQtlsgJw

Description

How to reproduce

Platform

  • Server version (output of /version):
  • Chest Commands version (check with /cc):

Additional context

Is there a way to put UTF-8?

What are you trying to do?

. - / -

What have you tried so far?

. - / -

Platform

  • Server version (output of /version): Spigot 1.8 R0.1-SNAPSHOT
  • Chest Commands version (check with /cc): 3.3.0

Additional context

I am Brazilian and I wanted to leave the texts in UTF-8 to accentuate them correctly, however, when I put them in UTF-8 format, it does not work. Is there any way I can do this? Otherwise, do you plan to add support for UTF-8?

Sorry if the typing is strange, translated by Google Translate

Enchanted Golden Apple

What are you trying to do?

< Help request >

What have you tried so far?

<i tried to add enchanted golden apple to materials but i can't it Says error>

Platform

  • Server version (output of /version): 1.8.8
  • Chest Commands version (check with /cc): 4.0.2

Additional context

<economy-take:
MATERIAL: enchanted golden apple
POSITION-X: 3
POSITION-Y: 1
NAME: '&dEnchanted Golden Apple'
LORE:
- '&fTrade &e1 Gold Ingot &fFor &d1 Enchanted Golden Apple'
REQUIRED-ITEMS:
- gold ingot>

Perms don't want to work

Description

When I try to open my Kits menu with a Totem of Undying, the plugin tells me that I'm missing the chestcommands.open.Kits.yml permission. This started happening after I integrated BungeeCord to my 1.16.1 server. I have tried all varieties of the chestcommands. permissions including chestcommands.*. It is part of the default permset.

How to reproduce

Right click on the Totem of Undying in your hotbar. There is an error saying that you don't have the correct permissions.

Platform

  • Server version (output of /version): This server is running CraftBukkit version git-Spigot-4d9262c-dc7c3c6 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
  • Chest Commands version (check with /cc): 3.3.1

Additional context

Cooldown?

Hey i have a great idea

I was trying to make something like a daily shop and i was thinking is there a way to set a cooldown

So i looked on the Filoghost.me site and i didnt see an option for it so maybe this is a good idea?!?

Dark-Lynn
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
-+(&€;3-8_::#'')! ☻(-+_;+_6)-€6
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

Stained Glass Pane

Hello, I wanted to know how to get stained glass pane on the menu. If it is possible to put the config line directly to me it's really great because I don't find it like I did before. Thanks in advance.

Can't make PlaceholderAPI working with item descriptions

Description

Using latest ChestCommand and PlaceholderAPI, I cannot use PAPI placeholders in items descriptions.

How to reproduce

Use latest ChestCommand and PlaceholderAPI versions, create a GUI and put the placeholder of PlayerPoints (for example). It's not parsing the placeholder at all. /papi parse %playerpoints_points% Nickname does parse it to 0 tho.

Platform

  • Server version (output of /version):
    PaperSpigot 1.8.8-R0.1-Snapshot
  • Chest Commands version (check with /cc):
    3.3.1

Additional context

image
image

Open a new Menu after Clicking on a menu Item

What are you trying to do?

Im trying to Open a new Menu after Clicking on a menu Item

What have you tried so far?

armor:
MATERIAL: grass
POSITION-X: 2
POSITION-Y: 1
NAME: '&l&8Armor'
LORE:
- 'Here you can buy Armor'
ACTIONS:
- 'console: cc open armor {player}'
also tried %player%

Platform

  • Server version (output of /version): Magma 44e91f6
  • Chest Commands version (check with /cc): 3.3.1

Additional context

Sign Error

The sign on the wall does not work.

Version: 1.15.2 (Spigot)

In Chestcommands 1.13 Version is that working.
And
Some items are not recognized by the plugin.

Permissions issue

<! -

⚠️ READ BELOW BEFORE SUBMITTING ⚠️

Before asking for help:

Don't paste long text files in the description, upload them as attachments or to Pastebin.

You MUST complete the template below, without modifying or deleting the existing text, otherwise the issue will be automatically closed.

->

What are you trying to do?

<! - Describe the goal you want to achieve ->
That all players have access to the menu I created, because currently it is only the Admins who have the permission (I press that I do not have plugins for Permissions and that I do not want them; I uses the basic Minecraft one)

What have you tried so far?

<! - If you have already tried something, please specify ->
I looked at the documentation, but I did nothing else.

Platform

<! - Complete the list below ->

  • Server version (released from / version): Spigot-1.16.1
  • Chest Commands version (check with / cc): 3.3.1

Additional context

<! - Screenshots, errors, configurations (if any) ->

[Suggestion] adding a log

Description

Adding a log local file log with errors and that might occur aswell as permission notifications in the log.

im asking for this becouse of one of my players are getting spammed with messages without any reason and stopped randomly without any reason or output to the general server log.

enchantments?

hey I have a question on my server i created a shop with chestcommands
and i want peaple to buy enchantment books but if i do

COMMAND: 'give: enchanted_book,1, enchant: Sharpness|1 DAMAGE_ALL|1'
it dont work it just gives an empty enchantment book

and i cant find the MATERIAL in the bukkit list {link}

Skull-Owner

Hi, I want to put the head of the guy who opens the menu (his skin) and the version of my plugin is: 3.1.4
and I put that in the config:
image

NBA-Data or SkullOwner problem. (Only my problem)

What are you trying to do?

  Hello im trying to figure out how to add a head from Minecraft-heads.com to my ChestCommand (GUI).

What have you tried so far?

I tried "NBA-Data" and "SkullOwner" like it is in the Wiki

Platform

-Server version : 1.16.1 Spingot
-ChestCommand version : 3.3.1

Additional context

I added a Screenshot from my last failed attempt.
Download (8)

"Player not found" trying to make a Protection Stones store

What are you trying to do?

I am trying to make a protection store following a tutorial, but due to the changes in the plugin it doesn't work anymore.
The operation is that with the action "console: ps give 20x20 (player)" of the item to the player since (player) should interpret it as the name of the player who executes the command. But what happens to me is that when using this it gives the error in the console: Player not found ((player)) (Referring to the fact that "(player)" does not interpret it as the name of the player, instead of that take it as giving protection to the player "(player)")

What have you tried so far?

I've only tried changing the (player) to% player% for the placeholder. But the plugin kept interpreting this as that is the player's name.

Platform

  • Server version (output of /version):
  • Chest Commands version (check with /cc):
    Server version: 1.14.4
    Chest Commands version: 3.3.0

Additional context

Sorry if it sounds weird but it's because the translator is not 100% accurate.

Skull Owner problem

Hello,
I have a problem with the display of heads, indeed I downloaded the latest version of the plugin and my problem is that when I put a SKULL-OWNER, if I put a player it works but the variable 'player' does not work.
A solution to that?

tete:
NAME: '&a&l{player}'
ID: player head
SKULL-OWNER: '{player}'
KEEP-OPEN: true
POSITION-X: 5
POSITION-Y: 1

Dependency Conflict: duplicate classes "com.google.gson.stream.JsonReader.nextInt" in different JARs, have different implementations

Hi, in ChestCommands/Plugin, duplicate classes with the same fully-qualified name com.google.gson.stream.JsonReader.nextInt are included in two different libraries, i.e., me.clip:placeholderapi:2.9.2 and com.google.code.gson:gson:2.2.4.

According to "first declaration wins" class loading strategy, only this class in com.google.code.gson:gson:2.2.4 can be loaded, and that in me.clip:placeholderapi:2.9.2 will be shadowed.

By further analyzing, your project expects to invoke method com.google.gson.stream.JsonReader.nextInt in me.clip:placeholderapi:2.9.2. As it has been shadowed, so that this method defined in com.google.code.gson:gson:2.2.4 are actually forced to be referenced via the following invocation path:

<com.gmail.filoghost.chestcommands.config.AsciiPlaceholders: placeholdersToSymbols(Ljava/lang/String;)Ljava/lang/String;> /root/sensor/unzip/ChestCommands-master/Plugin/target/classes
<com.google.gson.JsonStreamParser: next()Ljava/lang/Object;> /root/.m2/repository/me/clip/placeholderapi/2.9.2/placeholderapi-2.9.2.jar
<com.google.gson.JsonStreamParser: next()Lcom/google/gson/JsonElement;> /root/.m2/repository/me/clip/placeholderapi/2.9.2/placeholderapi-2.9.2.jar
<com.google.gson.internal.Streams: parse(Lcom/google/gson/stream/JsonReader;)Lcom/google/gson/JsonElement;> /root/.m2/repository/me/clip/placeholderapi/2.9.2/placeholderapi-2.9.2.jar
<com.google.gson.internal.bind.TypeAdapters$7: read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Object;> /root/.m2/repository/me/clip/placeholderapi/2.9.2/placeholderapi-2.9.2.jar
<com.google.gson.internal.bind.TypeAdapters$7: read(Lcom/google/gson/stream/JsonReader;)Ljava/lang/Number;> /root/.m2/repository/me/clip/placeholderapi/2.9.2/placeholderapi-2.9.2.jar
<com.google.gson.stream.JsonReader: nextInt()I>

Workaround solution:
An easy way to workaround the problem is reversing the declaration order of these two libraries (i.e., reverse the declaration order of httpclient and maven-resolver-transport-http) in pom file.
Then, according to "first declaration wins" class loading strategy, class com.google.gson.stream.JsonReader.nextInt in me.clip:placeholderapi:2.9.2 can be loaded (the version that ChestCommands/Plugin expects to reference by static analysis).
This fix will not affect other libraries or class, except the above duplicate class.

Dependency tree---

[INFO] com.gmail.filoghost.chestcommands:chestcommands-plugin:jar:3.3.0-SNAPSHOT
[INFO] +- org.spigotmc:spigot-api:jar:1.8.8-R0.1-SNAPSHOT:provided
[INFO] | +- commons-lang:commons-lang:jar:2.6:provided
[INFO] | +- com.googlecode.json-simple:json-simple:jar:1.1.1:provided
[INFO] | | - junit:junit:jar:4.10:provided
[INFO] | | - org.hamcrest:hamcrest-core:jar:1.1:provided
[INFO] | +- com.google.guava:guava:jar:17.0:provided
[INFO] | +- com.google.code.gson:gson:jar:2.2.4:provided
[INFO] | +- org.avaje:ebean:jar:2.8.1:provided
[INFO] | | - javax.persistence:persistence-api:jar:1.0:provided
[INFO] | +- org.yaml:snakeyaml:jar:1.15:provided
[INFO] | - net.md-5:bungeecord-chat:jar:1.8-SNAPSHOT:provided
[INFO] +- net.milkbowl.vault:VaultAPI:jar:1.6:provided
[INFO] | - org.bukkit:bukkit:jar:1.9-R0.1-SNAPSHOT:provided
[INFO] +- me.confuser:BarAPI:jar:3.5:provided
[INFO] +- me.clip:placeholderapi:jar:2.9.2:provided
[INFO] - org.bstats:bstats-bukkit-lite:jar:1.4:compile

Thank you very much.
Best,
Coco

Close after clic : shop menu

Hello, i want my shop menu to be still open when a player sell something on my menu, but after 1 clic the menu close it-self, how to disable this setting ? can we ? thanks. =)

"Player not found" trying to buy protection stones

I am trying to make a protection store following a tutorial, but due to the changes in the plugin it doesn't work anymore.
The operation is that with the action "console: ps give 20x20 (player)" of the item to the player since (player) should interpret it as the name of the player who executes the command. But what happens to me is that when using this it gives the error in the console: Player not found ((player)) (Referring to the fact that "(player)" does not interpret it as the name of the player, instead of that take it as giving protection to the player "(player)")

I've only tried changing the (player) to% player% for the placeholder. But the plugin kept interpreting this as that is the player's name.

  • Server version: 1.14.4
  • Chest Commands version: 3.3.0

Sorry if it sounds weird but it's because the translator is not 100% accurate.

Firework color?

Hey im the creator of the discord someone asked this question and didmt wanne go on github to ask it the Question :
I have a question, for example, if I want to change the color of a firework star, do I have to use NBT-DATA? because I was testing the options including that one and none gives me the result I am looking for. Or is it that I have to use a special map for fireworks stars?

( the menu config )

*heal:
NAME: '&d&l/heal'
LORE:
- '&f► &7Comando para curarte, ademas de'
- '&f  &7alimentarte'
ID: potion
NBT-DATA: {Potion: "minecraft:healing"}
POSITION-X: 8
POSITION-Y: 3*
 
POSITION-Y: 3*

(No errors in console)

I read at least an hour of potions NBT-DATA, I tried everything from numeric id to legacy id, and nothing works for me, I also tried putting POTION: "potion name"
 And I couldn't either, I tried DATA-VALUE and I didn't succeed either.

support for the PlayerPoints plugin

What are you trying to do?

why removed support for this plugin, please return, I have the entire system was spun on these two plugins

What have you tried so far?

Platform

  • Server version (output of /version):
  • Chest Commands version (check with /cc):

Additional context

Variables/Arguments

What are you trying to do?

So like you would have the command thay opens the gui and you can add an argument ti the end of that like / and be able to use that argument in one of the actions you get by clickinh on something in the gui
Like im uding bpermssions and i want it so you can do /grant and in the actions i could do - 'user ' because thats how you use bpermissions
It doesnt have to be a player im just saying is there a way i could add a variable to the command that opens the gui that can be used by the gui

What have you tried so far?

I havent tried anything because i dont know where to start

Platform

  • Server version (output of /version):
  • Chest Commands version (check with /cc):
    Server- Spigot1.8.8
    CC- 3.3.1

Additional context

Fill blanc spaces?

Hey on the discord i get the following
question almost every week

Q) is there a way to fill all the empty spaces
with BLACK_STAINED_GLASS_PANE s
Or do i need to enter it in every slot?

So my question is :
Is there a way that this can be added in
The plugin?
(That you can fill blanc spaces)

(The discord )

1.16 Hexcode support

Description

Please add support for 1.16 Hexcode colors. Currently limited to the traditional old 12 or so colors. Hexcode support would be awesome.

Multiple REQUIRED ITEM bug

please help

I'm trying to enter multiple required items:

REQUIRED-ITEM: 'iron_ingot, 3; emerald, 5; stick, 2'

But in console I get errors like:

The icon "melon" in the menu "eda.yml" has an invalid REQUIRED-ITEM: invalid amount "3;emerald"

It thinks that emeralds is the part of the ingots amount. And no matter what I type in I see the same kind of error. Everything's OK only when I enter 1 item but that not works for me. Maybe there's something wrong with the syntax? How do I make multiple required items? Last version 3.2.0
Minecraft 1.14.4

Running a command as OP not working

Setting the format COMMAND: 'op: somecommand' is resulting in that being run in the console instead of running the command as OP

[19:31:48 INFO]: > Treydun issued server command: /op: somecommand

Same thing happens with no space. COMMAND: 'op:somecommand'
[19:32:41 INFO]: > Treydun issued server command: /op:somecommand

Skull-Owner

What are you trying to do?

I want to put the head of the guy who opens the menu (his skin)

What have you tried so far?

image
i put that in my config

Platform

  • Server version (output of /version): 1.8.8
  • Chest Commands version (check with /cc): 3.1.4

Additional context

ID: head
DATA-VALUE: 3
SKULL-OWNER: '{player}'
KEEP-OPEN: true

multiple item in the GUI

Hello, i want to sell x32 diamonds in my shop so i entered
Diamond:
REQUIRED-ITEM: 'Diamond, 32'
COMMAND: 'give-money: 800'

NAME: '&6&lVendre : &e&lDiamant &a&lx32 &6&lpour &a&l800$'
ID: 264
POSITION-X: 3
POSITION-Y: 2

all good for this,

But i want the players to see 32 diamonds for the icon of the GUI how can i make that ? thanks =)

Can't put placeholders in NBT-DATA

If I do NBT-DATA: '{SkullOwner:{player}}' or NBT-DATA: '{SkullOwner:"{player}"}', it thinks the {player} part is literally a player called "{player}". but I want it to be a placeholder. any solutions?

A lot of bugs...

PRICE bug, POINTS bug, .... I'm glad to see the plugin finally support item NBT, but 3.2 contains too many bugs.

If that's not bug, at least give us a changelog.

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.