About Presence in StatusBar


I am looking for changing my presence in Spark by a plugin. I used this sheet of code :

import com.jivesoftware.spark.SparkManager;

import com.jivesoftware.spark.Workspace;

import com.jivesoftware.spark.plugin.Plugin;

import com.jivesoftware.spark.ui.status.StatusBar;

public class myplugin implements Plugin {

public void initialize() {

// Get Workspace UI from SparkManager

Workspace workspace = SparkManager.getWorkspace();

StatusBar status = workspace.getStatusBar();




But my presence do not change to “aze” and the plugin folder is deleted. Why ? Does anybody know ? Did I use the good method setStatus() ? Thanks for help me.


ps : sorry for my english…

hey Scar try to change the presence and the status using SessionManager

SparkManager.getSessionManager().changePresence(Presence pres)

Hope Helped.