Skip to content

Commit

Permalink
UndineMailer v1.9.2 : Added "api-version: 1.13"
Browse files Browse the repository at this point in the history
  • Loading branch information
ucchyocean committed Jul 16, 2019
1 parent 5f187bb commit f457c20
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.bitbucket.ucchy</groupId>
<artifactId>UndineMailer</artifactId>
<version>1.9.1</version>
<version>1.9.2</version>
<description></description>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ protected static void showOKCancelButton(
protected static String getItemDesc(ItemStack item) {
// return item.getDurability() == 0 ? item.getType().toString() :
// item.getType().toString() + ":" + item.getDurability();
return item.serialize().toString();
// return item.serialize().toString();
return item != null ? item.getType().toString() : "null";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void runCommand(CommandSender sender, String label, String[] args) {

// 情報表示
String description = UndineCommandUtil.getItemDesc(hand);
String isTradable = Messages.get("Yes");
String isTradable = Messages.get("Yes"); // すべてのアイテムが取引可能
sender.sendMessage(Messages.get("InformationItemDetail",
new String[]{"%desc", "%tradable"},
new String[]{description, isTradable}));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ welcomeMailDelaySeconds: 30
# Attachment items of welcome mail.
welcomeMailAttachments:
attachment1:
material: STONE_SPADE
material: STONE_SHOVEL
attachment2:
material: STONE_PICKAXE
attachment3:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config_ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ welcomeMailDelaySeconds: 30
# ウェルカムメールの添付アイテム設定です。
welcomeMailAttachments:
attachment1:
material: STONE_SPADE
material: STONE_SHOVEL
attachment2:
material: STONE_PICKAXE
attachment3:
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ main: org.bitbucket.ucchy.undine.UndineMailer
description: UndineMailer - Mail Plugin
softdepend: [Vault,PermissionsEx]
author: ucchy
api-version: 1.13

commands:
mail:
Expand Down

0 comments on commit f457c20

Please sign in to comment.