Skip to content

Commit

Permalink
Updates POIMarker(s) to make them more detailed
Browse files Browse the repository at this point in the history
Changed main package to com.justbru00
  • Loading branch information
JustBru00 committed May 15, 2023
1 parent 68ced21 commit 0142f95
Show file tree
Hide file tree
Showing 5 changed files with 897 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.frosthex</groupId>
<groupId>com.justbru00</groupId>
<artifactId>timingsystem.bluemap</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.frosthex.timingsystem.bluemap;
package com.justbru00.timingsystem.bluemap;

import java.util.Optional;
import java.util.logging.Logger;
Expand All @@ -8,7 +8,8 @@
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;

import com.frosthex.timingsystem.bluemap.utils.Messager;
import com.justbru00.timingsystem.bluemap.utils.Messager;
import com.justbru00.timingsystem.bluemap.bstats.BStats;

import de.bluecolored.bluemap.api.BlueMapAPI;
import de.bluecolored.bluemap.api.BlueMapMap;
Expand Down Expand Up @@ -41,6 +42,7 @@
public class TimingSystemBlueMapPlugin extends JavaPlugin {

private static TimingSystemBlueMapPlugin instance;
private static final int BSTATS_PLUGIN_ID = 18483;

public static ConsoleCommandSender clogger = Bukkit.getServer().getConsoleSender();
public static Logger log = Bukkit.getLogger();
Expand Down Expand Up @@ -71,6 +73,10 @@ public void onEnable() {
}
}

BStats metrics = new BStats(this, BSTATS_PLUGIN_ID);
String timingSystemVersion = timingSystem.getDescription().getVersion();
metrics.addCustomChart(new BStats.SimplePie("timingsystem_version", () -> timingSystemVersion));

BlueMapAPI.onEnable(api -> {
// When BlueMap is enabled, run this code. Also works for /bluemap reload.
MarkerSet markerSet = MarkerSet.builder().label("TimingSystem Track Locations").toggleable(true).build();
Expand All @@ -82,7 +88,8 @@ public void onEnable() {

POIMarker marker = POIMarker.builder()
.label(track.getCommandName())
.detail("Total Finishes: " + track.getTotalFinishes())
.detail(track.getCommandName() + "\nTotal Finishes: " + track.getTotalFinishes()
+ "\nTotal Attempts: " + track.getTotalAttempts())
.position(x, y, z)
.maxDistance(10000)
.build();
Expand Down
Loading

0 comments on commit 0142f95

Please sign in to comment.