Giter VIP home page Giter VIP logo

chestrefill's Introduction

๐Ÿ‘‹ Hi, Iโ€™m @Aquerr

โ˜• I'm a Java Developer who likes to experiment with code.

Currently learning TypeScript and Angular.

๐Ÿ’ป Actively developing plugins for Minecraft and Discord Bots.

๐Ÿ“ซ You can reach me at Github or at my Discord Server

chestrefill's People

Contributors

aquerr avatar mateo9x avatar shimozuke avatar vvozny avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chestrefill's Issues

Feature request

Possibility to configure messages to each refillable container when the refill occurs (individually) and when someone opens for the first time after refill.

Error occured while executing command: null

Environment

  • Sponge Version: <7.1.6

  • Plugin Version: 1.4.0

What happens?

When I type /cr list I get a java.lang.NullPointerException.

I am using this plugin on a 1.12.2 hunger games-like server, and currently have 147 refillable chests (yes, it took me a couple of hours :s). The error occured when I created the 120th refillable chest, maybe it's some sort of index out of bouds issue? Is the memory for storing these chests dynamically allocated? Just throwing out thoughts...

Expected result

A list of all the refillable containers in the chat.

More information

Error log from the terminal:
(pastebin, easier to read)
[19:56:20] [Server thread/INFO] [minecraft/DedicatedServer]: Error occurred while executing command: null [19:56:20] [Server thread/ERROR] [Sponge]: Error occurred while executing command 'cr l' for source DedicatedServer: null java.lang.NullPointerException: null at io.github.aquerr.chestrefill.commands.ListCommand.execute(ListCommand.java:64) ~[ListCommand.class:?] at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:255) ~[ChildCommandElementExecutor.class:1.12.2-2825-7.1.6] at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:388) ~[CommandSpec.class:1.12.2-2825-7.1.6] at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:340) ~[SimpleDispatcher.class:1.12.2-2825-7.1.6] at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:337) [SpongeCommandManager.class:1.12.2-2825-7.1.6] at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1156) [dh.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71333_ah(DedicatedServer.java:433) [nz.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:398) [nz.class:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_221]
I should maybe point out that my containers.json file has about 50.000 lines...
(Got a big kit assigned to 147 chests :s)

Is it a memory problem? Can it be fixed?

Suggestion: my kits.json has 500 lines (it's just 1 kit). Maybe don't copy every item from the kit to the chest items-attribute in container.json, this results in 500 extra line per chest registry in containers.json, maybe this leads to memory corruption while loading it when playing live? (50.000 lines!) Maybe try creating a pointer to the kit (in "items") in containers.json for every chest instead of copying all the items from the kit.

/cr list is the only command that doesn't work, everything else works fine.

I love it but.......

When you restart your server all chest's reset so every time i reset server i must again type "/cr c" and yeah. Please fix that!!

Tps issues

Environment

  • Sponge Version: spongeforge-1.12.2-2768-7.1.6-RC3616

  • Plugin Version: ChestRefill-1.12.2-1.5.0-pre

What happens?

My timings report shows that chestrefill cause lag spikes. I have 20 Chests with auto refill disabled ( "time": 0 ) and the options "replace-existing-items", "hidden-if-no-items" set to true. Hiding block = minecraft:packed_ice

Expected result

No tps issues

More information

Timings: https://timings.aikar.co/?id=459e2232734e43d2ae557d7a903ae1ee

Force Refill Chests? [Feature Request]

would it be possible to add a command or something to force reset chests that dont have anything in them? I see this plugin very useful for creating something like a hunger games kinda thing so would def need a way to regenerate the stuff after 'a game' was to end.

Crash on startup with error [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.loading.moddiscovery.InvalidModFileException: Missing ModLoader in file (ChestRefill-2.0.1-API-8.2.0.jar)

Environment

  • Sponge Version: 8.2.0

  • Plugin Version:

What happens?

Server doesn't start with error [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.loading.moddiscovery.InvalidModFileException: Missing ModLoader in file (ChestRefill-2.0.1-API-8.2.0.jar)

Expected result

Working server

More information

https://pastebin.com/iVvkEw11 full log

Doesn't work

... with enchanted items.

forge-1.12.2-14.23.2.2611-universal.jar
spongeforge-1.12.2-2611-7.1.0-BETA-2990.jar
ChestRefill-1.12.2-1.2.1.jar

In the console error. At this point, I cannot provide a log.

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.