Sierra ~ Java // Netty // MySQL // BoneCP // Plugin System (Like Bukkit!)

Status
Not open for further replies.
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Updates

I've re-added the plugin system (almost identical to Bukkit, but no code has been taken from there) ;P. I'll write up some documentation how to use the plugin system once released, but the following events (at the moment) will be supported as I see these as the main important ones.

- Login
- Logout
- Place furni
- Pickup furni
- Chat
- Walk
- Purchase furni

RoflPlugin.java (separate project using Sierra as a referenced jar)

Code:
package net.quackster.rofl;

import sierra.Sierra;
import sierra.plugin.JavaPlugin;

public class Rofl extends JavaPlugin 
{
	@Override
	public void onEnable() 
	{
		Sierra.getPluginManager().getListenerManager().registerListeners(new RoflListener());
		
	}
	
	@Override
	public void onDisable() 
	{
		// TODO Auto-generated method stub
		
	}
}

RoflListener.java

Code:
package net.quackster.rofl;

import sierra.plugin.events.LoginEvent;
import sierra.plugin.listeners.Listener;

public class RoflListener extends Listener 
{
	@Override
	public void onLoginEvent(LoginEvent e)
	{
		if (e.getSession().getHabbo().IsModerator())
		{
			System.out.println("A moderator has joined the game!");
		}
	}
}
 
Last edited:
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Updates

- Fixed the event registering, it called every event. If the login event wasn't actually registered it would still call it.
- Fixed the event cancelling, works better than before. (If one event was cancelled and one of the other plugins uncancelled the event, it would stay uncancelled)
- You can't register a listener more than once otherwise it will throw some errors
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Seems like this development is reaching it's final stage.
Would be nice to see some extra Habbo features (like teleporters, rollers and achievements).

I believe in you, Quackster!
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Seems like this development is reaching it's final stage.
Would be nice to see some extra Habbo features (like teleporters, rollers and achievements).

I believe in you, Quackster!

Sorry to burst your bubble, but it's nowhere near.
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

I dont know, but i like this very much, i don't know why, I DONT KNOW! And the way how you code this things :love:
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Official site launched.

When releases are launched, they'll appear here, . More content and info will be put up as time progresses.

Also, there are no releases, yet.
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Plugin example:

 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Updates:

- Edited main thread with logo. (suu sexy)
- Fixed an error with not setting the listener to the ListenerEvent instance, causing NullPointerException's

Plugin in-action:

Quackster - Sierra ~ Java // Netty // MySQL // BoneCP // Plugin System (Like Bukkit!) - RaGEZONE Forums
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Updates:

- Edited main thread with logo. (suu sexy)
- Fixed an error with not setting the listener to the ListenerEvent instance, causing NullPointerException's

Plugin in-action:

Quackster - Sierra ~ Java // Netty // MySQL // BoneCP // Plugin System (Like Bukkit!) - RaGEZONE Forums
That's fantastic!
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Does it have an language file?
So people can change it to dear own language?
Example: I'm Dutch and i want that my client is Dutch. So can i change that?
 
Re: Sierra - [Java, R63, Post-Shuffle, Latest Releases, CMS]

Can you add plugins without restarting the emulator? That would be an awesome feature

I could make a reload command, but you'll have to quit and re-open the emulator if you want to remove them.
 
Status
Not open for further replies.
Back