From ad9d85e50f2966346046c9f82222ba58ad6b78af Mon Sep 17 00:00:00 2001 From: zml2008 Date: Tue, 17 Jan 2012 18:17:02 -0800 Subject: [PATCH] This should either fix errors people have been having with Trove, or consistently break Spout Probably the first --- .../java/com/sk89q/worldedit/dev/DocumentationPrinter.java | 1 + src/main/resources/plugin.yml | 1 + src/test/java/com/sk89q/wepif/TestOfflinePermissible.java | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java b/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java index 68d71d6d1..c79c414e4 100644 --- a/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java +++ b/src/main/java/com/sk89q/worldedit/dev/DocumentationPrinter.java @@ -196,6 +196,7 @@ public class DocumentationPrinter { stream.println("name: WorldEdit"); stream.println("main: com.sk89q.worldedit.bukkit.WorldEditPlugin"); stream.println("version: ${project.version}"); + stream.println("softdepend: [Spout] #hack to fix trove errors"); stream.println(); stream.println(); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index fd757d4e2..c94c5c494 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,7 @@ name: WorldEdit main: com.sk89q.worldedit.bukkit.WorldEditPlugin version: ${project.version} +softdepend: [Spout] #hack to fix trove errors # Permissions aren't here. Read http://wiki.sk89q.com/wiki/WEPIF/DinnerPerms # for how WorldEdit permissions actually work. diff --git a/src/test/java/com/sk89q/wepif/TestOfflinePermissible.java b/src/test/java/com/sk89q/wepif/TestOfflinePermissible.java index e6bf25e21..b4147bedc 100644 --- a/src/test/java/com/sk89q/wepif/TestOfflinePermissible.java +++ b/src/test/java/com/sk89q/wepif/TestOfflinePermissible.java @@ -1,5 +1,6 @@ package com.sk89q.wepif; +import org.bukkit.Location; import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import org.bukkit.permissions.Permissible; @@ -131,6 +132,10 @@ public class TestOfflinePermissible implements OfflinePlayer, Permissible { throw new UnsupportedOperationException("Not supported yet."); } + public Location getBedSpawnLocation() { + throw new UnsupportedOperationException("Not supported yet."); + } + public Map serialize() { throw new UnsupportedOperationException("Not supported yet."); }