-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
70 additions
and
51 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
30 changes: 30 additions & 0 deletions
30
src/main/java/me/bramhaag/guilds/commands/CommandTestLeaderboard.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,30 @@ | ||
package me.bramhaag.guilds.commands; | ||
|
||
import me.bramhaag.guilds.api.GuildsAPI; | ||
import me.bramhaag.guilds.commands.base.CommandBase; | ||
import me.bramhaag.guilds.leaderboard.Leaderboard; | ||
import org.bukkit.entity.Player; | ||
|
||
public class CommandTestLeaderboard extends CommandBase { | ||
|
||
public CommandTestLeaderboard() { | ||
super("test", "", "", false, null, null, -1, -1); | ||
} | ||
|
||
public void execute(Player player, String[] args) { | ||
Leaderboard leaderboard1 = GuildsAPI.createLeaderboard(args[0], Leaderboard.LeaderboardType.valueOf(args[1]), Leaderboard.SortType.valueOf(args[2])); | ||
player.sendMessage("created"); | ||
|
||
/*Leaderboard leaderboard2 = GuildsAPI.getLeaderboard(args[0], Leaderboard.LeaderboardType.valueOf(args[1])); | ||
player.sendMessage("---1---"); | ||
player.sendMessage("Name: " + leaderboard1.getName()); | ||
player.sendMessage("Type: " + leaderboard1.getLeaderboardType().name()); | ||
player.sendMessage("Order: " + leaderboard1.getSortType().name()); | ||
player.sendMessage("---2---"); | ||
player.sendMessage("Name: " + leaderboard2.getName()); | ||
player.sendMessage("Type: " + leaderboard2.getLeaderboardType().name()); | ||
player.sendMessage("Order: " + leaderboard2.getSortType().name());*/ | ||
} | ||
} |
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