This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to restore arenas after the match - somewhat experimental
still, but should work.
- Loading branch information
Showing
4 changed files
with
129 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/de/beimax/simplespleef/SimpleSpleefBlockListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package de.beimax.simplespleef; | ||
|
||
import org.bukkit.event.block.BlockBreakEvent; | ||
import org.bukkit.event.block.BlockListener; | ||
|
||
/** | ||
* Listener for block breaks | ||
* | ||
* @author mkalus | ||
* | ||
*/ | ||
public class SimpleSpleefBlockListener extends BlockListener { | ||
//private final SimpleSpleef plugin; | ||
private final SimpleSpleefGame game; | ||
|
||
/** | ||
* Constructor | ||
* @param instance | ||
* @param game | ||
*/ | ||
public SimpleSpleefBlockListener(SimpleSpleef instance, | ||
SimpleSpleefGame game) { | ||
//plugin = instance; | ||
this.game = game; | ||
} | ||
|
||
@Override | ||
public void onBlockBreak(BlockBreakEvent event) { | ||
game.checkBlockBreak(event); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters