Merge branch 'development'

This commit is contained in:
Brianna 2020-04-21 12:38:16 -04:00
commit 7ae0467f51
3 changed files with 43 additions and 24 deletions

View File

@ -2,7 +2,7 @@
<groupId>com.songoda</groupId> <groupId>com.songoda</groupId>
<artifactId>EpicVouchers</artifactId> <artifactId>EpicVouchers</artifactId>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<version>2.1.16</version> <version>2.1.17</version>
<build> <build>
<defaultGoal>clean install</defaultGoal> <defaultGoal>clean install</defaultGoal>
<finalName>EpicVouchers-${project.version}</finalName> <finalName>EpicVouchers-${project.version}</finalName>
@ -91,6 +91,10 @@
<id>private</id> <id>private</id>
<url>https://repo.songoda.com/artifactory/private/</url> <url>https://repo.songoda.com/artifactory/private/</url>
</repository> </repository>
<repository>
<id>public</id>
<url>https://repo.songoda.com/artifactory/public/</url>
</repository>
</repositories> </repositories>
<dependencies> <dependencies>

View File

@ -23,6 +23,7 @@ import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.PluginManager;
import java.io.File;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -92,6 +93,8 @@ public class EpicVouchers extends SongodaPlugin {
manager.registerEvents(new PlayerInteractListener(this), this); manager.registerEvents(new PlayerInteractListener(this), this);
manager.registerEvents(new PlayerCommandListener(), this); manager.registerEvents(new PlayerCommandListener(), this);
if (!new File(this.getDataFolder(), "vouchers.yml").exists())
saveResource("vouchers.yml", false); saveResource("vouchers.yml", false);
vouchersConfig.load(); vouchersConfig.load();

View File

@ -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:
interface.confirmsettings.confirmitemname = "&2&lCONFIRM" confirmsettings:
interface.confirmsettings.confirmitemlore = "&aClick here if you want to confirm your action." title: '&6Confirmation'
interface.confirmsettings.cancelitemname = "&4&lCANCEL" confirmitemname: '&2&lCONFIRM'
interface.confirmsettings.cancelitemlore = "&cClick here if you want to cancel your action." 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:
command.error.novoucher = "&cThat voucher does not exist." error:
command.error.notexist = "&7The command you entered does not exist or is spelt incorrectly." noplayer: '&7That user either does not exist or is not online'
command.error.notnumber = "&7Failed to parse that number into a valid amount." novoucher: '&cThat voucher does not exist.'
command.reload.success = "&7Reloaded all config files and vouchers." notexist: '&7The command you entered does not exist or is spelt incorrectly.'
command.give.send = "&7You have given &6%player% &7the voucher &6%voucher% &7(&6x%amount%&7)." notnumber: '&7Failed to parse that number into a valid amount.'
command.give.receive = "&7You have received the voucher &6%voucher% &7(&6x%amount%&7)." reload:
command.give.cancelled = "&cEvent got cancelled." success: '&7Reloaded all config files and vouchers.'
command.force.send = "&7You have forced &6%player% &7to redeem the voucher &6%voucher% &7(&6x%amount%&7)." give:
command.list.list = "&7List of all vouchers: &6%list%&7." 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:
event.general.cooldown = "&7Please wait &6%time%&7 seconds before redeeming a new voucher." general:
nopermission: '&cYou do not have permission to do that.'
cooldown: '&7Please wait &6%time%&7 seconds before redeeming a new voucher.'