Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private void tryCreateNode(Player p, Location loc, NodeBlock b, Cancellable e) {
}
for(Node node : nodes) {
if(node.getLoc().getChunk().equals(loc.getChunk())) {
p.sendMessage("§cChunk already has a node!");
p.sendMessage("§cThere is already a node on this land!");
e.setCancelled(true);
return;
}
Expand All @@ -320,7 +320,7 @@ private void tryCreateNode(Player p, Location loc, NodeBlock b, Cancellable e) {
return;
}
if(getNodeAmount(g)-getNodeCapacity(g) >= 0 && !b.isSpecial()) {
p.sendMessage("§cYou are already filled your node capacity!");
p.sendMessage("§cYour guild has already filled its node capacity!");
e.setCancelled(true);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void dowsingEvent(PlayerInteractEvent e) throws NumberFormatException, IO
String dowsingId = Cache.dowsingStick.split("\\.")[1];
if(!(nbt.getType().equalsIgnoreCase(dowsingType) && nbt.getString("MMOITEMS_ITEM_ID").equalsIgnoreCase(dowsingId))) return;
if(!Cache.naturalYieldEnabled) {
p.sendMessage("§cNatural yields are disabled");
p.sendMessage("§cYour dowsing stick does not stir.");
return;
}
if(db.hasResource(p.getLocation().getChunk())) {
Expand All @@ -51,7 +51,7 @@ public void dowsingEvent(PlayerInteractEvent e) throws NumberFormatException, IO
if(yield > 3) color = "YELLOW";
if(yield > 5) color = "GREEN";
if(yield > 7) color = "DARK_GREEN";
p.sendMessage("§fThis chunk has resources of the type: §e"+resource.replace("_", " ")+" §fin it, with a yield of "+ChatColor.valueOf(color) + yield);
p.sendMessage("§fThis land holds §e"+resource.replace("_", " ")+"§f, with a yield of "+ChatColor.valueOf(color) + yield);
} else {
p.sendMessage("§7Nothing found here");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/tfminecraft/dowsing/objects/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public boolean canClaim(Player p, Guild g){
return false;
}
if(NodeManager.getNodeAmount(g)-NodeManager.getNodeCapacity(g) >= 0 && !block.isSpecial()) {
p.sendMessage("§cYou are already filled your node capacity!");
p.sendMessage("§cYour guild has already filled its node capacity!");
return false;
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public ItemStack createTypeItemNode(Node n, NodeType t, boolean gui) {
public ItemStack createNaturalYieldItem(Node n) {
ItemStack i = new ItemStack(Material.EMERALD, 1);
ItemMeta m = i.getItemMeta();
m.setDisplayName("§aChunk has a natural yield of §e"+n.getNaturalYield()+"§a for §e"+WordUtils.capitalize(n.getCurrentType().getResource()));
m.setDisplayName("§aThis land has a natural yield of §e"+n.getNaturalYield()+"§a for §e"+WordUtils.capitalize(n.getCurrentType().getResource()));
List<String> lore = new ArrayList<String>();
lore.add("§7Bonuses will be applied depending on Extraction level");
lore.add("§eCurrent Extraction: §f"+n.getExtraction()+" §7(max "+n.getNaturalYield()+")");
Expand Down