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

Commit ab85fc8

Browse files
author
Wulfspider
committed
Updated pom.xml, readme, plugin.yml, and added header.txt.
Added automatic license header checking and formatting. Formatted headers to be project specific. A little bit more formatting on misc files.
1 parent f173f7c commit ab85fc8

File tree

8 files changed

+235
-77
lines changed

8 files changed

+235
-77
lines changed

.gitignore

+63-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,63 @@
1-
/target/
1+
# Compiled source #
2+
###################
3+
bin
4+
lib
5+
out
6+
target
7+
*.com
8+
*.class
9+
*.dll
10+
*.exe
11+
*.o
12+
*.so
13+
14+
# Git #
15+
#######
16+
.git
17+
18+
# Packages #
19+
############
20+
*.7z
21+
*.dmg
22+
*.gz
23+
*.iso
24+
*.jar
25+
*.rar
26+
*.tar
27+
*.zip
28+
29+
# Logs and databases #
30+
######################
31+
*.log
32+
*.sql
33+
*.sqlite
34+
35+
# OS generated files #
36+
######################
37+
.DS_Store
38+
ehthumbs.db
39+
Icon?
40+
Thumbs.db
41+
42+
# Project files #
43+
#################
44+
.classpath
45+
.externalToolBuilders
46+
.project
47+
.settings
48+
MANIFEST.MF
49+
50+
# Netbeans files #
51+
##################
52+
build
53+
dist
54+
nbproject
55+
build.xml
56+
nb-configuration.xml
57+
58+
# IntelliJ IDEA files #
59+
#######################
60+
.idea
61+
*.iml
62+
*.ipr
63+
*.iws

HEADER.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
This file is part of ${name} <${url}>.
2+
3+
${name} is free software: you can redistribute it and/or modify
4+
it under the terms of the GNU General Public License as published by
5+
the Free Software Foundation, either version 3 of the License, or
6+
(at your option) any later version.
7+
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
GNU General Public License for more details.
12+
13+
You should have received a copy of the GNU General Public License
14+
along with this program. If not, see <http://www.gnu.org/licenses/>.

README.md

+13-15
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,23 @@
22

33
What is mmoMinecraft?
44
---------------------
5-
mmoMinecraft is an attempt to make an easy to configure and use suite of MMORPG related plugins for Spout and CraftBukkit based Minecarft servers.Server admin can install exactly which plugins they need
6-
knowing that they won't interfere with each other, and that they aren't forced to have a feature they don't want in order to gain a feature they do want.
5+
mmoMinecraft is an easy to configure and use suite of MMORPG related plugins for SpoutPlugin and Bukkit-based Minecraft servers. Server admin can install exactly which plugins they need knowing that they won't interfere with each other, and that they aren't forced into features they don't want.
76

