aboutsummaryrefslogtreecommitdiff
path: root/spark-bungeecord/src/main
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2019-08-03 22:04:20 +0100
committerLuck <git@lucko.me>2019-08-03 22:04:20 +0100
commit2a03b547c7714a130b2bc1407b12a8abd58a9069 (patch)
treec4306958d814964a58c472b959b94afda5ee3800 /spark-bungeecord/src/main
parent4308eda6fd4ce3d637ad29b50f53d870ec1facbc (diff)
downloadspark-2a03b547c7714a130b2bc1407b12a8abd58a9069.tar.gz
spark-2a03b547c7714a130b2bc1407b12a8abd58a9069.tar.bz2
spark-2a03b547c7714a130b2bc1407b12a8abd58a9069.zip
Some more reorganising
Diffstat (limited to 'spark-bungeecord/src/main')
-rw-r--r--spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java (renamed from spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java)26
-rw-r--r--spark-bungeecord/src/main/resources/bungee.yml2
2 files changed, 8 insertions, 20 deletions
diff --git a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java
index 630035b..0fc85b7 100644
--- a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java
+++ b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java
@@ -22,8 +22,6 @@ package me.lucko.spark.bungeecord;
import me.lucko.spark.common.SparkPlatform;
import me.lucko.spark.common.SparkPlugin;
-import me.lucko.spark.common.sampler.ThreadDumper;
-import me.lucko.spark.common.sampler.TickCounter;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.plugin.Command;
import net.md_5.bungee.api.plugin.Plugin;
@@ -32,7 +30,7 @@ import net.md_5.bungee.api.plugin.TabExecutor;
import java.nio.file.Path;
import java.util.stream.Stream;
-public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin {
+public class BungeeCordSparkPlugin extends Plugin implements SparkPlugin {
private SparkPlatform platform;
@@ -54,12 +52,12 @@ public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin {
}
@Override
- public Path getPluginFolder() {
+ public Path getPluginDirectory() {
return getDataFolder().toPath();
}
@Override
- public String getLabel() {
+ public String getCommandName() {
return "sparkb";
}
@@ -72,24 +70,14 @@ public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin {
}
@Override
- public void runAsync(Runnable r) {
- getProxy().getScheduler().runAsync(SparkBungeeCordPlugin.this, r);
- }
-
- @Override
- public ThreadDumper getDefaultThreadDumper() {
- return ThreadDumper.ALL;
- }
-
- @Override
- public TickCounter createTickCounter() {
- return null;
+ public void executeAsync(Runnable task) {
+ getProxy().getScheduler().runAsync(BungeeCordSparkPlugin.this, task);
}
private static final class SparkCommand extends Command implements TabExecutor {
- private final SparkBungeeCordPlugin plugin;
+ private final BungeeCordSparkPlugin plugin;
- SparkCommand(SparkBungeeCordPlugin plugin) {
+ SparkCommand(BungeeCordSparkPlugin plugin) {
super("sparkb", null, "sparkbungee");
this.plugin = plugin;
}
diff --git a/spark-bungeecord/src/main/resources/bungee.yml b/spark-bungeecord/src/main/resources/bungee.yml
index 4485e11..ccf512e 100644
--- a/spark-bungeecord/src/main/resources/bungee.yml
+++ b/spark-bungeecord/src/main/resources/bungee.yml
@@ -2,4 +2,4 @@ name: spark
version: ${pluginVersion}
description: ${pluginDescription}
author: Luck, sk89q
-main: me.lucko.spark.bungeecord.SparkBungeeCordPlugin
+main: me.lucko.spark.bungeecord.BungeeCordSparkPlugin