mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
Added #button, #container, #door, and #pressure_plate tags
This commit is contained in:
parent
5859958ec2
commit
e6557ab5f3
@ -1121,9 +1121,13 @@ public class CommandHandler implements CommandExecutor {
|
||||
return worldName;
|
||||
}
|
||||
|
||||
private static Map<String, Set<Material>> getTags() {
|
||||
protected static Map<String, Set<Material>> getTags() {
|
||||
Map<String, Set<Material>> tagMap = new HashMap<>();
|
||||
tagMap.put("#button", BlockGroup.BUTTONS);
|
||||
tagMap.put("#container", BlockGroup.CONTAINERS);
|
||||
tagMap.put("#door", BlockGroup.DOORS);
|
||||
tagMap.put("#natural", BlockGroup.NATURAL_BLOCKS);
|
||||
tagMap.put("#pressure_plate", BlockGroup.PRESSURE_PLATES);
|
||||
tagMap.put("#shulker_box", BlockGroup.SHULKER_BOXES);
|
||||
return tagMap;
|
||||
}
|
||||
|
@ -318,8 +318,9 @@ public class TabHandler implements TabCompleter {
|
||||
}
|
||||
|
||||
// add custom tags
|
||||
materialList.add("#natural");
|
||||
materialList.add("#shulker_box");
|
||||
for (String tag : CommandHandler.getTags().keySet()) {
|
||||
materialList.add(tag);
|
||||
}
|
||||
|
||||
materials = new ArrayList<>(materialList);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user