Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
Go to file
Tom Miller fe024923cf
We can optimize a significant portion of LookClose's findNewTarget method with some changes: (#2103)
-Build the list of all potential Players and THEN sort by distance. A good chunk of the method's time was spend sorting things it didn't need to.
-Second, reorder the player checks for best performance, where getNPC() is the cheapest check and isPluginVanished is the most expensive check.

In somewhat minimal testing, these changes almost dropped findNewTarget off of my profiling entirely
2020-04-14 01:57:20 +08:00
.github Create FUNDING.yml 2019-10-28 23:39:43 +08:00
dist Merge moduled trait code and discontinue building of 1.10 2019-12-12 00:13:54 +08:00
main We can optimize a significant portion of LookClose's findNewTarget method with some changes: (#2103) 2020-04-14 01:57:20 +08:00
v1_8_R3 Fix compile error 2020-04-09 00:20:14 +08:00
v1_10_R1 Try to avoid water more 2020-04-08 23:59:49 +08:00
v1_11_R1 Try to avoid water more 2020-04-08 23:59:49 +08:00
v1_12_R1 Try to avoid water more 2020-04-08 23:59:49 +08:00
v1_13_R2 Try to avoid water more 2020-04-08 23:59:49 +08:00
v1_14_R1 Try to avoid water more 2020-04-08 23:59:49 +08:00
v1_15_R1 Try to avoid water more 2020-04-08 23:59:49 +08:00
.gitignore fix vault dependence, remove hc repo 2019-02-19 02:12:27 -08:00
ISSUE_TEMPLATE Add required version fill-in points on the issue template 2018-07-21 21:14:14 -07:00
LICENSE Add -l flag to /npc spawn and add /npc metadata 2018-01-01 14:41:10 +08:00
pom.xml Initial 1.15 support 2019-12-11 11:25:10 +08:00
README.md fix http wiki link to https 2019-07-23 04:49:48 -07:00

Citizens2 README

Citizens is an NPC plugin for the Bukkit API. It was first released on March 5, 2011, and has since seen numerous updates. Citizens provides an API which developers can use to create their own NPC characters. More information on the API can be found on the API page of the Citizens Wiki (https://wiki.citizensnpcs.co/API).

Compatible with:

Extra information

Javadoc: http://jd.citizensnpcs.co

Spigot page: https://www.spigotmc.org/resources/citizens.13811

Developmental builds: https://ci.citizensnpcs.co/job/Citizens2/

For questions/help join our discord at: https://discord.gg/Q6pZGSR