From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 14:13:17 +0000 (+0200) Subject: Add method to delete a Sone. X-Git-Tag: 0.1-RC1~469 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bdc25c7fe8763346b82d00971359fecdaf2f03e3;p=Sone.git Add method to delete a Sone. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index c5c7308..7498356 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -153,6 +153,16 @@ public class Core extends AbstractService { return sone; } + /** + * Deletes the given Sone from this plugin instance. + * + * @param sone + * The sone to delete + */ + public void deleteSone(Sone sone) { + localSones.remove(sone); + } + // // SERVICE METHODS //