first commit
This commit is contained in:
commit
88c51ef7f7
56
pom.xml
Normal file
56
pom.xml
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>me.map</groupId>
|
||||
<artifactId>example</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<url>http://maven.apache.org</url>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>1.8</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
|
||||
<repository>
|
||||
<id>recoreh-repo</id>
|
||||
<url> https://git.recorehosting.com/maven/snapshots/ </url>
|
||||
</repository>
|
||||
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.16.5-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>me.map.ultimatekingdom</groupId>
|
||||
<artifactId>UltimateKingdom</artifactId>
|
||||
<version>0.18.0-BETA-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
</build>
|
||||
|
||||
</project>
|
40
src/main/java/me/map/example/ConnectionListener.java
Normal file
40
src/main/java/me/map/example/ConnectionListener.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
/**
|
||||
*
|
||||
* (C) Copyright MAP <info@recorehosting.com>
|
||||
*
|
||||
* This work is licensed under the Creative Commons
|
||||
* Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) License.
|
||||
**/
|
||||
package me.map.moduletest;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.player.PlayerLoginEvent;
|
||||
|
||||
import me.map.ultimatekingdom.API.module.Module;
|
||||
import me.map.ultimatekingdom.API.module.ModuleListener;
|
||||
|
||||
public class ConnectionListener extends ModuleListener {
|
||||
|
||||
public ConnectionListener(Module module)
|
||||
{
|
||||
super(module);
|
||||
this.module= module;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onLoginJoin(PlayerLoginEvent event)
|
||||
{
|
||||
|
||||
System.out.println("listener 1");
|
||||
|
||||
}
|
||||
}
|
49
src/main/java/me/map/example/ConnectionListener2.java
Normal file
49
src/main/java/me/map/example/ConnectionListener2.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
/**
|
||||
*
|
||||
* (C) Copyright MAP <info@recorehosting.com>
|
||||
*
|
||||
* This work is licensed under the Creative Commons
|
||||
* Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0) License.
|
||||
**/
|
||||
package me.map.moduletest;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.player.PlayerLoginEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
import me.map.ultimatekingdom.API.PluginConfig;
|
||||
import me.map.ultimatekingdom.API.UltimateKingdom;
|
||||
import me.map.ultimatekingdom.API.module.Module;
|
||||
import me.map.ultimatekingdom.API.module.ModuleListener;
|
||||
import me.map.ultimatekingdom.API.objects.Kingdom;
|
||||
import me.map.ultimatekingdom.API.objects.KingdomPlayer;
|
||||
|
||||
import org.bukkit.event.player.AsyncPlayerPreLoginEvent;
|
||||
|
||||
import org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result;
|
||||
import org.bukkit.event.player.PlayerJoinEvent;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
public class ConnectionListener2 extends ModuleListener {
|
||||
|
||||
|
||||
public ConnectionListener2(Module module)
|
||||
{
|
||||
super(module);
|
||||
this.module= module;
|
||||
}
|
||||
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onLoginJoi2(PlayerLoginEvent event)
|
||||
{
|
||||
System.out.println("listener 2");
|
||||
}
|
||||
}
|
17
src/main/java/me/map/example/ModuleTest.java
Normal file
17
src/main/java/me/map/example/ModuleTest.java
Normal file
|
@ -0,0 +1,17 @@
|
|||
package me.map.moduletest;
|
||||
|
||||
import me.map.ultimatekingdom.API.module.Java.JavaModule;
|
||||
|
||||
public class ModuleTest extends JavaModule {
|
||||
|
||||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
System.out.println("DIT IS EEN TEST TEST TEST");
|
||||
|
||||
registerListener(new ConnectionListener(this) );
|
||||
registerListener(new ConnectionListener2(this) );
|
||||
|
||||
}
|
||||
|
||||
}
|
6
src/main/resources/module.yml
Normal file
6
src/main/resources/module.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
name: ModuleTest
|
||||
version: 0.0.0-DEV
|
||||
author: MAP
|
||||
main: me.map.moduletest.ModuleTest
|
||||
softdepend: []
|
||||
depend: []
|
6
target/classes/module.yml
Normal file
6
target/classes/module.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
name: ModuleTest
|
||||
version: 0.0.0-DEV
|
||||
author: MAP
|
||||
main: me.map.moduletest.ModuleTest
|
||||
softdepend: []
|
||||
depend: []
|
|
@ -0,0 +1,3 @@
|
|||
/bouw/Example/src/main/java/me/map/example/ModuleTest.java
|
||||
/bouw/Example/src/main/java/me/map/example/ConnectionListener.java
|
||||
/bouw/Example/src/main/java/me/map/example/ConnectionListener2.java
|
Loading…
Reference in New Issue
Block a user