1
0
mirror of https://e.coding.net/circlecloud/BungeeCordAntiCheat.git synced 2024-12-26 07:38:52 +00:00

init project...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-07-31 22:24:13 +08:00
commit 4aeac6e372
5 changed files with 114 additions and 0 deletions

40
.gitignore vendored Normal file
View File

@ -0,0 +1,40 @@
# Eclipse stuff
/.classpath
/.project
/.settings
# netbeans
/nbproject
# we use maven!
/build.xml
# maven
/target
/repo
# vim
.*.sw[a-p]
# various other potential build files
/build
/bin
/dist
/manifest.mf
/world
# Mac filesystem dust
*.DS_Store
# intellij
*.iml
*.ipr
*.iws
.idea/
# Project Stuff
/src/main/resources/Soulbound
# Atlassian Stuff
/atlassian-ide-plugin.xml

40
pom.xml Normal file
View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft.BungeeCordAntiCheat</groupId>
<artifactId>BungeeCordAntiCheat</artifactId>
<version>0.1</version>
<repositories>
<repository>
<id>bungeecord-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
<build>
<finalName>${project.name}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.8-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@ -0,0 +1,12 @@
package cn.citycraft.BungeeCordAntiCheat;
import net.md_5.bungee.api.plugin.Plugin;
public class BungeeCordAntiCheat extends Plugin {
@Override
public void onEnable() {
getProxy().getPluginManager().registerListener(this, new BungeeCordAntiCheatListener());
}
}

View File

@ -0,0 +1,18 @@
package cn.citycraft.BungeeCordAntiCheat;
import java.util.Map.Entry;
import net.md_5.bungee.api.connection.ProxiedPlayer;
import net.md_5.bungee.api.event.PostLoginEvent;
import net.md_5.bungee.api.plugin.Listener;
import net.md_5.bungee.event.EventHandler;
public class BungeeCordAntiCheatListener implements Listener {
@EventHandler
public void onServerConnected(final PostLoginEvent event) {
ProxiedPlayer p = event.getPlayer();
for (Entry<String, String> list : p.getModList().entrySet()) {
System.out.println("key: " + list.getValue() + " value: " + list.getValue());
}
}
}

View File

@ -0,0 +1,4 @@
name: BungeeCordAntiCheat
main: cn.citycraft.BungeeCordAntiCheat.BungeeCordAntiCheat
version: 0.1
author: Mr_jtb