-
Notifications
You must be signed in to change notification settings - Fork 32
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
39 changed files
with
1,227 additions
and
653 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
File renamed without changes.
File renamed without changes.
Binary file renamed
BIN
+1.36 MB
assets/unicode pages/unicode_page_ad.psd → assets/variant 1/unicode_page_ad.psd
Binary file not shown.
Binary file renamed
BIN
+865 KB
assets/unicode pages/unicode_page_ad.xcf → assets/variant 1/unicode_page_ad.xcf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
36 changes: 36 additions & 0 deletions
36
plugin/src/main/java/io/github/radbuilder/emojichat/EmojiChatTabComplete.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,36 @@ | ||
package io.github.radbuilder.emojichat; | ||
|
||
import org.bukkit.command.Command; | ||
import org.bukkit.command.CommandSender; | ||
import org.bukkit.command.TabCompleter; | ||
import org.bukkit.util.StringUtil; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
/** | ||
* EmojiChat tab completer. | ||
* | ||
* @author RadBuilder | ||
* @version 1.7 | ||
* @since 1.7 | ||
*/ | ||
class EmojiChatTabComplete implements TabCompleter { | ||
/** | ||
* The list of /emojichat sub-commands. | ||
*/ | ||
private final List<String> SUB_COMMANDS = new ArrayList<>(Arrays.asList("help", "resourcepack", "reload", "toggle", "list")); | ||
|
||
@Override | ||
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) { | ||
// The possible completions | ||
List<String> completions = new ArrayList<>(); | ||
// Gets the matches | ||
StringUtil.copyPartialMatches(args[0], SUB_COMMANDS, completions); | ||
// Sort the completions | ||
Collections.sort(completions); | ||
return completions; | ||
} | ||
} |
Oops, something went wrong.