-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated source code to serialize correctly the hashes instead of hash…
…ing the hash object itself, causing some problems on the process
- Loading branch information
Showing
186 changed files
with
10,778 additions
and
4,973 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"logger": { | ||
"console": { | ||
"prefix": [ | ||
{ | ||
"type": "NONE", | ||
"display": "&b[&7&o{0}&r&b]&8: &f{1}" | ||
}, | ||
{ | ||
"type": "DEBUG", | ||
"display": "&b{&8DEBUG&b}&3 {0}&7:&f {1}" | ||
}, | ||
{ | ||
"type": "DEBUG_SEVERE", | ||
"display": "&b{&6DEBUG SEVERE&b}&3 {0}&7:&f {1}" | ||
}, | ||
{ | ||
"type": "SUCCESS", | ||
"display": "&b{&aSUCCESS&b}&3 {0}&7:&f {1}" | ||
}, | ||
{ | ||
"type": "INFO", | ||
"display": "&b{&7INFO&b}&3 {0}&7:&f {1}" | ||
}, | ||
{ | ||
"type": "WARNING", | ||
"display": "&b{&eWARNING&b}&3 {0}&7:&f {1}" | ||
}, | ||
{ | ||
"type": "SEVERE", | ||
"display": "&b{&cSEVERE&b}&3 {0}&7:&f {1}" | ||
}, | ||
{ | ||
"type": "ERROR", | ||
"display": "&b{&4ERROR&b}&3 {0}&7:&f {1}" | ||
} | ||
], | ||
"print": [ | ||
"SUCCESS", | ||
"INFO", | ||
"WARNING", | ||
"SEVERE", | ||
"ERROR" | ||
], | ||
"async": true | ||
}, | ||
"file": { | ||
"async": true | ||
} | ||
}, | ||
"url": { | ||
"strict": false, | ||
"timeout": 5000 | ||
}, | ||
"experimental": false | ||
} |
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
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
61 changes: 61 additions & 0 deletions
61
...I/src/main/java/es/karmadev/locklogin/api/event/entity/client/EntityMailReceiveEvent.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,61 @@ | ||
package es.karmadev.locklogin.api.event.entity.client; | ||
|
||
import es.karmadev.locklogin.api.event.LockLoginEvent; | ||
import es.karmadev.locklogin.api.event.entity.EntityEvent; | ||
import es.karmadev.locklogin.api.event.handler.EventHandlerList; | ||
import es.karmadev.locklogin.api.extension.module.Module; | ||
import es.karmadev.locklogin.api.network.NetworkEntity; | ||
import es.karmadev.locklogin.api.plugin.service.mail.MailMessage; | ||
|
||
/** | ||
* This event is exclusively fired when | ||
* a {@link MailMessage message} is received to | ||
* a client. Implementations must fire this event | ||
*/ | ||
public class EntityMailReceiveEvent extends EntityEvent { | ||
|
||
private final static EventHandlerList HANDLER_LIST = new EventHandlerList(); | ||
|
||
private final MailMessage message; | ||
|
||
/** | ||
* Initialize the entity event | ||
* | ||
* @param entity the entity | ||
* @param message the mail message | ||
*/ | ||
public EntityMailReceiveEvent(final NetworkEntity entity, final MailMessage message) { | ||
this(null, entity, message); | ||
} | ||
|
||
/** | ||
* Initialize the entity event | ||
* | ||
* @param entity the entity | ||
* @param message the mail message | ||
* @throws SecurityException as part of {@link LockLoginEvent#LockLoginEvent(Module)} | ||
*/ | ||
public EntityMailReceiveEvent(final Module module, final NetworkEntity entity, final MailMessage message) throws SecurityException { | ||
super(module, entity); | ||
this.message = message; | ||
} | ||
|
||
/** | ||
* Get the mail message | ||
* | ||
* @return the mail message | ||
*/ | ||
public MailMessage getMessage() { | ||
return message; | ||
} | ||
|
||
/** | ||
* Get all the handlers for this | ||
* event | ||
* | ||
* @return the event handlers | ||
*/ | ||
public static EventHandlerList getHandlers() { | ||
return HANDLER_LIST; | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
...nAPI/src/main/java/es/karmadev/locklogin/api/event/entity/client/EntityMailSendEvent.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,61 @@ | ||
package es.karmadev.locklogin.api.event.entity.client; | ||
|
||
import es.karmadev.locklogin.api.event.LockLoginEvent; | ||
import es.karmadev.locklogin.api.event.entity.EntityEvent; | ||
import es.karmadev.locklogin.api.event.handler.EventHandlerList; | ||
import es.karmadev.locklogin.api.extension.module.Module; | ||
import es.karmadev.locklogin.api.network.NetworkEntity; | ||
import es.karmadev.locklogin.api.plugin.service.mail.MailMessage; | ||
|
||
/** | ||
* This event is exclusively fired when | ||
* a {@link es.karmadev.locklogin.api.plugin.service.mail.MailMessage message} is sent to | ||
* a client. Implementations must fire this event | ||
*/ | ||
public class EntityMailSendEvent extends EntityEvent { | ||
|
||
private final static EventHandlerList HANDLER_LIST = new EventHandlerList(); | ||
|
||
private final MailMessage message; | ||
|
||
/** | ||
* Initialize the entity event | ||
* | ||
* @param entity the entity | ||
* @param message the mail message | ||
*/ | ||
public EntityMailSendEvent(final NetworkEntity entity, final MailMessage message) { | ||
this(null, entity, message); | ||
} | ||
|
||
/** | ||
* Initialize the entity event | ||
* | ||
* @param entity the entity | ||
* @param message the mail message | ||
* @throws SecurityException as part of {@link LockLoginEvent#LockLoginEvent(Module)} | ||
*/ | ||
public EntityMailSendEvent(final Module module, final NetworkEntity entity, final MailMessage message) throws SecurityException { | ||
super(module, entity); | ||
this.message = message; | ||
} | ||
|
||
/** | ||
* Get the mail message | ||
* | ||
* @return the mail message | ||
*/ | ||
public MailMessage getMessage() { | ||
return message; | ||
} | ||
|
||
/** | ||
* Get all the handlers for this | ||
* event | ||
* | ||
* @return the event handlers | ||
*/ | ||
public static EventHandlerList getHandlers() { | ||
return HANDLER_LIST; | ||
} | ||
} |
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.