Move most code to NCPCore, removes NCPCompat.

Factories are now on NCPPlugin level, thus all the core stuff can be in
one module, giving better source code browsing.

Updates has been moved into an updates package, because there is to be
expected more content, and to make utilities less fat.

To indicate the direction, the basic infra-structure has been added to
allow adding components to the DefaultComponentFactory. Further
processQueuedSubComponents is now called after each components adding in
order to allow more flexible registry features.
This commit is contained in:
asofold 2013-05-22 12:24:48 +02:00
parent 463700cb3a
commit ce834675d7
215 changed files with 94 additions and 111 deletions

View File

@ -1,32 +0,0 @@
<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>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<packaging>jar</packaging>
<name>NCPCompat</name>
<version>static</version>
<parent>
<groupId>fr.neatmonster</groupId>
<artifactId>nocheatplus-parent</artifactId>
<version>static</version>
</parent>
<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.4.7-R1.0</version>
</dependency>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcommons</artifactId>
<version>static</version>
</dependency>
</dependencies>
<description>API for the compatibility modules. Uses Bukkit. In fact this is the base of NCP that needs Bukkit but just not much more.
Version updating is done for NCPPlugin mainly, expect the other poms version to change randomly rather.</description>
</project>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>

View File

@ -16,7 +16,7 @@
<dependencies>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcore</artifactId>
<version>static</version>
</dependency>
<dependency>
@ -26,7 +26,7 @@
</dependency>
</dependencies>
<description>Compatibility for the developement version (latest).
<description>Compatibility for the development version (latest of the supported Minecraft versions).
Version updating is done for NCPPlugin mainly, expect the other poms version to change randomly rather.</description>
</project>

View File

@ -21,12 +21,12 @@
</dependency>
<dependency>
<groupId>fr.neatmonster</groupId>
<artifactId>ncpcompat</artifactId>
<artifactId>ncpcommons</artifactId>
<version>static</version>
</dependency>
</dependencies>
<description>Core components and checks implementations. This contains about everything, just not the component/compat factories and not the plugin itself. NCPCore allows to add more modules/components that use check-specific classes to be added in the factories on NCPPlugin level. Later checks might be put between this and the plugin, some component setup might be put to compat or between compat and this.
<description>Core components and checks implementations. This contains about everything, just not the component/compat factories and not the plugin itself. NCPCore allows to add more modules/components that use check-specific classes to be added in the factories on NCPPlugin level.
Version updating is done for NCPPlugin mainly, expect the other poms version to change randomly rather.</description>
</project>

View File

@ -3,7 +3,6 @@ package fr.neatmonster.nocheatplus.checks.fight;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import fr.neatmonster.nocheatplus.NoCheatPlus;
import fr.neatmonster.nocheatplus.checks.Check;
import fr.neatmonster.nocheatplus.checks.CheckType;
import fr.neatmonster.nocheatplus.utilities.CheckUtils;
@ -183,8 +182,8 @@ public class GodMode extends Check {
if (player.getHealth() <= 0 && player.isDead())
try {
// Schedule a task to be executed in roughly 1.5 seconds.
final NoCheatPlus plugin = (NoCheatPlus) Bukkit.getPluginManager().getPlugin("NoCheatPlus");
Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
// TODO: Get plugin otherwise !?
Bukkit.getScheduler().scheduleSyncDelayedTask(Bukkit.getPluginManager().getPlugin("NoCheatPlus"), new Runnable() {
@Override
public void run() {
try {

Some files were not shown because too many files have changed in this diff Show More