Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit f173f7c

Browse files
Chris SandersChris Sanders
Chris Sanders
authored and
Chris Sanders
committed
Update for Bukkit 1.2.5-R1.0 as well as formatting.
Signed-off-by: Chris Sanders <[email protected]>
1 parent 521e612 commit f173f7c

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5757
<repository>
5858
<id>spout-repo</id>
5959
<name>Spout API</name>
60-
<url>http://repo.getspout.org/</url>
60+
<url>http://repo.spout.org/</url>
6161
<layout>default</layout>
6262
</repository>
6363
<repository>
@@ -73,7 +73,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7373
<dependency>
7474
<groupId>org.bukkit</groupId>
7575
<artifactId>bukkit</artifactId>
76-
<version>1.0.0-R1-SNAPSHOT</version>
76+
<version>1.2.5-R1.0</version>
7777
<scope>provided</scope>
7878
</dependency>
7979
<dependency>

src/main/java/mmo/Mail/MMOMail.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818

1919
import java.util.ArrayList;
2020
import java.util.List;
21+
2122
import mmo.Core.MMOPlugin;
2223
import mmo.Core.util.EnumBitSet;
24+
2325
import org.bukkit.command.Command;
2426
import org.bukkit.command.CommandSender;
2527
import org.bukkit.entity.Player;
26-
import org.bukkit.util.config.Configuration;
2728

2829
public class MMOMail extends MMOPlugin {
29-
3030
public Mail mail;
3131

3232
@Override
@@ -41,10 +41,6 @@ public void onEnable() {
4141
mail = new Mail(this);
4242
}
4343

44-
@Override
45-
public void loadConfiguration(Configuration cfg) {
46-
}
47-
4844
@Override
4945
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
5046
if (!(sender instanceof Player)) {

src/main/java/mmo/Mail/Mail.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818

1919
import java.util.ArrayList;
2020
import java.util.Iterator;
21+
22+
import mmo.Core.MMO;
23+
2124
import org.bukkit.Material;
2225
import org.bukkit.Server;
2326
import org.bukkit.entity.Player;
24-
import mmo.Core.MMO;
2527

2628
public class Mail {
27-
2829
public MMOMail plugin;
2930
public Server server;
3031
public MMO mmo;

src/main/java/mmo/Mail/MailDB.java

+7-11
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,26 @@
1616
*/
1717
package mmo.Mail;
1818

19-
import com.avaje.ebean.validation.NotEmpty;
20-
import com.avaje.ebean.validation.NotNull;
2119
import javax.persistence.Entity;
2220
import javax.persistence.Id;
2321
import javax.persistence.Table;
2422

23+
import com.avaje.ebean.validation.NotEmpty;
24+
import com.avaje.ebean.validation.NotNull;
25+
2526
@Entity()
2627
@Table(name = "mmo_Mail")
2728
public class MailDB {
28-
2929
@Id
3030
@NotNull
3131
@NotEmpty
3232
private String sender;
33-
3433
@NotNull
3534
private String receiver;
36-
3735
@NotNull
3836
private String message;
39-
4037
@NotNull
4138
private int messageID = 0;
42-
4339
private boolean read = false;
4440

4541
public String getSender() {
@@ -57,15 +53,15 @@ public String getReceiver() {
5753
public void setReceiver(String receiver) {
5854
this.receiver = receiver;
5955
}
60-
56+
6157
public String getMessage() {
62-
return message;
58+
return message;
6359
}
6460

6561
public void setMessage(String message) {
66-
this.message = message;
62+
this.message = message;
6763
}
68-
64+
6965
public boolean getRead() {
7066
return read;
7167
}

0 commit comments

Comments
 (0)