Tiny fix to help Travis to compile

This commit is contained in:
Poslovitch 2017-06-21 17:18:02 +02:00
parent 59a6397536
commit ee133156f4

View File

@ -684,7 +684,7 @@ public class Island extends DataObject {
public void setLocked(boolean locked){
if(locked){
// Lock the island
IslandLockEvent event = new IslandLockEvent(this);
IslandLockEvent event = new IslandLockEvent(this, null); // TODO: Maybe a custom CommandSender for BSkyBlock ?
Bukkit.getServer().getPluginManager().callEvent(event);
if(!event.isCancelled()){
@ -692,7 +692,7 @@ public class Island extends DataObject {
}
} else {
// Unlock the island
IslandUnlockEvent event = new IslandUnlockEvent(this);
IslandUnlockEvent event = new IslandUnlockEvent(this, null);
Bukkit.getServer().getPluginManager().callEvent(event);
if(!event.isCancelled()){