-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code cleanup, fixed bugs and enhancement
- Loading branch information
1 parent
491661d
commit 7105100
Showing
57 changed files
with
1,286 additions
and
592 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 was deleted.
Oops, something went wrong.
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
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
52 changes: 52 additions & 0 deletions
52
bukkit/src/main/java/net/leaderos/plugin/api/handlers/UpdateCacheEvent.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,52 @@ | ||
package net.leaderos.plugin.api.handlers; | ||
|
||
|
||
import lombok.Getter; | ||
import org.bukkit.event.Event; | ||
import org.bukkit.event.HandlerList; | ||
|
||
/** | ||
* @author poyrazinan | ||
* @since 1.0 | ||
*/ | ||
public class UpdateCacheEvent extends Event { | ||
|
||
/** | ||
* Player who made action to be updated | ||
*/ | ||
@Getter | ||
private final String playerName; | ||
|
||
/** | ||
* UpdateCacheEvent constructor | ||
* | ||
* @param playerName who required to update | ||
*/ | ||
public UpdateCacheEvent(String playerName) { | ||
this.playerName = playerName; | ||
} | ||
|
||
/** | ||
* Spigot handlers requirements | ||
* @see HandlerList | ||
*/ | ||
private static final HandlerList HANDLERS = new HandlerList(); | ||
|
||
/** | ||
* Spigot handlers requirement | ||
* @return handler list | ||
*/ | ||
@Override | ||
public HandlerList getHandlers() { | ||
return HANDLERS; | ||
} | ||
|
||
/** | ||
* Spigot handlers requirement | ||
* * @return handler list | ||
* @return HandlerList list | ||
*/ | ||
public static HandlerList getHandlerList() { | ||
return HANDLERS; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...leaderos/shared/configuration/Config.java → ...leaderos/plugin/configuration/Config.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
Oops, something went wrong.