-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issues with tab menu capitalisation
- Loading branch information
Showing
7 changed files
with
69 additions
and
5 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
2 changes: 2 additions & 0 deletions
2
...a/com/sekwah/advancedportals/core/commands/subcommands/common/CreateTaggedSubCommand.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
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
50 changes: 50 additions & 0 deletions
50
core/src/main/java/com/sekwah/advancedportals/core/tags/activation/TriggerBlockTag.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,50 @@ | ||
package com.sekwah.advancedportals.core.tags.activation; | ||
|
||
import com.google.inject.Inject; | ||
import com.sekwah.advancedportals.core.connector.containers.PlayerContainer; | ||
import com.sekwah.advancedportals.core.connector.containers.ServerContainer; | ||
import com.sekwah.advancedportals.core.registry.TagTarget; | ||
import com.sekwah.advancedportals.core.services.DestinationServices; | ||
import com.sekwah.advancedportals.core.util.Lang; | ||
import com.sekwah.advancedportals.core.warphandler.ActivationData; | ||
import com.sekwah.advancedportals.core.warphandler.Tag; | ||
|
||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
public class TriggerBlockTag implements Tag.AutoComplete { | ||
|
||
@Inject | ||
private ServerContainer serverContainer; | ||
|
||
public static String TAG_NAME = "triggerblock"; | ||
|
||
private final TagType[] tagTypes = new TagType[]{ TagType.PORTAL }; | ||
|
||
@Override | ||
public TagType[] getTagTypes() { | ||
return tagTypes; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return TAG_NAME; | ||
} | ||
|
||
@Override | ||
public String[] getAliases() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String description() { | ||
return Lang.translate("tag.triggerblock.description"); | ||
} | ||
|
||
@Override | ||
public List<String> autoComplete(String argData) { | ||
return serverContainer.getTriggerBlocks().stream() | ||
.filter(s -> s.startsWith(argData)) | ||
.collect(Collectors.toList()); | ||
} | ||
} |
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