[Version 0.7.4.1]

- Quick API update to add player to the activate event
This commit is contained in:
Steven Scott 2012-01-07 13:16:43 -08:00
parent 5c34a21bf6
commit 44be58f6a4
4 changed files with 14 additions and 3 deletions

2
README
View File

@ -198,6 +198,8 @@ createConflict=Gate conflicts with existing gate
=============
Changes
=============
[Version 0.7.4.1]
- Quick API update to add player to the activate event
[Version 0.7.4.0]
- Fixed issue with non-air closed portal blocks
- Added StargatePortalEvent/onStargatePortal event

View File

@ -441,7 +441,7 @@ public class Portal {
}
public void activate(Player player) {
StargateActivateEvent event = new StargateActivateEvent(this);
StargateActivateEvent event = new StargateActivateEvent(this, player);
Stargate.server.getPluginManager().callEvent(event);
if (event.isCancelled()) return;

View File

@ -1,12 +1,21 @@
package net.TheDgtl.Stargate.event;
import org.bukkit.entity.Player;
import net.TheDgtl.Stargate.Portal;
public class StargateActivateEvent extends StargateEvent {
private static final long serialVersionUID = -8058490029263773684L;
public StargateActivateEvent(Portal portal) {
Player player;
public StargateActivateEvent(Portal portal, Player player) {
super("StargatActivateEvent", portal);
this.player = player;
}
public Player getPlayer() {
return player;
}
}

View File

@ -1,6 +1,6 @@
name: Stargate
main: net.TheDgtl.Stargate.Stargate
version: 0.7.4.0
version: 0.7.4.1
description: Stargate mod for Bukkit
author: Drakia
website: http://www.thedgtl.net