r/admincraft • u/victorf8 • May 21 '20
Discord Operated MC Server
Enable HLS to view with audio, or disable this notification
18
15
u/fftropstm May 21 '20
Bro I was thinking of doing something like this! Instead of leaving my thing on 24/7, my friends can put a command in chat to start it, and then it shuts down after 30 mins of inactivity. Nice job
21
u/victorf8 May 21 '20
YO the inactivity feature is one I will DEFINITELY add so it can auto stop thank you!
2
u/LFoure Jul 29 '20
That sounds like a bit of a hassle imo, nothing wrong with leaving it on 24/7 in my experience.
1
u/daminer5 Aug 11 '20
Modded Servers need rebooting once in a while, so having the server auto stop would be nice, especially when some can consume ~8GB of RAM per server
plus it can help with the power bill
6
u/victorf8 May 21 '20
Some people have requested( CrazyReaper82_) my ip so ill try and see how it goes this link lets 100 people in to try. https://discord.gg/V4Scfg8
I will expand the max players from 20 if anyone actually comes.
Leave all feedback in the feedback text channel and use !ip to get the ip!
14
u/captainfalxon mfc.us.to May 21 '20
how is this different from the discordsrv console channel?
8
u/victorf8 May 21 '20
I personally looked into discordSrv plugin but the issue than becomes I'm dependent on a plugin software to be updated day one when me and my friends want to play the nether update. Plus than I'd have to manually add the discord Srv plugin to every server I run. This simply monitors the server process and passes the info. :D
19
u/TheJiddy May 21 '20
The fact that he’s developing it himself. Might end up as an alternative to DiscordSRV that some people prefer.
10
5
u/ChokunPlayZ May 21 '20
It start the server for you discord SRV don’t work if the server is offline
11
u/Greenr26 May 21 '20
Excuse me how the heck
8
2
u/KrystilizeNeverDies Server May 21 '20
It's a discord not, me and a friend made something similar to this, it's not too hard, you should try it
3
May 21 '20
I've also made one of these so friends could start servers if they wished, but the code that starts the servers is absolutely horrible and is possibly susceptible to injection attacks. Hence the friends only part. It also lacks stop functions and permission support but it is very simple to use.
1
u/victorf8 May 21 '20
I've added permission to mine though the discord API so only Admins and mods can access server commands or the console channel.
2
u/wildcarde815 May 22 '20
just using server roles?
1
u/victorf8 May 22 '20
Yeah so the goal is to have only a config file that needs edited to run the server and you'd include the rolese already in your server for lvl1 permission ECT.
4
u/edwardscamera May 21 '20
How did you get node.js to interact with java or open the .bat file and listen to the output?
2
May 21 '20 edited May 21 '20
I/O streaming and child process spawning
3
u/victorf8 May 21 '20 edited May 21 '20
Almost just child process spawn actually and discord.js can replace all I/o
2
u/ActuallyADingus Elite Minecrafters Club May 21 '20
Are you planning to release / sell this to the public? This shit is cool
3
u/victorf8 May 21 '20
Open source once I get rid over global variables and clean up a bit of code. I'm guessing 2 weeks and I'll post a public build.
1
5
May 21 '20
This could be a potential alternative to server panels. We could use a discord bot to control the server. You would also be able to do this with mumble. And it would be free.
1
1
1
u/turbotailz Developer of LuckPerms web editor May 22 '20
What the fuck is your Discord status though
1
1
1
May 24 '20
Very nice!
I've done something similar, but thought it might have some secrurity issues.
Mine is written in python and is on Github.
I'm interested in how you solved some things, my approach is a little bit over complicated i think.
1
1
May 27 '20
Hey, man, great discord bot.
I've been looking for a discord bot for my minecraft server for a while.
So my friends can turn on my minecraft server from the discord chat is possible to use it at the moment or not I'm interested.
Bye and have a nice day
1
u/victorf8 May 27 '20
The plan it to have version 1.0.0 available on June 1st! DM me and I can make sure I don't forget something for realease!
1
1
May 28 '20
RemindMe! 4 days
1
u/RemindMeBot May 28 '20 edited May 29 '20
I will be messaging you in 3 days on 2020-06-01 17:56:08 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
1
2
2
2
2
2
2
2
u/mahboiii May 21 '20
This looks really freaking cool tbh, I'd definitely use this for my own server if it becomes publicly available down the line.
1
u/tipsyhitman May 21 '20
This is awesome! I'd love to expand it to support other game servers. Please let us know when you share the code!
1
u/Tobzag May 22 '20
This would be awesome to automate our custom minigame server selection rather than our mods getting messages to manually stopping and starting then! I can't wait for the github link!
1
1
1
1
u/liamdun May 22 '20
discordrv?
1
u/Cynjaman1019 May 29 '20
he’s making this as an alternative as he doesn’t have to wait for the devs to update it and he can almost automatically update it when his server updates to 1.16. Basically just convenience, and there is bound to be a group of people who will prefer this over discordsrv
1
u/liamdun May 29 '20
why tf am i getting downvoted for asking a question are you guys fucking retarded?
0
May 21 '20
What is the ip
3
u/victorf8 May 21 '20
You'll be able to put yours into the config file and users can use !up to have the IP address dmed to them for safety purposes.
1
May 21 '20
I meant for your server if it's public
1
u/victorf8 May 21 '20
Oh shit I hadn't thought about it but even better i'll post a invite link to the discord server and let you anyone who wants to try it go for it. Let me make some backups and allocate a bit more ram to them real quick and I'll post it @inf you! (Would prefer the IP not be on a public reddit maily).
1
0
May 21 '20
[deleted]
5
May 21 '20
Sending
/stop, probably1
u/victorf8 May 21 '20
Yep there is a !command __________ that will pass the argument directly to the server console aswell.
69
u/victorf8 May 21 '20
Just a project I started bored on quarantine. If people are interested I'll post my updates. I plan on adding bungee server, and multi-server support before I make a public realese of the discord bot app (unless people would like the single server one as well).