Geek Freely: HOWTO: Notify user joined your Minecraft server (Nukkit or similar)

    using Notify My Android

    Featured Post

    The whole point in this post is to run your own VPN service, and allow you to connect remote devices to your home network.

    To start off yo…

    , but it is hard to coordinate when they will all get online – so I decided to look into my options for notifications. In the end I went with Notify My Android (NMA). The NMA website provides a complete script for sending notifications via the Raspbian shell. The script can be found at the following location, I used the shell script, but there are other options – this guide focuses on the shell script:

    First thing we are going to do is log into our Raspbian system and let’s make sure timezone is configured correctly:

    Now let’s download the notification script from NMA to your Raspberry Pi Minecraft server:

    We need to do a couple of things with this file, first we need to make a change so that our NMA API key is in the file, using the following command:

    Edit APIKey= to use your API Key, you can find your own API Key from the NMA site.

    Now we have to make the shell script executable:

    At this point we have a shell script that allows us to send notifications from Raspbian to NMA servers, and then to your Android. The next step is to create a short Perl file to monitor the Nukkit server.log (or any other log file for that matter). This script looks at the entire file, not just the tail, so if you run it against an existing server you are going to get a few notifications when first run. I called my file notify.pl:

    Enter the following into the notify.pl Perl script:

    Much like the NMA script we have to make our Perl script executable:

    That’s it! Now you are going to have to

    so edit crontab:

    Enter the following at the end of your file:

    The sleep is required to make sure the server has the log file available (didn’t work for me without the sleep, I can only assume as the file is deleted on startup):

    Reboot your server and you are good to go!

    6 comments:

    said…

    Thanks for sharing this informative article here about the Minecraft server. After reading your article I got very much information about the minecraft server and it resolved many of my doubts. If anyone looking for the , Visit bisecthosting

    said…

    Very nice post here thanks for it .I always like and such a super contents of these post.Excellent and very valuable blog. Buy discounted 64-bit or 32-bit version of Microsoft project professional 2016 depending on compatibility & software specifications. For the more details you can visit here

    said…

    Thanks for sharing such an amazing blog that explains the overall importance of why you need to hire

    for a wide range of information.

    said…

    If you are playing Minecraft you will love it. Click on:

    said…

    OptiFine 1.15.2 Mod for MC 1.15.1/1.14 >>>

    said…

    Minecraft premium mu arıyorsunuz? Tıklayın:

    Subscribe to:

    Labels

    Blog Archive

    Links

    Leave a Reply

    Your email address will not be published.

    Geek Freely: HOWTO: Notify user joined your Minecraft server (Nukkit or similar)

    using Notify My Android

    Featured Post

    The whole point in this post is to run your own VPN service, and allow you to connect remote devices to your home network.

    To start off yo…

    , but it is hard to coordinate when they will all get online – so I decided to look into my options for notifications. In the end I went with Notify My Android (NMA). The NMA website provides a complete script for sending notifications via the Raspbian shell. The script can be found at the following location, I used the shell script, but there are other options – this guide focuses on the shell script:

    First thing we are going to do is log into our Raspbian system and let’s make sure timezone is configured correctly:

    Now let’s download the notification script from NMA to your Raspberry Pi Minecraft server:

    We need to do a couple of things with this file, first we need to make a change so that our NMA API key is in the file, using the following command:

    Edit APIKey= to use your API Key, you can find your own API Key from the NMA site.

    Now we have to make the shell script executable:

    At this point we have a shell script that allows us to send notifications from Raspbian to NMA servers, and then to your Android. The next step is to create a short Perl file to monitor the Nukkit server.log (or any other log file for that matter). This script looks at the entire file, not just the tail, so if you run it against an existing server you are going to get a few notifications when first run. I called my file notify.pl:

    Enter the following into the notify.pl Perl script:

    Much like the NMA script we have to make our Perl script executable:

    That’s it! Now you are going to have to

    so edit crontab:

    Enter the following at the end of your file:

    The sleep is required to make sure the server has the log file available (didn’t work for me without the sleep, I can only assume as the file is deleted on startup):

    Reboot your server and you are good to go!

    6 comments:

    said…

    Thanks for sharing this informative article here about the Minecraft server. After reading your article I got very much information about the minecraft server and it resolved many of my doubts. If anyone looking for the , Visit bisecthosting

    said…

    Very nice post here thanks for it .I always like and such a super contents of these post.Excellent and very valuable blog. Buy discounted 64-bit or 32-bit version of Microsoft project professional 2016 depending on compatibility & software specifications. For the more details you can visit here

    said…

    Thanks for sharing such an amazing blog that explains the overall importance of why you need to hire

    for a wide range of information.

    said…

    If you are playing Minecraft you will love it. Click on:

    said…

    OptiFine 1.15.2 Mod for MC 1.15.1/1.14 >>>

    said…

    Minecraft premium mu arıyorsunuz? Tıklayın:

    Subscribe to:

    Labels

    Blog Archive

    Links

    Leave a Reply

    Your email address will not be published.