Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hypothermic committed Feb 25, 2018
1 parent 3f201af commit 6c4d22e
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>nl.hypothermic</groupId>
<artifactId>tekkitreference</artifactId>
<version>1.2.1-RELEASE</version>
<version>1.3.0-RELEASE</version>
<name>TekkitReference</name>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ public void run() { try {
String icholdeu = null;
String rprequirebt = null;
String passsun = null;
String eeemcs = null;
String eeemcstor = null;
String eeemcbonus = null;
while (rs.next()) {
name = rs.getString("name");
id = rs.getString("id");
Expand All @@ -236,6 +239,9 @@ public void run() { try {
icholdeu = rs.getString("icholdeu");
rprequirebt = rs.getString("rprequirebt");
passsun = rs.getString("passsun");
eeemcs = rs.getString("eeemcs");
eeemcstor = rs.getString("eeemcstor");
eeemcbonus = rs.getString("eeemcbonus");
}
if (name == null) {
sender.sendMessage(ChatColor.GREEN + "" + ChatColor.BOLD + "[REF]" + ChatColor.RESET + ChatColor.WHITE + " Could not find that item in the database.");
Expand Down Expand Up @@ -293,6 +299,17 @@ public void run() { try {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Does not use EU");
}
}
} else if (type.toLowerCase().contains("Collector".toLowerCase())) {
if (eeemcs != null) {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Generates max. " + eeemcs + " EMC/s");
}
} else if (type.toLowerCase().contains("Relay".toLowerCase())) {
if (eeemcstor != null) {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Stores max. " + eeemcstor + " EMC");
}
if (eeemcbonus != null) {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Gives " + eeemcbonus + " EMC bonus per attached side.");
}
}
} else if (xfilter == 1) {
sender.sendMessage(ChatColor.GREEN + "" + ChatColor.BOLD + "[REF] " + ChatColor.RESET + ChatColor.WHITE + name + " (" + id + ")" + ChatColor.BLUE + " [" + xemc + " EMC]");
Expand Down Expand Up @@ -360,6 +377,24 @@ public void run() { try {
} else {
sender.sendMessage(ChatColor.GRAY + "- Sunlight can't pass through block");
}} catch (NullPointerException x) {}
try {
if (eeemcs != null) {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Generates max. " + eeemcs + " EMC/s");
} else {
sender.sendMessage(ChatColor.GRAY + "- " + "Does not generate EMC");
}} catch (NullPointerException x) {}
try {
if (eeemcstor != null) {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Stores max. " + eeemcstor + " EMC");
} else {
sender.sendMessage(ChatColor.GRAY + "- " + "Does not store EMC");
}} catch (NullPointerException x) {}
try {
if (eeemcbonus != null) {
sender.sendMessage(ChatColor.DARK_PURPLE + "- " + "Gives " + eeemcbonus + " EMC bonus per attached side.");
} else {
sender.sendMessage(ChatColor.GRAY + "- " + "Does not give an EMC bonus");
}} catch (NullPointerException x) {}
}
return;
} catch (Exception x) {}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: TekkitReference
main: nl.hypothermic.tekkitreference.trMain
version: 1.2.1-RELEASE
version: 1.3.0-RELEASE
author: hypothermicdotnl
commands:
ref:
Expand Down

0 comments on commit 6c4d22e

Please sign in to comment.