Skip to content

Commit

Permalink
this update requires the name the full name of the block in the config
Browse files Browse the repository at this point in the history
This allows for items that are not just ores to be broadcast. In 1.16
things like ancient_debris is not an ore but something that should be
broadcast
  • Loading branch information
ironboundred committed Jul 11, 2020
1 parent 3a75842 commit 58e903c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>be.bendem.bukkit</groupId>
<artifactId>OreBroadcast</artifactId>
<version>1.5.2-SNAPSHOT</version>
<version>1.5.3-SNAPSHOT</version>
<packaging>jar</packaging>

<name>OreBroadcast</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/be/bendem/bukkit/orebroadcast/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
blocksToBroadcast.clear();

for(String item : configList) {
Material material = Material.getMaterial(item.toUpperCase() + "_ORE");
Material material = Material.getMaterial(item.toUpperCase());
blocksToBroadcast.add(material);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;

import net.md_5.bungee.api.ChatColor;

public class PluginMessage implements PluginMessageListener {

private final OreBroadcast plugin;
Expand Down
17 changes: 9 additions & 8 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# A list of the ores which will be broadcasted when found.
ores:
- coal
- iron
- gold
- lapis
- redstone
- quartz
- diamond
- emerald
- coal_ore
- iron_ore
- gold_ore
- lapis_ore
- redstone_ore
- quartz_ore
- diamond_ore
- emerald_ore
- ancient_debris

# The colors to use to color the ores in the broadcast message.
# See the end of the file for a list of available colors.
Expand Down

0 comments on commit 58e903c

Please sign in to comment.