mirror of
https://github.com/songoda/EpicVouchers.git
synced 2025-02-15 19:21:26 +01:00
Merge branch 'development' into 'master'
Fix See merge request Songoda/epicvouchers!11
This commit is contained in:
commit
d5b5402462
@ -4,7 +4,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
name: "EpicVouchers"
|
name: "EpicVouchers"
|
||||||
path: "/builds/$CI_PROJECT_PATH"
|
path: "/builds/$CI_PROJECT_PATH"
|
||||||
version: "2.1"
|
version: "2.1.1"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
9
pom.xml
9
pom.xml
@ -3,20 +3,17 @@
|
|||||||
<artifactId>EpicVouchers</artifactId>
|
<artifactId>EpicVouchers</artifactId>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<version>maven-version-number</version>
|
<version>maven-version-number</version>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean package</defaultGoal>
|
<defaultGoal>clean install</defaultGoal>
|
||||||
|
<finalName>EpicLevels-${project.version}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.7.0</version>
|
<version>3.8.0</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
<compilerArgs>
|
|
||||||
<arg>-parameters</arg>
|
|
||||||
</compilerArgs>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
@ -7,14 +7,16 @@ import com.songoda.epicvouchers.libraries.inventory.FastInv;
|
|||||||
import com.songoda.epicvouchers.libraries.inventory.IconInv;
|
import com.songoda.epicvouchers.libraries.inventory.IconInv;
|
||||||
import com.songoda.epicvouchers.listeners.PlayerCommandListener;
|
import com.songoda.epicvouchers.listeners.PlayerCommandListener;
|
||||||
import com.songoda.epicvouchers.listeners.PlayerInteractListener;
|
import com.songoda.epicvouchers.listeners.PlayerInteractListener;
|
||||||
import com.songoda.epicvouchers.utils.*;
|
import com.songoda.epicvouchers.utils.ConfigWrapper;
|
||||||
|
import com.songoda.epicvouchers.utils.Methods;
|
||||||
|
import com.songoda.epicvouchers.utils.ServerVersion;
|
||||||
|
import com.songoda.epicvouchers.utils.SettingsManager;
|
||||||
import com.songoda.epicvouchers.utils.updateModules.LocaleModule;
|
import com.songoda.epicvouchers.utils.updateModules.LocaleModule;
|
||||||
import com.songoda.epicvouchers.voucher.CoolDownManager;
|
import com.songoda.epicvouchers.voucher.CoolDownManager;
|
||||||
import com.songoda.epicvouchers.voucher.Voucher;
|
import com.songoda.epicvouchers.voucher.Voucher;
|
||||||
import com.songoda.epicvouchers.voucher.VoucherExecutor;
|
import com.songoda.epicvouchers.voucher.VoucherExecutor;
|
||||||
import com.songoda.update.Plugin;
|
import com.songoda.update.Plugin;
|
||||||
import com.songoda.update.SongodaUpdate;
|
import com.songoda.update.SongodaUpdate;
|
||||||
import lombok.Getter;
|
|
||||||
import org.bstats.bukkit.Metrics;
|
import org.bstats.bukkit.Metrics;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -25,7 +27,6 @@ import org.bukkit.plugin.java.JavaPlugin;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
|
|
||||||
@Getter
|
|
||||||
public class EpicVouchers extends JavaPlugin {
|
public class EpicVouchers extends JavaPlugin {
|
||||||
|
|
||||||
private static EpicVouchers INSTANCE;
|
private static EpicVouchers INSTANCE;
|
||||||
@ -160,4 +161,39 @@ public class EpicVouchers extends JavaPlugin {
|
|||||||
Bukkit.getConsoleSender().sendMessage(Methods.format("&a============================="));
|
Bukkit.getConsoleSender().sendMessage(Methods.format("&a============================="));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ServerVersion getServerVersion() {
|
||||||
|
return this.serverVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CommandManager getCommandManager() {
|
||||||
|
return this.commandManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Connections getConnections() {
|
||||||
|
return this.connections;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CoolDownManager getCoolDowns() {
|
||||||
|
return this.coolDowns;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Locale getLocale() {
|
||||||
|
return this.locale;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SettingsManager getSettingsManager() {
|
||||||
|
return this.settingsManager;
|
||||||
|
}
|
||||||
|
|
||||||
|
public VoucherExecutor getVoucherExecutor() {
|
||||||
|
return this.voucherExecutor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ConfigWrapper getVouchersFile() {
|
||||||
|
return this.vouchersFile;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LinkedHashMap<String, Voucher> getVouchers() {
|
||||||
|
return this.vouchers;
|
||||||
|
}
|
||||||
}
|
}
|
@ -11,7 +11,10 @@ import org.bukkit.inventory.meta.*;
|
|||||||
import org.bukkit.potion.PotionEffect;
|
import org.bukkit.potion.PotionEffect;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A complete {@link ItemStack} inventory for FastInv (only works on 1.8+).
|
* A complete {@link ItemStack} inventory for FastInv (only works on 1.8+).
|
||||||
|
@ -12,7 +12,10 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.scheduler.BukkitTask;
|
import org.bukkit.scheduler.BukkitTask;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A fast API to easily create advanced GUI.
|
* A fast API to easily create advanced GUI.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package com.songoda.epicvouchers.libraries.inventory;
|
package com.songoda.epicvouchers.libraries.inventory;
|
||||||
|
|
||||||
import com.songoda.epicvouchers.libraries.ItemBuilder;
|
|
||||||
import com.songoda.epicvouchers.libraries.inventory.icons.Icon;
|
import com.songoda.epicvouchers.libraries.inventory.icons.Icon;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
@ -17,7 +17,8 @@ import java.util.List;
|
|||||||
import java.util.function.BiConsumer;
|
import java.util.function.BiConsumer;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
import static org.bukkit.Material.*;
|
import static org.bukkit.Material.*;
|
||||||
|
|
||||||
public abstract class PlayersMenu extends FastInv {
|
public abstract class PlayersMenu extends FastInv {
|
||||||
|
@ -10,7 +10,8 @@ import org.bukkit.event.inventory.ClickType;
|
|||||||
import java.util.function.BiConsumer;
|
import java.util.function.BiConsumer;
|
||||||
|
|
||||||
import static com.songoda.epicvouchers.libraries.AbstractAnvilGUI.AnvilSlot.INPUT_LEFT;
|
import static com.songoda.epicvouchers.libraries.AbstractAnvilGUI.AnvilSlot.INPUT_LEFT;
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
import static org.bukkit.Material.PAPER;
|
import static org.bukkit.Material.PAPER;
|
||||||
|
|
||||||
public class ListEntryIcon extends Icon {
|
public class ListEntryIcon extends Icon {
|
||||||
|
@ -55,7 +55,7 @@ public class PlayerInteractListener implements Listener {
|
|||||||
UUID uuid = player.getUniqueId();
|
UUID uuid = player.getUniqueId();
|
||||||
|
|
||||||
if (instance.getCoolDowns().isOnCoolDown(uuid)) {
|
if (instance.getCoolDowns().isOnCoolDown(uuid)) {
|
||||||
player.sendMessage(instance.getLocale().getMessage("event.general.coolDown", instance.getCoolDowns().getTime(uuid), voucher.getName(true)));
|
player.sendMessage(instance.getLocale().getMessage("event.general.cooldown", instance.getCoolDowns().getTime(uuid), voucher.getName(true)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,8 @@ public class PlayerInteractListener implements Listener {
|
|||||||
() -> {
|
() -> {
|
||||||
})
|
})
|
||||||
.open(player);
|
.open(player);
|
||||||
return;
|
} else {
|
||||||
|
instance.getVoucherExecutor().redeemVoucher(player, voucher, item, true, event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,8 @@ import org.bukkit.inventory.ItemStack;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import static com.songoda.epicvouchers.utils.Methods.format;
|
import static com.songoda.epicvouchers.utils.Methods.format;
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
import static org.bukkit.Material.BARRIER;
|
import static org.bukkit.Material.BARRIER;
|
||||||
|
|
||||||
public class ActionMenu extends FastInv {
|
public class ActionMenu extends FastInv {
|
||||||
|
@ -10,8 +10,8 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import static com.songoda.epicvouchers.utils.Methods.format;
|
import static com.songoda.epicvouchers.utils.Methods.format;
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
import static org.bukkit.Material.valueOf;
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
import static org.bukkit.Material.*;
|
import static org.bukkit.Material.*;
|
||||||
|
|
||||||
public class OptionMenu extends FastInv {
|
public class OptionMenu extends FastInv {
|
||||||
|
@ -3,15 +3,22 @@ package com.songoda.epicvouchers.menus;
|
|||||||
import com.songoda.epicvouchers.EpicVouchers;
|
import com.songoda.epicvouchers.EpicVouchers;
|
||||||
import com.songoda.epicvouchers.libraries.ItemBuilder;
|
import com.songoda.epicvouchers.libraries.ItemBuilder;
|
||||||
import com.songoda.epicvouchers.libraries.inventory.IconInv;
|
import com.songoda.epicvouchers.libraries.inventory.IconInv;
|
||||||
import com.songoda.epicvouchers.libraries.inventory.icons.*;
|
import com.songoda.epicvouchers.libraries.inventory.icons.Icon;
|
||||||
import com.songoda.epicvouchers.menus.sub.editor.*;
|
import com.songoda.epicvouchers.libraries.inventory.icons.StringIcon;
|
||||||
|
import com.songoda.epicvouchers.libraries.inventory.icons.StringListIcon;
|
||||||
|
import com.songoda.epicvouchers.libraries.inventory.icons.ToggleableIcon;
|
||||||
|
import com.songoda.epicvouchers.menus.sub.editor.EffectsMenu;
|
||||||
|
import com.songoda.epicvouchers.menus.sub.editor.ParticlesMenu;
|
||||||
|
import com.songoda.epicvouchers.menus.sub.editor.SoundsMenu;
|
||||||
|
import com.songoda.epicvouchers.menus.sub.editor.TitlesMenu;
|
||||||
import com.songoda.epicvouchers.voucher.Voucher;
|
import com.songoda.epicvouchers.voucher.Voucher;
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.inventory.ClickType;
|
import org.bukkit.event.inventory.ClickType;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
import static org.bukkit.Material.BOOK;
|
import static org.bukkit.Material.BOOK;
|
||||||
|
|
||||||
public class VoucherEditorMenu extends IconInv {
|
public class VoucherEditorMenu extends IconInv {
|
||||||
|
@ -9,7 +9,8 @@ import com.songoda.epicvouchers.menus.VoucherEditorMenu;
|
|||||||
import com.songoda.epicvouchers.voucher.Voucher;
|
import com.songoda.epicvouchers.voucher.Voucher;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
|
|
||||||
public class EffectsMenu extends IconInv {
|
public class EffectsMenu extends IconInv {
|
||||||
public EffectsMenu(EpicVouchers instance, Voucher voucher) {
|
public EffectsMenu(EpicVouchers instance, Voucher voucher) {
|
||||||
|
@ -9,7 +9,8 @@ import com.songoda.epicvouchers.menus.VoucherEditorMenu;
|
|||||||
import com.songoda.epicvouchers.voucher.Voucher;
|
import com.songoda.epicvouchers.voucher.Voucher;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
|
|
||||||
public class ParticlesMenu extends IconInv {
|
public class ParticlesMenu extends IconInv {
|
||||||
public ParticlesMenu(EpicVouchers instance, Voucher voucher) {
|
public ParticlesMenu(EpicVouchers instance, Voucher voucher) {
|
||||||
|
@ -11,7 +11,8 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.event.inventory.ClickType;
|
import org.bukkit.event.inventory.ClickType;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
|
|
||||||
public class SetItemMenu extends FastInv {
|
public class SetItemMenu extends FastInv {
|
||||||
|
|
||||||
|
@ -11,7 +11,8 @@ import com.songoda.epicvouchers.voucher.Voucher;
|
|||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.Sound;
|
import org.bukkit.Sound;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
|
|
||||||
public class SoundsMenu extends IconInv {
|
public class SoundsMenu extends IconInv {
|
||||||
public SoundsMenu(EpicVouchers instance, Voucher voucher) {
|
public SoundsMenu(EpicVouchers instance, Voucher voucher) {
|
||||||
|
@ -9,7 +9,8 @@ import com.songoda.epicvouchers.menus.VoucherEditorMenu;
|
|||||||
import com.songoda.epicvouchers.voucher.Voucher;
|
import com.songoda.epicvouchers.voucher.Voucher;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
|
||||||
import static org.bukkit.ChatColor.*;
|
import static org.bukkit.ChatColor.GRAY;
|
||||||
|
import static org.bukkit.ChatColor.YELLOW;
|
||||||
|
|
||||||
public class TitlesMenu extends IconInv {
|
public class TitlesMenu extends IconInv {
|
||||||
public TitlesMenu(EpicVouchers instance, Voucher voucher) {
|
public TitlesMenu(EpicVouchers instance, Voucher voucher) {
|
||||||
|
@ -4,8 +4,6 @@ import com.songoda.epicvouchers.EpicVouchers;
|
|||||||
import com.songoda.epicvouchers.events.ForceRedeemEvent;
|
import com.songoda.epicvouchers.events.ForceRedeemEvent;
|
||||||
import com.songoda.epicvouchers.events.VoucherReceiveEvent;
|
import com.songoda.epicvouchers.events.VoucherReceiveEvent;
|
||||||
import com.songoda.epicvouchers.utils.Methods;
|
import com.songoda.epicvouchers.utils.Methods;
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
@ -19,13 +17,12 @@ import org.bukkit.inventory.meta.ItemMeta;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import static com.songoda.epicvouchers.utils.Methods.format;
|
import static com.songoda.epicvouchers.utils.Methods.format;
|
||||||
import static org.bukkit.Material.PAPER;
|
import static org.bukkit.Material.PAPER;
|
||||||
|
|
||||||
@Getter
|
|
||||||
@Setter
|
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class Voucher {
|
public class Voucher {
|
||||||
|
|
||||||
@ -146,7 +143,7 @@ public class Voucher {
|
|||||||
public void give(CommandSender sender, List<Player> players, int amount) {
|
public void give(CommandSender sender, List<Player> players, int amount) {
|
||||||
String giveMessage = instance.getLocale().getMessage("command.give.send")
|
String giveMessage = instance.getLocale().getMessage("command.give.send")
|
||||||
.replaceAll("%player%", players.size() == 1 ? players.get(0).getName() : "everyone")
|
.replaceAll("%player%", players.size() == 1 ? players.get(0).getName() : "everyone")
|
||||||
.replaceAll("%voucher%", getName(true))
|
.replaceAll("%voucher%", Matcher.quoteReplacement(getName(true)))
|
||||||
.replaceAll("%amount%", String.valueOf(amount));
|
.replaceAll("%amount%", String.valueOf(amount));
|
||||||
|
|
||||||
for (Player player : players) {
|
for (Player player : players) {
|
||||||
@ -197,4 +194,278 @@ public class Voucher {
|
|||||||
return format(title);
|
return format(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return this.key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EpicVouchers getInstance() {
|
||||||
|
return this.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPermission() {
|
||||||
|
return this.permission;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Material getMaterial() {
|
||||||
|
return this.material;
|
||||||
|
}
|
||||||
|
|
||||||
|
public short getData() {
|
||||||
|
return this.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getCoolDown() {
|
||||||
|
return this.coolDown;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return this.name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getLore() {
|
||||||
|
return this.lore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isGlow() {
|
||||||
|
return this.glow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isConfirm() {
|
||||||
|
return this.confirm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isUnbreakable() {
|
||||||
|
return this.unbreakable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isHideAttributes() {
|
||||||
|
return this.hideAttributes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isRemoveItem() {
|
||||||
|
return this.removeItem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isFeedPlayer() {
|
||||||
|
return this.feedPlayer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isHealPlayer() {
|
||||||
|
return this.healPlayer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSmiteEffect() {
|
||||||
|
return this.smiteEffect;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getBroadcasts() {
|
||||||
|
return this.broadcasts;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getMessages() {
|
||||||
|
return this.messages;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getCommands() {
|
||||||
|
return this.commands;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTitleFadeIn() {
|
||||||
|
return this.titleFadeIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTitleStay() {
|
||||||
|
return this.titleStay;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getTitleFadeOut() {
|
||||||
|
return this.titleFadeOut;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSound() {
|
||||||
|
return this.sound;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSoundPitch() {
|
||||||
|
return this.soundPitch;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParticle() {
|
||||||
|
return this.particle;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getParticleAmount() {
|
||||||
|
return this.particleAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEffect() {
|
||||||
|
return this.effect;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEffectAmplifier() {
|
||||||
|
return this.effectAmplifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getEffectDuration() {
|
||||||
|
return this.effectDuration;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ItemStack getItemStack() {
|
||||||
|
return this.itemStack;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setPermission(String permission) {
|
||||||
|
this.permission = permission;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setMaterial(Material material) {
|
||||||
|
this.material = material;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setData(short data) {
|
||||||
|
this.data = data;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setCoolDown(int coolDown) {
|
||||||
|
this.coolDown = coolDown;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setLore(List<String> lore) {
|
||||||
|
this.lore = lore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setGlow(boolean glow) {
|
||||||
|
this.glow = glow;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setConfirm(boolean confirm) {
|
||||||
|
this.confirm = confirm;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setUnbreakable(boolean unbreakable) {
|
||||||
|
this.unbreakable = unbreakable;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setHideAttributes(boolean hideAttributes) {
|
||||||
|
this.hideAttributes = hideAttributes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setRemoveItem(boolean removeItem) {
|
||||||
|
this.removeItem = removeItem;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setFeedPlayer(boolean feedPlayer) {
|
||||||
|
this.feedPlayer = feedPlayer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setHealPlayer(boolean healPlayer) {
|
||||||
|
this.healPlayer = healPlayer;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setSmiteEffect(boolean smiteEffect) {
|
||||||
|
this.smiteEffect = smiteEffect;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setBroadcasts(List<String> broadcasts) {
|
||||||
|
this.broadcasts = broadcasts;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setMessages(List<String> messages) {
|
||||||
|
this.messages = messages;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setCommands(List<String> commands) {
|
||||||
|
this.commands = commands;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setActionBar(String actionBar) {
|
||||||
|
this.actionBar = actionBar;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setTitle(String title) {
|
||||||
|
this.title = title;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setSubTitle(String subTitle) {
|
||||||
|
this.subTitle = subTitle;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setTitleFadeIn(int titleFadeIn) {
|
||||||
|
this.titleFadeIn = titleFadeIn;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setTitleStay(int titleStay) {
|
||||||
|
this.titleStay = titleStay;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setTitleFadeOut(int titleFadeOut) {
|
||||||
|
this.titleFadeOut = titleFadeOut;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setSound(String sound) {
|
||||||
|
this.sound = sound;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setSoundPitch(int soundPitch) {
|
||||||
|
this.soundPitch = soundPitch;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setParticle(String particle) {
|
||||||
|
this.particle = particle;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setParticleAmount(int particleAmount) {
|
||||||
|
this.particleAmount = particleAmount;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setEffect(String effect) {
|
||||||
|
this.effect = effect;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setEffectAmplifier(int effectAmplifier) {
|
||||||
|
this.effectAmplifier = effectAmplifier;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setEffectDuration(int effectDuration) {
|
||||||
|
this.effectDuration = effectDuration;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Voucher setItemStack(ItemStack itemStack) {
|
||||||
|
this.itemStack = itemStack;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,14 +13,14 @@ interface.confirmsettings.cancelitemlore= "&cClick here if you want to cancel yo
|
|||||||
#Command Messages
|
#Command Messages
|
||||||
|
|
||||||
command.error.noplayer= "&7That user either does not exist or is not online"
|
command.error.noplayer= "&7That user either does not exist or is not online"
|
||||||
command.error.novoucher= "&cThat voucher does not exist.";
|
command.error.novoucher= "&cThat voucher does not exist."
|
||||||
command.error.notexist= "&7The command you entered does not exist or is spelt incorrectly."
|
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.error.notnumber= "&7Failed to parse that number into a valid amount."
|
||||||
command.reload.success= "&7Reloaded all config files and vouchers."
|
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.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.receive= "&7You have received the voucher &6%voucher% &7(&6x%amount%&7)."
|
||||||
command.give.cancelled= "&cEvent got cancelled."
|
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.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.list.list= "&7List of all vouchers: &6%list%&7."
|
||||||
|
|
||||||
#Event Messages
|
#Event Messages
|
||||||
|
Loading…
Reference in New Issue
Block a user