-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Chickenpowerrr/develop
1.4.0 Update
- Loading branch information
Showing
41 changed files
with
1,222 additions
and
346 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
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
33 changes: 33 additions & 0 deletions
33
api/src/main/java/com/gmail/chickenpowerrr/ranksync/api/link/Link.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,33 @@ | ||
package com.gmail.chickenpowerrr.ranksync.api.link; | ||
|
||
import com.gmail.chickenpowerrr.ranksync.api.bot.Bot; | ||
import java.util.List; | ||
|
||
/** | ||
* This interface contains all the requirements for a link | ||
* | ||
* @author Chickenpowerrr | ||
* @since 1.4.0 | ||
*/ | ||
public interface Link { | ||
|
||
/** | ||
* Returns all Minecraft ranks involved in this link | ||
*/ | ||
List<String> getMinecraftRanks(); | ||
|
||
/** | ||
* Returns all platform ranks involved in this link | ||
*/ | ||
List<String> getPlatformRanks(); | ||
|
||
/** | ||
* Returns the format used for this link | ||
*/ | ||
String getNameFormat(); | ||
|
||
/** | ||
* Returns the bot which has to sync the rank | ||
*/ | ||
Bot<?, ?> getBot(); | ||
} |
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
48 changes: 48 additions & 0 deletions
48
api/src/main/java/com/gmail/chickenpowerrr/ranksync/api/reward/RewardSettings.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,48 @@ | ||
package com.gmail.chickenpowerrr.ranksync.api.reward; | ||
|
||
import com.gmail.chickenpowerrr.ranksync.api.player.Player; | ||
|
||
/** | ||
* This interface contains the settings for a reward system | ||
* | ||
* @author Chickenpowerrr | ||
* @since 1.4.0 | ||
*/ | ||
public interface RewardSettings { | ||
|
||
/** | ||
* Returns the settings for what should happen on a sync | ||
*/ | ||
RewardAction getSyncAction(); | ||
|
||
/** | ||
* Returns the settings for what should happen on an unsync | ||
*/ | ||
RewardAction getUnsyncAction(); | ||
|
||
/** | ||
* This interface contains all settings for a reward action | ||
* | ||
* @author Chickenpowerrr | ||
* @since 1.4.0 | ||
*/ | ||
interface RewardAction { | ||
|
||
/** | ||
* Returns the maximum times a user can receive the action commands can be executed for the | ||
* given player, -1 if it should be executed every time | ||
*/ | ||
int getMax(); | ||
|
||
/** | ||
* Returns if the action commands should be executed | ||
*/ | ||
boolean isEnabled(); | ||
|
||
/** | ||
* Returns the commands that should be executed when someone syncs their account, %player% | ||
* is the placeholder for the player who synced their account | ||
*/ | ||
void executeCommands(Player player); | ||
} | ||
} |
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.