From 7941f12bb0d196d52d80397091cbe8e070d4cb54 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sat, 1 Feb 2020 06:56:27 -0500 Subject: [PATCH 1/5] Update language files. --- src/main/resources/en_US.lang | 56 +++++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 22 deletions(-) diff --git a/src/main/resources/en_US.lang b/src/main/resources/en_US.lang index 1b0cfad..f5bdb41 100644 --- a/src/main/resources/en_US.lang +++ b/src/main/resources/en_US.lang @@ -1,29 +1,41 @@ -#General Messages +# General Messages -general.nametag.prefix = "&8[&6EpicVouchers&8] " +general: + nametag: + prefix: '&8[&6EpicVouchers&8] ' -#Interface Messages +# Interface Messages -interface.confirmsettings.title = "&6Confirmation" -interface.confirmsettings.confirmitemname = "&2&lCONFIRM" -interface.confirmsettings.confirmitemlore = "&aClick here if you want to confirm your action." -interface.confirmsettings.cancelitemname = "&4&lCANCEL" -interface.confirmsettings.cancelitemlore = "&cClick here if you want to cancel your action." +interface: + confirmsettings: + title: '&6Confirmation' + confirmitemname: '&2&lCONFIRM' + confirmitemlore: '&aClick here if you want to confirm your action.' + cancelitemname: '&4&lCANCEL' + cancelitemlore: '&cClick here if you want to cancel your action.' -#Command Messages +# Command Messages -command.error.noplayer = "&7That user either does not exist or is not online" -command.error.novoucher = "&cThat voucher does not exist." -command.error.notexist = "&7The command you entered does not exist or is spelt incorrectly." -command.error.notnumber = "&7Failed to parse that number into a valid amount." -command.reload.success = "&7Reloaded all config files and vouchers." -command.give.send = "&7You have given &6%player% &7the voucher &6%voucher% &7(&6x%amount%&7)." -command.give.receive = "&7You have received the voucher &6%voucher% &7(&6x%amount%&7)." -command.give.cancelled = "&cEvent got cancelled." -command.force.send = "&7You have forced &6%player% &7to redeem the voucher &6%voucher% &7(&6x%amount%&7)." -command.list.list = "&7List of all vouchers: &6%list%&7." +command: + error: + noplayer: '&7That user either does not exist or is not online' + novoucher: '&cThat voucher does not exist.' + notexist: '&7The command you entered does not exist or is spelt incorrectly.' + notnumber: '&7Failed to parse that number into a valid amount.' + reload: + success: '&7Reloaded all config files and vouchers.' + give: + send: '&7You have given &6%player% &7the voucher &6%voucher% &7(&6x%amount%&7).' + receive: '&7You have received the voucher &6%voucher% &7(&6x%amount%&7).' + cancelled: '&cEvent got cancelled.' + force: + send: '&7You have forced &6%player% &7to redeem the voucher &6%voucher% &7(&6x%amount%&7).' + list: + list: '&7List of all vouchers: &6%list%&7. -#Event Messages +# Event Messages -event.general.nopermission = "&cYou do not have permission to do that." -event.general.cooldown = "&7Please wait &6%time%&7 seconds before redeeming a new voucher." \ No newline at end of file +event: + general: + nopermission: '&cYou do not have permission to do that.' + cooldown: '&7Please wait &6%time%&7 seconds before redeeming a new voucher.' From 771be1ac6cf02e1486194ceb6fd91b6ea69fab61 Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 16 Mar 2020 14:52:47 -0400 Subject: [PATCH 2/5] Added Public repo --- pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pom.xml b/pom.xml index f5c5b42..447b4f8 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,10 @@ private https://repo.songoda.com/artifactory/private/ + + public + https://repo.songoda.com/artifactory/public/ + From ac7ac899b72bf32792d7df827762baf700e0c6ab Mon Sep 17 00:00:00 2001 From: Brianna Date: Sat, 11 Apr 2020 07:44:04 -0400 Subject: [PATCH 3/5] Check for the vouchers file before saving it. --- src/main/java/com/songoda/epicvouchers/EpicVouchers.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epicvouchers/EpicVouchers.java b/src/main/java/com/songoda/epicvouchers/EpicVouchers.java index 6ce9f0a..a874598 100644 --- a/src/main/java/com/songoda/epicvouchers/EpicVouchers.java +++ b/src/main/java/com/songoda/epicvouchers/EpicVouchers.java @@ -23,6 +23,7 @@ import org.bukkit.Material; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.plugin.PluginManager; +import java.io.File; import java.util.Collections; import java.util.List; @@ -92,7 +93,9 @@ public class EpicVouchers extends SongodaPlugin { manager.registerEvents(new PlayerInteractListener(this), this); manager.registerEvents(new PlayerCommandListener(), this); - saveResource("vouchers.yml", false); + + if (!new File(this.getDataFolder(), "vouchers.yml").exists()) + saveResource("vouchers.yml", false); vouchersConfig.load(); loadVouchersFromFile(); From 0fe9d1840189c544e5a2774a6aa0b5525e91fbd3 Mon Sep 17 00:00:00 2001 From: Annie Date: Tue, 14 Apr 2020 19:19:23 +0000 Subject: [PATCH 4/5] Update en_US.lang, fixed missing apostrophe --- src/main/resources/en_US.lang | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/en_US.lang b/src/main/resources/en_US.lang index f5bdb41..0803bd8 100644 --- a/src/main/resources/en_US.lang +++ b/src/main/resources/en_US.lang @@ -31,7 +31,7 @@ command: force: send: '&7You have forced &6%player% &7to redeem the voucher &6%voucher% &7(&6x%amount%&7).' list: - list: '&7List of all vouchers: &6%list%&7. + list: '&7List of all vouchers: &6%list%&7.' # Event Messages From 8c670a0995756894f525c8ccfb8b322426b3f7f7 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sat, 11 Apr 2020 07:50:45 -0400 Subject: [PATCH 5/5] version 2.1.17 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 447b4f8..2178b6a 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ com.songoda EpicVouchers 4.0.0 - 2.1.16 + 2.1.17 clean install EpicVouchers-${project.version}