HomeJavaModsNanoTime
NanoTime
NanoTime
by Nanoripper

NanoTime is an advanced BungeeCord plugin to keep track of players' ontime data with useful commands and both OnlineMode and OfflineMode support.

=============================
Features
=============================​
=============================
Commands & Permissions
=============================​
Note that these are not Bukkit permissions and should be set via BungeeCord config.yml file.

=============================
Screenshots
=============================
from version 1.3
[​IMG]
from version 1.3
[​IMG]

=============================
Config
=============================
Code (Text):
DataSource:
  mySQLHost: 'localhost'
  mySQLPort: '3306'
  mySQLDatabase: 'database'
  mySQLUsername: 'user'
  mySQLPassword: '12345'
OnlineMode: false
DebugMode: false
updateInterval: 2000 #This is only for /nanotime top command and does NOT affect player nanotime data. They are always saved.
HourDisplay: false
ToplistSize: 15
Blacklist-Servers:
  - Lobby
Messages:
  STR_PREFIX: '[NanoTime]'
  STR_BLACKLISTED: 'This server is blacklisted. You cannot use commands.'
  STR_YOUR_NANOTIME: 'Your NanoTime is %time%.'
  STR_TOP: 'Top 15 NanoTime: '
  STR_NO_PERMISSION: 'You do not have enough permission to do that!'
  STR_USAGE: 'Usage: '
  STR_PLAYER_NOT_FOUND: 'Player not found!'
  STR_INCORRECT_VALUE: 'Incorrect value!'
  STR_NANOTIME_UPDATED: 'Player NanoTime Updated!'
  STR_DATA_GONE: 'All NanoTime data is now gone!'
  STR_ENTRY_REMOVED: 'Player NanoTime entry removed!'
  STR_PLAYER_NANOTIME: 'NanoTime of %name% is %time%.'
  STR_DAYS: 'days'
  STR_HOURS: 'hours'
  STR_MINS: 'minutes'

=============================
Ontime Conversion
=============================

If you want to convert your ontime plugin( http://dev.bukkit.org/bukkit-plugins/ontime/ ) data into NanoTime data, you can execute these SQL queries in your database.

Warning: Do NOT forget to backup your old ontime data (ontime-players table) before beginning.
Warning 2: If you have run the NanoTime plugin before, there will be a "nanotime" table in your database. Delete that table before beginning because your "ontime-players" table will be renamed to "nanotime".
Spoiler: SQL Queries
Code (Text):
RENAME TABLE ontime-players TO nanotime;
ALTER TABLE nanotime
  DROP COLUMN id,
  DROP COLUMN logintime,
  DROP COLUMN todaytime,
  DROP COLUMN weektime,
  DROP COLUMN monthtime,
  DROP COLUMN referredby,
  DROP COLUMN votes,
  DROP COLUMN lastVote,
  DROP COLUMN referrals,
  DROP COLUMN firstlogin,
  DROP COLUMN afkToday,
  DROP COLUMN afkWeek,
  DROP COLUMN afkMonth,
  DROP COLUMN permissions,
  DROP COLUMN voteToday,
  DROP COLUMN voteWeek,
  DROP COLUMN voteMonth,
  DROP COLUMN hostName,
  DROP COLUMN daysOn,
  DROP COLUMN world;
ALTER TABLE nanotime CHANGE playerName Player VARCHAR(20) NOT NULL;
ALTER TABLE nanotime CHANGE uuid UUID VARCHAR(36);
UPDATE nanotime SET playtime=playtime/60000;
ALTER TABLE nanotime CHANGE playtime time INT;
After you execute these queries NanoTime will be able to use your data as normal.

=============================
For any issues about the plugin, you can contact me. Don't forget to give positive rating if you liked the plugin :)

Buy me a pizza :p

[​IMG]

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

NanoTime is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 1,097 times (via Spigot). Download it and open it directly in the game.

Explore more