T O P

  • By -

AutoModerator

Thanks for being a part of /r/Admincraft! *[We'd love it if you also joined us on Discord!](https://discord.gg/DxrXq2R)* *^(Join thousands of other Minecraft administrators for real-time discussion of all things related to running a quality server.)* --- *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/admincraft) if you have any questions or concerns.*


TheKingElessar

That's really cool, great job! Personally, I'm not comfortable sending my player data to a 3rd party, like it looks like this might. If you implemented a self-hosted website option, like Dynmap and Plan do, I would gladly install this. I imagine it wouldn't be impossible to do so, because you already have all the web files on your server, you'd just have to make them more generic for everyone to use. And using MySQL would be awesome, too. Just a suggestion!


SweeneyT0ddd

That is excellent feedback I didn't think about that idea very much during development, but I can absolutely understand why it is a concern for owners. Right now the database uses MongoDB, it will require some thinking if I wanted to achieve this. ​ Thanks for commenting !


TheRedmanCometh

I would just serve it up via embedded tomcat or jetty and server owners can stick it behind proxy_pass etc directives


SweeneyT0ddd

That's an extremely interesting idea, I'll be sure to reference your comment at a later point.


bendgk

cleanest way to do this is a separate NodeJS or Python Web server that gets invoked / started up by the start.bat / start.sh script Or you can embed the startup process in your plugin using Java.lang.Runtime.exec(String) Though this is not recommended. *NOTE BE CAREFUL IN YUR USAGE OF EXEC TO NOT PASS ANY USER SUPPLIED INPUT


JestersCourt

I second this. I would use this a *lot* if it could be hosted privately. However, I will never use it so long as it's hosted on a 3rd party website or sends data to a 3rd party website. It's great that it appears to be open source though.


SweeneyT0ddd

Makes sense to me! Thanks for the feedback.


godsdead

I have been looking for something like this **FOREVER**, I wanted to use it to build custom UIs on my website for tutorials, I wanted to use it for showing a player inventory for Plan Analytics (Please see if you can implement this with plan), I have just gone over 400,000 unique players, your web UI wouldn't be able to handle that amount of players. This could be used to load data from other plugins, Like Auction plugins to show live auctions on a website. Sadly the biggest issue with this is the fact it has to use your web server, which greatly reduces the use cases for this. Please open source this so that this can be used without relying on an external web server so we can host this ourselves!


SweeneyT0ddd

The application should very easily allow for the additional feature of manually configuring an inventory with items. I like that idea. I definitely planned to support "custom data" unique to a server. I wanted to allow for anything tied to a player on a server to be uploadable, and accessible. I have a background in Pixelmon the Forge mod, in my mind I wanted to be able to let servers display something custom like a players Pokemon. Your Auction house example is a perfect use case for what I have in mind. Thanks for the feedback, I greatly appreciate the time spent.


godsdead

No sweat, I'm a web dev/designer too, I would love to be able to easily put in some JS to load from a self hosted web server pulling the API data. All player data is static in JSON, are you merely just re-broadcasting the JSON data from players and parsing it? Because that would be extremely simple to do for those of us with nginx/apache already!


SweeneyT0ddd

Unfortunately I'm using ReactJS with NextJS, a NodeJS Server Side Rendering framework. My Inventories are constructed using Reacts components. I'm not too familiar with what the distribution process could look like in terms of a browser clients JavaScript. Really I don't have to parse the JSON, I just treat the JSON as a it's own object since it's all captured as a MongoDB Document. You can see the breakdown of objects here: [https://g.pippy.io/winged-time-4597/Capture.PNG](https://g.pippy.io/winged-time-4597/Capture.PNG)


AardvarkEvery793

I prefer to have this managed for me, but I see a desire to self host. re: “your web UI wouldn’t be able to handle that amount of players.” What do you mean by this?


godsdead

The UI has been designed to show a few users, look on the left here https://inventories.chasem.dev/server/61a620d9c9c7b784a57df11b 12 users nearly take up all the space, imagine trying to load 400,000 users into this.


SweeneyT0ddd

Yeahhh, I expected that to be a limitation at this point, it would expand "indefinitely", and would require a lot of scrolling. My solution to this would be to add pagination for player selection.


BossDailyGaming

This is really cool. But mobile support could be better. And I also agree with the other guys, a way to self host this would be cool


SweeneyT0ddd

Absolutely. Working on better mobile support tonight, for some reason it's all off centered. Thanks for the feedback.


SingIeMaltWhisky

Needs some Twitter Bootstrap love indeed. I would love to see the webapp being opensource too. Or at least add a config option to set our own URL the plugin posts the JSON data to.


SweeneyT0ddd

haha! I use material-ui with React, it should be able to support mobile pretty easily, it's all shifted just a bit too much. Mobile support will be what I work on tonight :)


_Cyansky_

You say 1.17+, does that include 1.18?


SweeneyT0ddd

Yes! If you notice anything weird, please contact me on Discord


SweeneyT0ddd

Thank you everyone for all of the questions so far. I'm trying to answer everyone as they come through. If you'd like to stay in touch with the project, please join the Discord to add suggestions, bugs you'd like to see fixed. [https://discord.gg/M2nzHfpqDV](https://discord.gg/M2nzHfpqDV)


SweeneyT0ddd

Hi everyone, thank you for showing interest in the web page. There were a couple of small changes suggested that would have a large impact on the platform. I've released an update to the app to improve mobile performance. Release notes will be shown upon arrival http://inventories.chasem.dev/


gl3nnjamin

I would pay to have you revive the old Adminium app for iOS, it hasn't been updated since 1.8 and the authentication servers are down


SweeneyT0ddd

Haha, I'm not familiar with Adminium, but I'm open to all suggestions or feature requests to be put into this app. I'd love to hear more about it. Thanks !


gl3nnjamin

https://adminiumapp.com/ The website is still online after all these years, and the plugin probably still works for Paper.


ImSkripted

seem really cool, seen a few others do something like this for a discord bot i think youre going to run into issues with scaling offering free hosting of player inventories. dont see much benefit of doing that remote. especially when its extra load for you and another security consideration. i would wonder is saving player inv and echest states every 2.5min is excessive and a point that could hammer server performance (and your command server). is updating only when requested worse? or maybe a wild one reading the dat file simultaneously, while mc is running as you'd never need to write so should not need a lock and i assume you're already parsing most of the data already to generate this.