-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
128 additions
and
50 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
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
39 changes: 39 additions & 0 deletions
39
src/com/palmergames/bukkit/towny/event/TownyNationUpkeepEvent.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,39 @@ | ||
package com.palmergames.bukkit.towny.event; | ||
|
||
import org.bukkit.event.HandlerList; | ||
|
||
import com.palmergames.bukkit.towny.object.Nation; | ||
|
||
|
||
public class TownyNationUpkeepEvent extends TownyUpkeepEvent { | ||
|
||
private static final HandlerList handlers = new HandlerList(); | ||
|
||
private Nation nation; | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
|
||
return handlers; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
|
||
return handlers; | ||
} | ||
|
||
public TownyNationUpkeepEvent(Nation nation, Double upkeep) { | ||
super(upkeep); | ||
this.nation = nation; | ||
} | ||
|
||
|
||
/** | ||
* | ||
* @return the nation | ||
*/ | ||
public Nation getNation() { | ||
return this.nation; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
src/com/palmergames/bukkit/towny/event/TownyTownUpkeepEvent.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,38 @@ | ||
package com.palmergames.bukkit.towny.event; | ||
|
||
import org.bukkit.event.HandlerList; | ||
|
||
import com.palmergames.bukkit.towny.object.Town; | ||
|
||
|
||
public class TownyTownUpkeepEvent extends TownyUpkeepEvent { | ||
|
||
private static final HandlerList handlers = new HandlerList(); | ||
|
||
private Town town; | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
|
||
return handlers; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
|
||
return handlers; | ||
} | ||
|
||
public TownyTownUpkeepEvent(Town town,Double upkeep) { | ||
super(upkeep); | ||
this.town = town; | ||
} | ||
|
||
/** | ||
* | ||
* @return the town | ||
*/ | ||
public Town getTown() { | ||
return this.town; | ||
} | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/com/palmergames/bukkit/towny/event/TownyUpkeepEvent.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,40 @@ | ||
package com.palmergames.bukkit.towny.event; | ||
|
||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
|
||
public class TownyUpkeepEvent extends Event { | ||
|
||
private static final HandlerList handlers = new HandlerList(); | ||
|
||
private double upkeep; | ||
|
||
public TownyUpkeepEvent(Double upkeep) { | ||
this.upkeep = upkeep; | ||
} | ||
|
||
@Override | ||
public HandlerList getHandlers() { | ||
|
||
return handlers; | ||
} | ||
|
||
public static HandlerList getHandlerList() { | ||
|
||
return handlers; | ||
} | ||
|
||
public void setUpkeep(Double cost) { | ||
this.upkeep = cost; | ||
} | ||
|
||
/** | ||
* | ||
* @return the upkeep | ||
*/ | ||
public double getUpkeep() { | ||
return upkeep; | ||
} | ||
|
||
} |
45 changes: 0 additions & 45 deletions
45
src/com/palmergames/bukkit/towny/object/TownyUpkeepModifier.java
This file was deleted.
Oops, something went wrong.