[Pogamut-list] Feedback, Things that don't work properly and things that should be included
jakub.gemrot
pogamut-forum at diana.ms.mff.cuni.cz
Wed Apr 13 16:47:03 CEST 2011
Re: Feedback, Things that don't work properly and things that should be included
Author: jakub.gemrot
Hi!
Sure, this is one thing that should be corrected. Not that it is not working, but the thing that it does not throw EXCEPTION at you.
IncomingProjectile is an object, thus you need to use @ObjectClassEventListener
See ResponsiveBot for the example with player:
"""
@ObjectClassEventListener(eventClass = WorldObjectAppearedEvent.class, objectClass = Player.class)
protected void playerAppeared(WorldObjectAppearedEvent<Player> event) {
// greet player when he appears
body.getCommunication().sendGlobalTextMessage("Hello " + event.getObject().getName() + "!");
}
"""
Cheers!
Jimmy
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=646&post_reply=1#form>
More information about the Pogamut-list
mailing list