mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Optional stats tracking
I still don't like stats tracking.
This commit is contained in:
parent
717c2d2869
commit
a652fcd026
@ -43,7 +43,7 @@ public class LoadProperties {
|
|||||||
diamondArmor, woodenTools, stoneTools, ironTools, goldTools,
|
diamondArmor, woodenTools, stoneTools, ironTools, goldTools,
|
||||||
diamondTools, enderPearl, blazeRod, records, glowstoneDust,
|
diamondTools, enderPearl, blazeRod, records, glowstoneDust,
|
||||||
fishingDiamonds, aDisplayNames, pDisplayNames, enableSmoothToMossy,
|
fishingDiamonds, aDisplayNames, pDisplayNames, enableSmoothToMossy,
|
||||||
enableDirtToGrass;
|
enableDirtToGrass, statsTracking;
|
||||||
|
|
||||||
public static String MySQLtablePrefix, MySQLuserName,
|
public static String MySQLtablePrefix, MySQLuserName,
|
||||||
MySQLserverName, MySQLdbName, MySQLdbPass, nWood, nStone,
|
MySQLserverName, MySQLdbName, MySQLdbPass, nWood, nStone,
|
||||||
@ -298,6 +298,7 @@ public class LoadProperties {
|
|||||||
enableMySpawn = readBoolean("General.MySpawn.Enabled", true);
|
enableMySpawn = readBoolean("General.MySpawn.Enabled", true);
|
||||||
enableRegen = readBoolean("General.HP_Regeneration.Enabled", true);
|
enableRegen = readBoolean("General.HP_Regeneration.Enabled", true);
|
||||||
saveInterval = readInteger("General.Save_Interval", 10);
|
saveInterval = readInteger("General.Save_Interval", 10);
|
||||||
|
statsTracking = readBoolean("General.Stats_Tracking", true);
|
||||||
|
|
||||||
enableCobbleToMossy = readBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true);
|
enableCobbleToMossy = readBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true);
|
||||||
enableSmoothToMossy = readBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true);
|
enableSmoothToMossy = readBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true);
|
||||||
|
@ -170,20 +170,22 @@ public class mcMMO extends JavaPlugin
|
|||||||
FM.addToPreLoginCache(this, SpoutStuff.getFiles());
|
FM.addToPreLoginCache(this, SpoutStuff.getFiles());
|
||||||
}
|
}
|
||||||
|
|
||||||
//Plugin Metrics running in a new thread
|
if(LoadProperties.statsTracking) {
|
||||||
new Thread(new Runnable() {
|
//Plugin Metrics running in a new thread
|
||||||
public void run() {
|
new Thread(new Runnable() {
|
||||||
try {
|
public void run() {
|
||||||
// create a new metrics object
|
try {
|
||||||
Metrics metrics = new Metrics();
|
// create a new metrics object
|
||||||
|
Metrics metrics = new Metrics();
|
||||||
// 'this' in this context is the Plugin object
|
|
||||||
metrics.beginMeasuringPlugin(thisPlugin);
|
// 'this' in this context is the Plugin object
|
||||||
} catch (IOException e) {
|
metrics.beginMeasuringPlugin(thisPlugin);
|
||||||
// Failed to submit the stats :-(
|
} catch (IOException e) {
|
||||||
}
|
// Failed to submit the stats :-(
|
||||||
}
|
}
|
||||||
}).start();
|
}
|
||||||
|
}).start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public PlayerProfile getPlayerProfile(Player player)
|
public PlayerProfile getPlayerProfile(Player player)
|
||||||
|
@ -259,6 +259,8 @@ General:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
#Amount of time (in minutes) to wait between saves of player information
|
#Amount of time (in minutes) to wait between saves of player information
|
||||||
Save_Interval: 10
|
Save_Interval: 10
|
||||||
|
#Allow mcMMO to report on basic anonymous useage
|
||||||
|
Stats_Tracking: true
|
||||||
Excavation:
|
Excavation:
|
||||||
Drops:
|
Drops:
|
||||||
Cake: true
|
Cake: true
|
||||||
|
Loading…
Reference in New Issue
Block a user