From 92b3ddb0acd58f08ccfa23b0cae107708039078e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 20 Feb 2016 06:13:41 +1100 Subject: [PATCH] Finish debugpaste for sponge --- src/main/java/com/plotsquared/sponge/SpongeMain.java | 8 ++++++-- .../java/com/plotsquared/sponge/util/KillRoadMobs.java | 1 + .../sponge/uuid/SpongeLowerOfflineUUIDWrapper.java | 5 +++++ .../plotsquared/sponge/uuid/SpongeOnlineUUIDWrapper.java | 5 +++++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/plotsquared/sponge/SpongeMain.java b/src/main/java/com/plotsquared/sponge/SpongeMain.java index cb97539a2..7485bdc18 100644 --- a/src/main/java/com/plotsquared/sponge/SpongeMain.java +++ b/src/main/java/com/plotsquared/sponge/SpongeMain.java @@ -1,6 +1,7 @@ package com.plotsquared.sponge; import java.io.File; +import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Optional; @@ -447,7 +448,10 @@ public class SpongeMain implements IPlotMain, PluginContainer { @Override public List getPluginIds() { - // TODO Auto-generated method stub - return null; + ArrayList names = new ArrayList<>(); + for (PluginContainer plugin : game.getPluginManager().getPlugins()) { + names.add(plugin.getName() + ";" + plugin.getVersion() + ":" + true); + } + return names; } } diff --git a/src/main/java/com/plotsquared/sponge/util/KillRoadMobs.java b/src/main/java/com/plotsquared/sponge/util/KillRoadMobs.java index 3a60e99b4..75f4c738a 100644 --- a/src/main/java/com/plotsquared/sponge/util/KillRoadMobs.java +++ b/src/main/java/com/plotsquared/sponge/util/KillRoadMobs.java @@ -3,5 +3,6 @@ package com.plotsquared.sponge.util; public class KillRoadMobs { public void run() { // TODO kill road mobs + throw new UnsupportedOperationException("NOT IMPLEMENTED YET"); } } diff --git a/src/main/java/com/plotsquared/sponge/uuid/SpongeLowerOfflineUUIDWrapper.java b/src/main/java/com/plotsquared/sponge/uuid/SpongeLowerOfflineUUIDWrapper.java index 70ecee300..39694a7cb 100644 --- a/src/main/java/com/plotsquared/sponge/uuid/SpongeLowerOfflineUUIDWrapper.java +++ b/src/main/java/com/plotsquared/sponge/uuid/SpongeLowerOfflineUUIDWrapper.java @@ -90,4 +90,9 @@ public class SpongeLowerOfflineUUIDWrapper extends UUIDWrapper { // TODO FIXME throw new UnsupportedOperationException("NOT IMPLEMENTED YET"); } + + @Override + public OfflinePlotPlayer getOfflinePlayer(String name) { + throw new UnsupportedOperationException("NOT IMPLEMENTED YET"); + } } diff --git a/src/main/java/com/plotsquared/sponge/uuid/SpongeOnlineUUIDWrapper.java b/src/main/java/com/plotsquared/sponge/uuid/SpongeOnlineUUIDWrapper.java index c2c0d30ee..dfaf7e317 100644 --- a/src/main/java/com/plotsquared/sponge/uuid/SpongeOnlineUUIDWrapper.java +++ b/src/main/java/com/plotsquared/sponge/uuid/SpongeOnlineUUIDWrapper.java @@ -69,4 +69,9 @@ public class SpongeOnlineUUIDWrapper extends UUIDWrapper { throw new UnsupportedOperationException("NOT IMPLEMENTED YET"); } + @Override + public OfflinePlotPlayer getOfflinePlayer(String name) { + throw new UnsupportedOperationException("NOT IMPLEMENTED YET"); + } + }