Minecraft Blogs / Tutorial

How to make a Minecraft plugin / Logging message / Tutorial series #3

  • 991 views, 1 today
  • 3
  • 1
  • 4
TeamJaval's Avatar TeamJaval
Level 59 : Grandmaster Programmer
113
undefined

Welcome back to the third tutorial blog in the 'How to make a plugin' series. In this tutorial you will be learning the following :

- Creating logging messages


I know this is a little short but want to keep the blogs short and snappy plus easy to follow off.

If you've already followed this tutorial then click the link below to view the next tutorial...

Next Tutorial - Click Here

undefined

After following the second tutorial, you should have a class looking like this :

Spoiler
undefined

If all is good then inside the curly braces ( {} ) add the following :

Spoiler
this.getLogger().info("Hello world");

Now, it should look like this :

Spoiler
undefined

Add that to the onDisable and thats all! Yep, thats all for the logger. So when you enable and disable it will say your message.

I hope this tutorial has been useful. I will be uploading more daily or even 2/3 per day.

To create these tutorials for you is quite a challenge, If
you'd like to see more tutorials and more sections covered then please
donate to our team as generously as you can. Every bit of it helps and
supports us even more.


undefined

Donators will be able to get private lessons from myself or anyone else from TeamJaval. Including their name posted on numerous blogs as a big thank you.


undefined

undefined
Tags

Create an account or sign in to comment.

fase
03/30/2014 12:40 pm
Level 11 : Journeyman Gent
fase's Avatar
You could have put something like getLogger().info("Hello World!");
1
TeamJaval
03/30/2014 12:42 pm
Level 59 : Grandmaster Programmer
TeamJaval's Avatar
Thanks for the suggestion I'll change it now :)
1
fase
03/30/2014 12:48 pm
Level 11 : Journeyman Gent
fase's Avatar
Wow. That was fast! :P
1
TeamJaval
03/30/2014 12:55 pm
Level 59 : Grandmaster Programmer
TeamJaval's Avatar
Haha
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome