Skip to content

Commit b31104c

Browse files
committed
Initial commit.
0 parents  commit b31104c

File tree

8 files changed

+188
-0
lines changed

8 files changed

+188
-0
lines changed

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Ignore everything
2+
/*
3+
/*/
4+
5+
# Except These
6+
!/LICENSE.txt
7+
!/README.md
8+
!/header.txt
9+
!/.gitignore
10+
!/pom.xml
11+
!/src/

LICENSE.txt

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) UnoModding <https://github.com/UnoModding>
4+
Copyright (c) contributors
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

header.txt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* This file is part of Hawk, a CanaryMod plugin, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) UnoModding <https://github.com/UnoModding>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/

pom.xml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<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">
2+
<modelVersion>4.0.0</modelVersion>
3+
4+
<groupId>unomodding.canary</groupId>
5+
<artifactId>hawk</artifactId>
6+
7+
<name>Hawk</name>
8+
<version>0.1</version>
9+
<description>General purpose canary plugin</description>
10+
<inceptionYear>2014</inceptionYear>
11+
12+
<organization>
13+
<name>UnoModding</name>
14+
<url>https://github.com/UnoModding</url>
15+
</organization>
16+
17+
<properties>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
</properties>
20+
21+
<repositories>
22+
<repository>
23+
<id>vi-repo</id>
24+
<url>http://repo.visualillusionsent.net/repository/public</url>
25+
</repository>
26+
</repositories>
27+
28+
<dependencies>
29+
<dependency>
30+
<groupId>net.canarymod</groupId>
31+
<artifactId>CanaryLib</artifactId>
32+
<version>[1.0-RC-4-SNAPSHOT,)</version> <!-- Always at latest dev build -->
33+
<scope>provided</scope>
34+
</dependency>
35+
</dependencies>
36+
</project>

readme.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Hawk
2+
=======================
3+
4+
### What is it?
5+
Hawk is a general purpose plugin for CanaryMod, sort of like Essentials for Bukkit.
6+
7+
### License
8+
I have chosen the MIT license for this project.
9+
10+
### Links
11+
[CanaryMod](https://github.com/CanaryModTeam/CanaryMod)
12+
13+
[CanaryLib](https://github.com/CanaryModTeam/CanaryLib)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* This file is part of Hawk, a CanaryMod plugin, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) UnoModding <https://github.com/UnoModding>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package unomodding.canary.hawk;
26+
27+
import net.canarymod.Canary;
28+
import net.canarymod.commandsys.CommandDependencyException;
29+
import net.canarymod.plugin.Plugin;
30+
31+
public class Hawk extends Plugin {
32+
@Override
33+
public boolean enable() {
34+
// Enable Commands
35+
try {
36+
Canary.commands().registerCommands(new HawkCommandListener(), this, true);
37+
} catch (CommandDependencyException e) {
38+
e.printStackTrace();
39+
}
40+
return true;
41+
}
42+
43+
@Override
44+
public void disable() {
45+
46+
}
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* This file is part of Hawk, a CanaryMod plugin, licensed under the MIT License (MIT).
3+
*
4+
* Copyright (c) UnoModding <https://github.com/UnoModding>
5+
* Copyright (c) contributors
6+
*
7+
* Permission is hereby granted, free of charge, to any person obtaining a copy
8+
* of this software and associated documentation files (the "Software"), to deal
9+
* in the Software without restriction, including without limitation the rights
10+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
* copies of the Software, and to permit persons to whom the Software is
12+
* furnished to do so, subject to the following conditions:
13+
*
14+
* The above copyright notice and this permission notice shall be included in
15+
* all copies or substantial portions of the Software.
16+
*
17+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
* THE SOFTWARE.
24+
*/
25+
package unomodding.canary.hawk;
26+
27+
import net.canarymod.commandsys.CommandListener;
28+
29+
public class HawkCommandListener implements CommandListener {
30+
31+
}

src/main/resources/Canary.inf

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name=Hawk
2+
main-class=unomodding.canary.hawk
3+
author=UnoModding
4+
version=0.1

0 commit comments

Comments
 (0)