Skip to content

Commit

Permalink
Fix damn skyblock events...
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortifier42 committed Jan 11, 2016
1 parent 3e2ae82 commit eb77e2e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
Expand Up @@ -105,9 +105,6 @@ else if (name.equals("item_rewards")) {

@EventHandler
public void onPlayerCompletesSkyBlockChallenge(ChallengeCompleteEvent event) {
if (dEntity.isNPC(event.getPlayer())) {
return;
}
challenge = new Element(event.getChallengeName());
xp_reward = new Element(event.getExpReward());
money_reward = new Element(event.getMoneyReward());
Expand Down
Expand Up @@ -97,9 +97,6 @@ else if (name.equals("location")) {

@EventHandler
public void onPlayerEntersSkyblock(IslandEnterEvent event) {
if (dEntity.isNPC(event.getPlayer())) {
return;
}
island_location = new dLocation(event.getIslandLocation());
location = new dLocation(event.getLocation());
owner = new dPlayer(event.getIslandOwner());
Expand Down
Expand Up @@ -98,9 +98,6 @@ else if (name.equals("location")) {

@EventHandler
public void onPlayerExitsSkyblock(IslandExitEvent event) {
if (dEntity.isNPC(event.getPlayer())) {
return;
}
island_location = new dLocation(event.getIslandLocation());
location = new dLocation(event.getLocation());
owner = new dPlayer(event.getIslandOwner());
Expand Down
Expand Up @@ -98,9 +98,6 @@ else if (name.equals("schematic")) {

@EventHandler
public void onSkyBlockCreated(IslandNewEvent event) {
if (dEntity.isNPC(event.getPlayer())) {
return;
}
location = new dLocation(event.getIslandLocation());
schematic = new Element(event.getSchematicName().getName());
owner = new dPlayer(event.getPlayer());
Expand Down
Expand Up @@ -92,9 +92,6 @@ else if (name.equals("location")) {

@EventHandler
public void onSkyBlockReset(IslandResetEvent event) {
if (dEntity.isNPC(event.getPlayer())) {
return;
}
location = new dLocation(event.getLocation());
owner = new dPlayer(event.getPlayer());
this.event = event;
Expand Down

2 comments on commit eb77e2e

@mcmonkey4eva
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you accidentally the whole

@Fortifier42
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcmonkey4eva Well, I assumed that getPlayer returned a player (logic), however! IT DOESN'T :o

Please sign in to comment.