From 48fa50839208a0a67e5f9c4cebcabd4171e62cc9 Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 14 Mar 2016 10:51:20 +0100 Subject: [PATCH] README.md too difficult. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 551c11ef..f5aefe4a 100644 --- a/README.md +++ b/README.md @@ -7,27 +7,27 @@ Installation * Get [CraftBukkit] (http://wiki.bukkit.org/Setting_up_a_server) or [Spigot] (https://www.spigotmc.org/threads/buildtools-updates-information.42865/) * Download NoCheatPlus from either [BukkitDev (staff approved)] (http://dev.bukkit.org/server-mods/nocheatplus/files/) or [Jenkins (development versions)] (http://ci.md-5.net/job/NoCheatPlus/). * Drop the NoCheatPlus.jar in to your plugins folder. -* Start or /reload your CraftBukkit server. (Using /reload can have unwanted side effects with players still online.) +* Start your Spigot/CraftBukkit server. (Using /reload can have unwanted side effects with players still online, but also with complex plugins and cross-plugin dependencies, so we don't recommend it. Usually it should work with NCP.) Tips --------- -* Be sure that your CraftBukkit and NoCheatPlus versions match together. +* Be sure that your Spigot/CraftBukkit and NoCheatPlus versions match together. * Don't use tabs in the config.yml file. -* Use [ProtocolLib] (http://dev.bukkit.org/bukkit-plugins/protocollib) for full efficiency of the fight checks and other. +* Use [ProtocolLib] (http://dev.bukkit.org/bukkit-plugins/protocollib) for full efficiency of the fight checks and other. Using version of ProtocolLib that is supported by NCP is essential, as otherwise some checks will be disabled. * For compatibility with other plugins such as mcMMO, citizens and more check out [CompatNoCheatPlus] (http://dev.bukkit.org/server-mods/compatnocheatplus-cncp/). Compiling NoCheatPlus --------- +* NoCheatPlus is compiled for Java 6 (same as Minecraft/Spigot). * We use [Maven] (http://maven.apache.org/download.cgi) 3 to handle the dependencies. * You can compile it with this Maven goal: `mvn clean package`, if you don't want any dedicated CraftBukkit modules, or if you are lacking the jar files. If you do have all the dependencies, you can set the parameter `cbdedicated` to `true` and activate the profile `all` adding `-P all` to the goals (e.g. on Jenkins, for some setups setting the property may suffice). For more options, see the table below. If your specific needs are not met by the provided options, you can still build only using the compat module(s) that you need, e.g. by adjusting the build/dependency profiles or adding your own profile, which means changing/adding a profile both in the root pom.xml for modules to have and in NCPPlugin/pom.xml for the dependency inclusion. The preset profiles should be enough of a hint for that. If you add custom modules with a different package naming than `fr.neatmonster`, you might have to add the source inclusion to the NoCheatPlus/pom.xml as well. -* Jar files for the dedicated compat modules, which your local maven repository might be missing, can also be installed manually. +* Jar files for the dedicated compat modules, which your local maven repository might be missing, can be installed manually. Example for Eclipse with embedded maven: Add a new maven build run configuration, name it appropriately, e.g. ```Install CB 1.7.5```. Set goals to: ```install:install-file -Dfile= -DgroupId=org.bukkit -DartifactId=craftbukkit -Dversion=1.7.5-R0.1-SNAPSHOT -Dpackaging=jar``` On Windows the might look like: ```X:\...\craftbukkit\3042\craftbukkit-1.7.5-R0.1-20140408.020329-16.jar``` To let it run you might have to set the base directory, e.g. to ```${workspace_loc}```, it does not seem to have significance. Do set the correct version alongside the file name. On newer version of maven, you might do with much simplified goals, because the pom files inside the jars are parsed. -* NoCheatPlus is compiled for Java 6 (same as Minecraft/Spigot). All profiles for reference: