Commit c0bf4fd5 authored by BertTowne's avatar BertTowne

Add new ShopSidebarModule types

parent 98eec389
......@@ -5,7 +5,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</parent>
<artifactId>CubedPay-bukkit</artifactId>
......@@ -21,7 +21,7 @@
<dependency>
<groupId>co.melondev</groupId>
<artifactId>CubedPay-common</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
......
......@@ -5,7 +5,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</parent>
<artifactId>CubedPay-bungeecord</artifactId>
......@@ -21,7 +21,7 @@
<dependency>
<groupId>co.melondev</groupId>
<artifactId>CubedPay-common</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</parent>
<artifactId>CubedPay-common</artifactId>
......
......@@ -5,8 +5,8 @@ import java.util.Arrays;
public class ShopPackageCondition {
public enum Type {
BROUGHT_ANY,
BROUGHT;
BROUGHT_ANY, // BOUGHT ANY
BROUGHT; // BOUGHT ONE
public static Type findById(String id) {
return Arrays.stream(values()).filter(type -> type.name().equalsIgnoreCase(id))
......@@ -16,7 +16,7 @@ public class ShopPackageCondition {
private String id;
private Type type;
private String data;
private String data; // package
public String getId() {
return id;
......
......@@ -12,7 +12,10 @@ public class ShopSidebarModule {
PROMOTED,
CART,
ACCOUNT,
TEXT;
TEXT,
RECENT_PURCHASE,
TOP_PURCHASER,
MOST_POPULAR;
public static Type findById(String id) {
return Arrays.stream(values()).filter(status -> status.name().equalsIgnoreCase(id))
......
......@@ -4,7 +4,7 @@
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
<packaging>pom</packaging>
<properties>
......
......@@ -5,7 +5,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</parent>
<artifactId>CubedPay-sponge</artifactId>
......@@ -21,7 +21,7 @@
<dependency>
<groupId>co.melondev</groupId>
<artifactId>CubedPay-common</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</dependency>
<dependency>
<groupId>org.spongepowered</groupId>
......
......@@ -19,7 +19,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@Plugin(id = "cubedpayplugin", name = "CubedPayPlugin", version = "0.6.2", authors = {"Melon Development"}, url = "https://cubedpay.com/")
@Plugin(id = "cubedpayplugin", name = "CubedPayPlugin", version = "0.6.3", authors = {"Melon Development"}, url = "https://cubedpay.com/")
public class CubedPayPlugin {
private static CubedPayAPI api;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment