[Version 0.7.4.1]
- Quick API update to add player to the activate event
This commit is contained in:
parent
5c34a21bf6
commit
44be58f6a4
2
README
2
README
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user