Add method to remove cached plugin after removing plugin
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / RemovePluginCommandImpl.java
index b4a6b79..026682d 100644 (file)
@@ -31,6 +31,18 @@ public class RemovePluginCommandImpl implements RemovePluginCommand {
        }
 
        @Override
+       public RemovePluginCommand waitFor(int milliseconds) {
+               removePlugin.setMaxWaitTime(milliseconds);
+               return this;
+       }
+
+       @Override
+       public RemovePluginCommand purge() {
+               removePlugin.setPurge(true);
+               return this;
+       }
+
+       @Override
        public Executable<Boolean> plugin(String pluginClass) {
                removePlugin.setPluginName(pluginClass);
                return this::execute;