8-
Copyright &copy; 2011, mmoMinecraftDev <[Website]>
9-
mmoMinecraft is licensed under [GNU GENERAL PUBLIC LICENSE Version 3][License]
7+
Copyright (c) 2011-2012, mmoMinecraftDev <[http://mmo.me.uk/][Website]>
108

11-
[![Donate to the mmoMinecraft suite][Donate Logo]][Donate]
9+
mmoMinecraft is licensed under [GNU General Public License Version 3][License]
10+
11+
[![Donate to the mmoMinecraft project][Donate Logo]][Donate]
1212

1313
Source
1414
------
15-
The latest and greatest source can be found on [GitHub].
16-
Download the latest builds on [Files].
17-
View the latest build status on [Jenkins].
18-
View the latest [Javadoc].
15+
The latest and greatest source can be found on [GitHub].
16+
Download the latest builds from [Jenkins].
1917

2018
Compiling
2119
---------
2220
All mmoMinecraft projects use Maven to handle their dependencies.
2321

24-
This requires Bukkit and other libraries (preferrably the latest version or source).
2522
* Install [Maven 2 or 3](http://maven.apache.org/download.html)
2623
* Checkout this repo and run: `mvn clean package`
2724

@@ -37,10 +34,11 @@ Coding and Pull Request Formatting
3734

3835
[Project Logo]: http://mmo.me.uk/images/mmoMinecraft.png
3936
[License]: http://www.gnu.org/licenses/gpl.html
40-
[Website]: http://mmo.me.uk/
41-
[GitHub]: https://github.com/mmoMinecraftDev/
42-
[Javadoc]: http://jd.mmo.me.uk/
43-
[Files]: http://files.mmo.me.uk/
44-
[Jenkins]: http://ci.mmo.me.uk/
37+
[Website]: http://mmo.me.uk
38+
[Forums]: http://forums.spout.org
39+
[GitHub]: https://github.com/mmoMinecraftDev/mmoMail
40+
[Javadoc]: http://jd.mmo.me.uk
41+
[Files]: http://files.mmo.me.uk
42+
[Jenkins]: http://build.spout.org/job/mmoMail
4543
[Donate]: https://www.paypal.com/cgi-bin/webscr?hosted_button_id=ECAE2696RB724&item_name=mmoMinecraft+donation+%28from+github.com%29&cmd=_s-xclick
4644
[Donate Logo]: http://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif

pom.xml

+129-47
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,196 @@
1-
<!--
2-
This file is part of mmoMinecraft (https://github.com/mmoMinecraftDev).
3-
4-
mmoMinecraft is free software: you can redistribute it and/or modify
5-
it under the terms of the GNU General Public License as published by
6-
the Free Software Foundation, either version 3 of the License, or
7-
(at your option) any later version.
8-
9-
This program is distributed in the hope that it will be useful,
10-
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
GNU General Public License for more details.
13-
14-
You should have received a copy of the GNU General Public License
15-
along with this program. If not, see <http://www.gnu.org/licenses/>.
16-
-->
17-
181
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
192
<modelVersion>4.0.0</modelVersion>
203

214
<!-- Project information -->
5+
<name>mmoMail</name>
226
<groupId>mmo.Mail</groupId>
237
<artifactId>mmoMail</artifactId>
24-
<name>mmoMail</name>
25-
<version>dev-SNAPSHOT</version>
8+
<version>0.1-SNAPSHOT</version>
269
<url>http://github.com/mmoMinecraftDev/mmoMail</url>
27-
<description>mmoMail provides a player mail system.</description>
10+
<description>Provides a simply player mail system.</description>
2811

2912
<properties>
3013
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14+
<bukkitVersion>1.2.5-R1.4-SNAPSHOT</bukkitVersion>
15+
<spoutVersion>dev-SNAPSHOT</spoutVersion>
16+
<coreVersion>2.3-SNAPSHOT</coreVersion>
3117
</properties>
3218

33-
<!-- License -->
19+
<!-- License -->
3420
<licenses>
3521
<license>
36-
<name>GNU GENERAL PUBLIC LICENSE Version 3</name>
22+
<name>GNU General Public License Version 3</name>
3723
<url>http://www.gnu.org/licenses/gpl.html</url>
3824
<distribution>repo</distribution>
3925
</license>
4026
</licenses>
4127

42-
<!-- Source code -->
28+
<!-- Source code -->
4329
<scm>
44-
<developerConnection>scm:git:[email protected]:mmoMinecraftDev/${project.name}.git</developerConnection>
45-
<connection>scm:git:git://github.com/mmoMinecraftDev/${project.name}.git</connection>
46-
<url>https://github.com/mmoMinecraftDev/${project.name}</url>
30+
<developerConnection>scm:git:[email protected]:mmoMinecraftDev/mmoMail.git</developerConnection>
31+
<connection>scm:git:git://github.com/mmoMinecraftDev/mmoMail.git</connection>
32+
<url>https://github.com/mmoMinecraftDev/mmoMail</url>
4733
</scm>
4834

49-
<!-- Continuous integration -->
35+
<!-- Continuous integration -->
5036
<ciManagement>
5137
<system>jenkins</system>
52-
<url>http://ci.mmo.me.uk/</url>
38+
<url>http://build.spout.org</url>
5339
</ciManagement>
5440

5541
<!-- Repository locations -->
5642
<repositories>
5743
<repository>
5844
<id>spout-repo</id>
59-
<name>Spout API</name>
60-
<url>http://repo.spout.org/</url>
61-
<layout>default</layout>
62-
</repository>
63-
<repository>
64-
<id>mmoMinecraft-repo</id>
65-
<name>mmoMinecraft API</name>
66-
<url>http://repo.mmo.me.uk/</url>
67-
<layout>default</layout>
45+
<url>http://repo.spout.org</url>
6846
</repository>
6947
</repositories>
48+
<pluginRepositories>
49+
<pluginRepository>
50+
<id>spout-plugins</id>
51+
<url>http://repo.spout.org</url>
52+
</pluginRepository>
53+
</pluginRepositories>
7054

7155
<!-- Dependencies -->
7256
<dependencies>
7357
<dependency>
7458
<groupId>org.bukkit</groupId>
7559
<artifactId>bukkit</artifactId>
76-
<version>1.2.5-R1.0</version>
60+
<version>${bukkitVersion}</version>
7761
<scope>provided</scope>
7862
</dependency>
7963
<dependency>
8064
<groupId>org.getspout</groupId>
8165
<artifactId>spoutpluginapi</artifactId>
82-
<version>dev-SNAPSHOT</version>
66+
<version>${spoutVersion}</version>
8367
<scope>provided</scope>
8468
</dependency>
8569
<dependency>
8670
<groupId>mmo.Core</groupId>
8771
<artifactId>mmoCore</artifactId>
88-
<version>dev-SNAPSHOT</version>
72+
<version>${coreVersion}</version>
8973
<scope>provided</scope>
9074
</dependency>
9175
</dependencies>
9276

9377
<!-- Build -->
9478
<build>
79+
<defaultGoal>clean package</defaultGoal>
80+
<!-- Resources -->
81+
<resources>
82+
<resource>
83+
<targetPath>.</targetPath>
84+
<filtering>false</filtering>
85+
<directory>${basedir}</directory>
86+
<includes>
87+
<include>LICENSE.txt</include>
88+
</includes>
89+
</resource>
90+
<resource>
91+
<targetPath>.</targetPath>
92+
<filtering>true</filtering>
93+
<directory>${basedir}/src/main/resources</directory>
94+
<includes>
95+
<include>plugin.yml</include>
96+
</includes>
97+
</resource>
98+
</resources>
9599
<plugins>
100+
<!-- License header formatting plugin -->
101+
<plugin>
102+
<groupId>com.mycila.maven-license-plugin</groupId>
103+
<artifactId>maven-license-plugin</artifactId>
104+
<version>1.10.b1</version>
105+
<executions>
106+
<execution>
107+
<phase>clean</phase>
108+
<goals>
109+
<goal>format</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
<configuration>
114+
<quiet>true</quiet>
115+
<encoding>UTF-8</encoding>
116+
<strictCheck>true</strictCheck>
117+
<header>${basedir}/HEADER.txt</header>
118+
<keywords>
119+
<keyword>${project.name}</keyword>
120+
<keyword>license</keyword>
121+
</keywords>
122+
<mapping>
123+
<java>SLASHSTAR_STYLE</java>
124+
</mapping>
125+
<properties>
126+
<name>${project.name}</name>
127+
<url>${project.url}</url>
128+
</properties>
129+
<includes>
130+
<include>src/main/java/**</include>
131+
<include>src/test/java/**</include>
132+
</includes>
133+
</configuration>
134+
</plugin>
135+
<!-- Version plugin -->
136+
<plugin>
137+
<groupId>com.sourcesense.maven</groupId>
138+
<artifactId>maven-nosnapshot-plugin</artifactId>
139+
<version>0.0.7-SNAPSHOT</version>
140+
<executions>
141+
<execution>
142+
<id>strip-snapshot</id>
143+
<phase>initialize</phase>
144+
<goals>
145+
<goal>strip</goal>
146+
</goals>
147+
</execution>
148+
</executions>
149+
<configuration>
150+
<version>${project.version}</version>
151+
<propertyName>releaseVersion</propertyName>
152+
</configuration>
153+
</plugin>
96154
<!-- Compile plugin -->
97155
<plugin>
98156
<groupId>org.apache.maven.plugins</groupId>
99157
<artifactId>maven-compiler-plugin</artifactId>
100-
<version>2.3.2</version>
158+
<version>2.4</version>
101159
<configuration>
102160
<source>1.6</source>
103161
<target>1.6</target>
104162
</configuration>
105163
</plugin>
106-
<!-- JAR creation plugin -->
107-
<plugin>
108-
<groupId>org.apache.maven.plugins</groupId>
109-
<artifactId>maven-jar-plugin</artifactId>
110-
<version>2.3.2</version>
111-
</plugin>
112164
</plugins>
165+
<pluginManagement>
166+
<plugins>
167+
<!-- Eclipse exclusions -->
168+
<plugin>
169+
<groupId>org.eclipse.m2e</groupId>
170+
<artifactId>lifecycle-mapping</artifactId>
171+
<version>1.0.0</version>
172+
<configuration>
173+
<lifecycleMappingMetadata>
174+
<pluginExecutions>
175+
<pluginExecution>
176+
<pluginExecutionFilter>
177+
<groupId>com.sourcesense.maven</groupId>
178+
<artifactId>maven-nosnapshot-plugin</artifactId>
179+
<versionRange>[0.0.7-SNAPSHOT,)</versionRange>
180+
<goals>
181+
<goal>strip</goal>
182+
</goals>
183+
</pluginExecutionFilter>
184+
<action>
185+
<execute />
186+
</action>
187+
</pluginExecution>
188+
</pluginExecutions>
189+
</lifecycleMappingMetadata>
190+
</configuration>
191+
</plugin>
192+
</plugins>
193+
</pluginManagement>
113194
</build>
195+
114196
</project>

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* This file is part of mmoMinecraft (https://github.com/mmoMinecraftDev).
2+
* This file is part of mmoMail <http://github.com/mmoMinecraftDev/mmoMail>.
33
*
4-
* mmoMinecraft is free software: you can redistribute it and/or modify
4+
* mmoMail is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* This file is part of mmoMinecraft (https://github.com/mmoMinecraftDev).
2+
* This file is part of mmoMail <http://github.com/mmoMinecraftDev/mmoMail>.
33
*
4-
* mmoMinecraft is free software: you can redistribute it and/or modify
4+
* mmoMail is free software: you can redistribute it and/or modify
55
* it under the terms of the GNU General Public License as published by
66
* the Free Software Foundation, either version 3 of the License, or
77
* (at your option) any later version.

0 commit comments

Comments
 (0)