Skip to content

Commit

Permalink
altered default messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccoystephenson committed Jul 19, 2020
1 parent fea2aa5 commit 8d977c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/spoilagesystem/Commands/ReloadCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void reload(CommandSender sender) {
player.sendMessage(ChatColor.GREEN + "" + main.storage.valuesLoadedText);
}
else {
player.sendMessage(ChatColor.RED + "" + main.storage.noPermsText + ": 'fs.reload'");
player.sendMessage(ChatColor.RED + "" + main.storage.noPermsText);
}
}
else {
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/spoilagesystem/Subsystems/StorageSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public class StorageSubsystem {
public int Dried_Kelp = 72;
public int Baked_Potato = 94;

public String createdText = "Created";
public String expiryDateText = "Expiry Date";
public String createdText = "Created:";
public String expiryDateText = "Expiry Date:";
public String valuesLoadedText = "Values Loaded!";
public String noPermsText = "Sorry! In order to use this command, you need the following permission";
public String noPermsText = "Sorry! In order to use this command, you need the following permission: 'fs.reload'";

public StorageSubsystem(Main plugin) {
main = plugin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ public ItemStack assignTimeStamp(ItemStack item, int hoursUntilSpoilage) {
List<String> lore = new ArrayList<>();

lore.add("");
lore.add(ChatColor.WHITE + main.storage.createdText + ":");
lore.add(ChatColor.WHITE + main.storage.createdText);
lore.add(ChatColor.WHITE + "" + getDateString());
lore.add("");
lore.add(ChatColor.WHITE + "" + main.storage.expiryDateText + ":");
lore.add(ChatColor.WHITE + "" + main.storage.expiryDateText);
lore.add(ChatColor.WHITE + "" + getDateStringPlusTime(hoursUntilSpoilage));

meta.setLore(lore);
Expand Down

0 comments on commit 8d977c8

Please sign in to comment.