Minecraft / Mods

[1.6.x][Bukkit]Network Playtime

  • 7
  • 2
  • comment12
  • playlist_add
  • share
  • more_horiz
avatar PeterKramer
Level 55 : Grandmaster Meme
201

About



This plugin was originally developed as a private plugin, but since the network failed, I might as well share it

Essentially, what it does is it measures the time players spend online per server and stores it in a database. The created data can then be viewed using web interfaces such as the one coming with the download:

VQpghwpng

There are no in-game commands yet, but if the plugin gets a positive response I will be adding more features soon.

Setup



The plugin comes with a basic web-interface and and .html file with example code you can simply copy into a text container on your site that allows usage of HTML.
  1. Unzip the Downloaded file.
  2. Open index.phpanddetail.php
    1. Insert your SQL Connection information into the empty Strings at the top.

  3. Upload index.php, detail.php and example.html to a webserver that supports PHP.
    1. Note: Enjin does not allow usage of PHP, you will have to host the three files elsewhere to use them.

  4. Copy the NetworkPlaytime.jar to your servers plugin folder and reload/restart. This will create some errors, no need to worry.
  5. In your plugin folder you will now find a subfolder called "NetworkPlaytime". Open it and edit the config.yml using the same connection details you entered in the .php files earlier.
  6. Select the name this server should be shown as. DO NOT USE SPACES. Instead, use CamelCase words like this: SurvivalServer. The web interface will automatically display a white-space in between words.
  7. Reload/Restart your server again. There should be no errors. The plugin will save the time played every five minutes. Wait that long for first results:)

Configuration File



table_name:Name of the SQL table.

column_name:Name of the server, using CamelCase

sql_port: 3306Port for SQL Server, default is 3306

sql_password:Password for SQL user

sql_username:SQL User

sql_address:SQL Address

sql_database:SQL Database

Features to be added

  • In-game commands:
    • See how long a player has been playing since logging on
    • Breakdown of time spent on each server.
    • Reset time
    • View Top players

  • Disable AFK time.
Progress80% complete
Game VersionMinecraft 1.6.2
Tags

1 Update Logs

Update #1 : 09/23/2013 9:43:50 amSep 23rd, 2013

Informational changes, mostly on the bukkit page.

Comments : 12

star Login or register to post a comment.

Show Comments

1 - 12 of 12

  • iMinecrafter
  • Level 65
  • High Grandmaster Miner
  • September 21, 2013, 2:28 pm
I would love to implement this on my servers. Sadly, the servers are failing (after two successful years).

Great job, nonetheless.
  • PeterKramer
  • Level 55
  • Grandmaster Meme
  • September 22, 2013, 1:21 am
Always sad when servers come to an end, but thanks :)
  • CalPal_
  • Level 36
  • Artisan Cake
  • September 21, 2013, 2:04 pm
Nice job Peter :P Nice to see you around..
  • PeterKramer
  • Level 55
  • Grandmaster Meme
  • September 21, 2013, 2:22 pm
Thanks and HAI! Haven't talked to you in ages :P
  • CalPal_
  • Level 36
  • Artisan Cake
  • September 21, 2013, 2:43 pm
Well, yah know, you removed me on Skype :P
  • PeterKramer
  • Level 55
  • Grandmaster Meme
  • September 22, 2013, 1:20 am
What? No. I thought I saw your name pop up as online like, 2 days ago :O
  • ObbyCow77
  • Level 34
  • Artisan Lava Rider
  • September 20, 2013, 1:47 pm
Nice! :3
  • KierdoBx
  • Level 1
  • New Network
  • September 20, 2013, 6:01 am
Was this for Ark? :(
  • PeterKramer
  • Level 55
  • Grandmaster Meme
  • September 20, 2013, 10:13 am
Yea, it was basically done months ago but was never used
  • KierdoBx
  • Level 1
  • New Network
  • September 20, 2013, 11:04 am
:(
  • K0Gs
  • Level 40
  • Master Unicorn
  • September 20, 2013, 5:52 am
Great Idea, will be installing this on my server today.

maybe tie into a ranking system, longer you play the higher your rank.

Or tie into a region plugin like GreifPrevetion, expand players plot size based on time online.

Thanks :)
  • PeterKramer
  • Level 55
  • Grandmaster Meme
  • September 20, 2013, 10:14 am
I'm sure such plugins can be built off of this one, but I don't plan on implementing something like that. :P

1 - 12 of 12

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome