Skip to content

Commit 38ec4aa

Browse files
authored
Merge pull request #21 from NerdNu/v3.0.0-Dev
V3.0.0 dev
2 parents f7f1de6 + 010c1a4 commit 38ec4aa

26 files changed

Lines changed: 2351 additions & 1190 deletions

config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ messages:
1212
completed: "&A{mod} completed your request."
1313
completed-message: "&A{mod} completed your request &F- &7{close_message}"
1414
deleted: "&ARequest {request_id} has been closed by you."
15+
request-process-error: "Error processing request #{request_id}: {request_message}"
16+
request-display-error: "Error displaying request #{request_id}"
1517
list:
1618
header: "&B---- {num_requests} Mod Requests ----"
1719
item: "&6{request_id}.{note_count}{admin}&6 [&A{mod}{status}&6] {time} {player} -&7 {request_message}"

pom.xml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>nu.nerd</groupId>
55
<artifactId>ModReq</artifactId>
6-
<version>2.0</version>
6+
<version>3.0.0</version>
77
<packaging>jar</packaging>
88
<name>ModReq</name>
9-
<description>Moderator Request Sytem</description>
9+
<description>Moderator Request System</description>
1010
<url>https://github.com/NerdNu/ModReq</url>
1111
<scm>
1212
<connection>scm:git:https://github.com/NerdNu/ModReq.git</connection>
@@ -19,18 +19,17 @@
1919

2020
<repositories>
2121
<repository>
22-
<id>spigot-repo</id>
23-
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
22+
<id>papermc</id>
23+
<url>https://repo.papermc.io/repository/maven-public/</url>
2424
</repository>
2525
</repositories>
2626

2727
<dependencies>
2828
<dependency>
29-
<groupId>org.spigotmc</groupId>
30-
<artifactId>spigot-api</artifactId>
31-
<version>1.18.1-R0.1-SNAPSHOT</version>
32-
<type>jar</type>
33-
<scope>compile</scope>
29+
<groupId>io.papermc.paper</groupId>
30+
<artifactId>paper-api</artifactId>
31+
<version>1.20-R0.1-SNAPSHOT</version>
32+
<scope>provided</scope>
3433
</dependency>
3534
<!--
3635
Must build locally from https://github.com/NerdNu/bukkit-migration-tools
@@ -44,9 +43,14 @@
4443
<version>0.2</version>
4544
</dependency>
4645
<dependency>
47-
<groupId>nu.nerd</groupId>
48-
<artifactId>BukkitEbean</artifactId>
49-
<version>1.0.1</version>
46+
<groupId>com.j256.ormlite</groupId>
47+
<artifactId>ormlite-jdbc</artifactId>
48+
<version>6.1</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.xerial</groupId>
52+
<artifactId>sqlite-jdbc</artifactId>
53+
<version>3.46.0.0</version>
5054
</dependency>
5155
</dependencies>
5256

@@ -85,7 +89,7 @@
8589
<plugin>
8690
<groupId>org.apache.maven.plugins</groupId>
8791
<artifactId>maven-shade-plugin</artifactId>
88-
<version>3.3.0-SNAPSHOT</version>
92+
<version>3.5.3</version>
8993
<executions>
9094
<execution>
9195
<phase>package</phase>
@@ -100,12 +104,14 @@
100104
<includes>
101105
<include>org.gestern:bukkit-migration-tools:jar:*</include>
102106
<include>nu.nerd:BukkitEbean:jar:*</include>
107+
<include>com.j256.ormlite:ormlite-jdbc:jar:*</include>
108+
<include>org.xerial:sqlite-jdbc:jar:*</include>
103109
</includes>
104110
</artifactSet>
105111
<relocations>
106112
<relocation>
107-
<pattern>nu.nerd.BukkitEbean</pattern>
108-
<shadedPattern>nu.nerd.modreq.BukkitEbean</shadedPattern>
113+
<pattern>com.j256.ormlite</pattern>
114+
<shadedPattern>nu.nerd.modreq.ormlite</shadedPattern>
109115
</relocation>
110116
</relocations>
111117
</configuration>
@@ -129,7 +135,7 @@
129135
<plugin>
130136
<groupId>org.apache.maven.plugins</groupId>
131137
<artifactId>maven-compiler-plugin</artifactId>
132-
<version>3.8.1</version>
138+
<version>3.13.0</version>
133139
<configuration>
134140
<release>17</release>
135141
<annotationProcessorPaths>

src/nu/nerd/modreq/Configuration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class Configuration {
1919
public String GENERAL__COMPLETED;
2020
public String GENERAL__COMPLETED_MESSAGE;
2121
public String GENERAL__DELETED;
22+
public String GENERAL__PERMISSION_ERROR;
2223
public String GENERAL__LIST__HEADER;
2324
public String GENERAL__LIST__ITEM;
2425
public String GENERAL__LIST__FOOTER;
@@ -72,6 +73,7 @@ public void load() {
7273
GENERAL__COMPLETED_MESSAGE = plugin.getConfig().getString("messages.general.completed-message");
7374
GENERAL__DELETED = plugin.getConfig().getString("messages.general.deleted");
7475
GENERAL__PAGE_ERROR = plugin.getConfig().getString("messages.general.page-error");
76+
GENERAL__PERMISSION_ERROR = plugin.getConfig().getString("messages.general.permission-error");
7577
GENERAL__SEARCH_ERROR = plugin.getConfig().getString("messages.general.search-error");
7678
GENERAL__ITEM__DETAILS = plugin.getConfig().getString("messages.general.item.details");
7779
GENERAL__ITEM__HEADER_CLAIMED = plugin.getConfig().getString("messages.general.item.header-claimed");

0 commit comments

Comments
 (0)