|
| 1 | +/* |
| 2 | + * Adapted from the Wizardry License |
| 3 | + * |
| 4 | + * Copyright (c) 2016-2020 larryTheCoder and contributors |
| 5 | + * |
| 6 | + * Permission is hereby granted to any persons and/or organizations |
| 7 | + * using this software to copy, modify, merge, publish, and distribute it. |
| 8 | + * Said persons and/or organizations are not allowed to use the software or |
| 9 | + * any derivatives of the work for commercial use or any other means to generate |
| 10 | + * income, nor are they allowed to claim this software as their own. |
| 11 | + * |
| 12 | + * The persons and/or organizations are also disallowed from sub-licensing |
| 13 | + * and/or trademarking this software without explicit permission from larryTheCoder. |
| 14 | + * |
| 15 | + * Any persons and/or organizations using this software must disclose their |
| 16 | + * source code and have it publicly available, include this license, |
| 17 | + * provide sufficient credit to the original authors of the project (IE: larryTheCoder), |
| 18 | + * as well as provide a link to the original project. |
| 19 | + * |
| 20 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
| 21 | + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR |
| 22 | + * PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| 23 | + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 24 | + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
| 25 | + * USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 26 | + */ |
| 27 | + |
| 28 | +package com.larryTheCoder.events; |
| 29 | + |
| 30 | +import cn.nukkit.event.Cancellable; |
| 31 | +import com.larryTheCoder.cache.IslandData; |
| 32 | +import lombok.Getter; |
| 33 | +import lombok.Setter; |
| 34 | + |
| 35 | +/** |
| 36 | + * An event in which the island has successfully calculates their island |
| 37 | + * level, this event will be called so that the developers can modify the amount of |
| 38 | + * scores that the player's island will get. |
| 39 | + */ |
| 40 | +public class IslandCalculateFinishEvent extends SkyBlockEvent implements Cancellable { |
| 41 | + |
| 42 | + @Getter |
| 43 | + private final int lastLevel; |
| 44 | + @Getter @Setter |
| 45 | + private int islandLevel; |
| 46 | + |
| 47 | + public IslandCalculateFinishEvent(IslandData island, int islandLevel, int lastLevel) { |
| 48 | + super(island); |
| 49 | + |
| 50 | + this.islandLevel = islandLevel; |
| 51 | + this.lastLevel = lastLevel; |
| 52 | + } |
| 53 | +} |
0 commit comments