Commit Graph

1168 Commits

Author SHA1 Message Date
fullwall
dc363520e9 Merge pull request #299 from XxCoolGamesxX/patch-1
Added Spanish Translation
2015-03-30 19:08:39 +08:00
JCThePants
df75ed77ca Fix NPC despawned if chunk unload is cancelled 2015-03-30 01:07:54 -07:00
Charles
12bbab8aa1 Added Spanish Translation
We translation in Spanish so the people can read it.

Thank to my team of Mega Planet (www.megaplanet.net).
2015-03-27 22:23:33 +01:00
mcmonkey4eva
6d4cf835b2 Fix the sheep command somewhat.. it works at least, doesnt have reasonable messages though 2015-03-23 20:08:37 -07:00
mcmonkey4eva
7065a95b35 Fix guided waypoint markers by blocking the t_ method which allows movement in the NMS 2015-03-23 19:49:42 -07:00
fullwall
432d9d7855 Add messages for /npc sheep 2015-03-22 16:30:30 +08:00
fullwall
660dc1fd85 Fix head yaw mistranslation 2015-03-17 11:16:14 +08:00
Morphan1
54abeece09 Cure NPCs of skin loss once and for all
...hopefully.
2015-03-11 22:35:24 -04:00
Morphan1
bdade4a077 Fix error when sending NPC skins to a joining players 2015-03-10 19:35:51 -04:00
fullwall
a674fadca3 Fix missing translations for player looking 2015-03-11 00:24:28 +08:00
Morphan1
d54c5ad8b4 Increase radius limit 2015-03-10 03:49:43 -04:00
Morphan1
b0f7fb4348 Make some minor adjustments 2015-03-10 03:40:25 -04:00
Morphan1
b20a0d4b4b Remove forgotten debug
Oops
2015-03-10 03:19:12 -04:00
Morphan1
5b545d96e9 Improve tablist removal and skin updating 2015-03-10 03:14:43 -04:00
fullwall
f5d302733e 1.8.3 first pass 2015-03-07 21:07:45 +08:00
JCThePants
c924547e52 Fix no knock back on player NPC's when hit
Attempt number 2 due to git noob mistakes.
2015-02-24 10:01:32 -08:00
fullwall
c747d59482 Merge pull request #248 from JCThePants/JCThePants-patch-3
Fix dead player NPC not removed from world.
2015-02-24 14:33:26 +08:00
mcmonkey4eva
93dca55a4f Fix Citizens messing with unrelated entities, fixes #234 2015-02-21 15:01:16 -08:00
JCThePants
687fcdb779 Fix dead player NPC not removed from world. 2015-02-21 00:30:21 -08:00
JCThePants
8324752b2d Fix NPC sometimes spins in circles...
Fix NPC sometimes spins in circles when reaches destination.

Honor NavigationParameters#distanceMargin value.
2015-02-18 21:28:46 -08:00
mcmonkey
90512ac162 Restore 'test' 2015-02-18 18:13:34 -08:00
mcmonkey4eva
7185ece042 Revert "Test"
This reverts commit bcca71d5bd.
2015-02-16 14:32:25 -08:00
mcmonkey4eva
97468a4a65 Merge https://github.com/citizensdev/citizens2 2015-02-16 14:31:21 -08:00
mcmonkey4eva
7d8f0e0636 Fix build 2015-02-16 14:29:51 -08:00
fullwall
bcca71d5bd Test 2015-02-15 17:15:56 +08:00
mcmonkey4eva
c04399eadf Prevent killer rabbits from attacking
Thanks to morphan1 for helping to fix this bug
2015-02-13 14:15:41 -08:00
mcmonkey4eva
735e5f9ec8 Fix rabbits not moving
As a side effect, killer rabbits will attack, as E() encompasses both
movement and attacking. Not sure how to fix this... but moving+sometimes
attacking is better than never moving.
2015-02-10 12:02:36 -08:00
sanjay900
0bea7bdc88 -p not -b 2015-02-03 11:24:28 +13:00
sanjay900
8b0003a456 its -p not -b 2015-02-03 11:16:13 +13:00
sanjay900
671eec9c02 Naming conventions. 2015-02-03 10:56:33 +13:00
sanjay900
8698312a87 Support setting permanent skins
A permanent skin is set with ./npc skin -p name and will NOT change when
that player changes their skin, opening up lots more skin options.
To do this with code, set
npc.data().setPersistent(NPC.PLAYER_SKIN_UUID_METADATA, to the players
UUID/ Name and then
npc.data().setPersistent(NPC.PLAYER_SKIN_TEXTURE_PROPERTIES, "cache");
to tell the plugin to keep a permanent cache of their skin. Due to how
skins are implemented, these skins will work forever.
2015-02-03 10:52:52 +13:00
sanjay900
6d1d4e73e0 Switch setPassengetOf to mount as it was removed in previous updates 2015-02-03 09:28:59 +13:00
fullwall
c1321c2162 Respect distanceMargin when NPCs are passively moving towards entities 2015-01-04 20:51:21 +08:00
fullwall
95993348bd Add /npc sheep 2015-01-04 19:59:33 +08:00
fullwall
950013f4f5 Fix AnimationTrigger 2015-01-04 19:41:41 +08:00
fullwall
28ea52c742 Fix tablist removing 2015-01-03 14:36:11 +08:00
fullwall
5b64a7cc57 Fix boolean value 2015-01-03 14:21:07 +08:00
fullwall
a46b1f440b Try playerlist handling via EntityTrackerEntry instead of adhoc event listening 2015-01-03 13:37:34 +08:00
fullwall
db205f52ff Better skin loading when world has to be loaded 2015-01-03 12:45:26 +08:00
fullwall
273a2b358c Reorder tablist refresh 2014-12-28 14:55:15 +08:00
fullwall
bc16fd739d Update MCTargetStrategy.java 2014-12-28 14:07:01 +08:00
mcmonkey
3a6f7de36b Don't attack players when they do /npc, fixes #170
Let's... let's not do this.
2014-12-27 12:45:41 -08:00
fullwall
574faefa09 Merge pull request #155 from sanjay900/master
Allow Rabbits to have their types set. Fix lots of broken commands. Add enums to commands.
2014-12-26 17:47:42 +08:00
fullwall
bd5ff4d433 Update HumanController.java 2014-12-26 17:45:49 +08:00
fullwall
516035fc70 Fix NPC targeting 2014-12-21 23:34:54 +08:00
sanjay900
7eb1cfb6fb Change the wolf collar message to something that makes more sense 2014-12-19 15:50:25 +13:00
sanjay900
a174631d6f Fix the wolf colour command messages 2014-12-19 15:50:17 +13:00
sanjay900
6c17804653 Wolf Traits now give Feedback. 2014-12-19 00:16:31 +13:00
sanjay900
1447380e83 Fix set Profession, set skeletontype and set rabbittype commands 2014-12-18 23:52:32 +13:00
sanjay900
46e1ecdd2a Fix spacing, call setType, check if valid 2014-12-18 23:03:57 +13:00
sanjay900
0ed3235258 Appearently i was working off of an old copy of messages_en 2014-12-18 22:57:20 +13:00
sanjay900
f1ec5a2248 Im an idiot...
Why did i set it every tick?
2014-12-18 22:55:30 +13:00
sanjay900
249ef8ec41 Allow Rabbits to have their types set.
Added command and trait.
messages_de, messages_fr and messages_nl need
citizens.commands.npc.rabbittype.set
citizens.commands.npc.rabbittype.invalid-type
2014-12-18 22:36:44 +13:00
fullwall
954a3bd27b Add some settings to control NPC skin retries 2014-12-17 19:48:47 +08:00
mcmonkey4eva
2ecddf6f87 Improve NPC pseudo-respawning
In initial testing, longer periods were better. However, that was before
a lot of recoding... shorter periods are now superior and keeping
significantly more NPCs visible (When dealing with batches so large that
the system fails to load them all)
2014-12-11 15:56:10 -08:00
mcmonkey
674bb60287 Fix teleport bugging
Teleporting forcibly rounds locations because @fullwall edited the roundLocation function to return the original, now modified location, rather than clone it as is necessary to avoid trouble. This restores the original roundLocation which will avoid that error.
2014-12-09 14:46:12 -08:00
fullwall
7ff6cfb364 Fix slime movement 2014-12-09 20:31:14 +08:00
fullwall
a6df72fa1b Refactoring, remove some allocations 2014-12-08 15:45:09 +08:00
fullwall
b5cda10271 Merge pull request #139 from mcmonkey4eva/patch-2
First pass at removing NPCs from the playerlist
2014-12-08 15:17:15 +08:00
mcmonkey4eva
50fa13cef0 Handle all cases of the packet in NMS.java 2014-12-07 18:04:13 -08:00
mcmonkey4eva
ab67c208d1 Refactor
Move the playerlsit packet handling to the NMS class
2014-12-06 19:07:06 -08:00
mcmonkey4eva
33ef7d2a55 micro-efficiency, improvements
Don't call .getBlock which is both slow and doesn't work in all cases.
Also don't compare worlds by name, compare by instance.
2014-12-05 22:11:03 -08:00
mcmonkey4eva
1c6a1cc719 Third pass: packet magic to pseudo-respawn NPCs
also cache the NPC position to slightly improve efficiency. Micro-effic
matters a lot here.
2014-12-05 22:06:03 -08:00
mcmonkey4eva
306138165f Second pass: error fixing, more invisibility fixes
Handle teleporting, avoid cross-world errors.
2014-12-04 16:12:45 -08:00
mcmonkey4eva
64ac8bed9e First pass at removing NPCs from the playerlist
imperfect (causes pointless respawns) but a functional proof-of-concept.
2014-12-03 23:48:37 -08:00
mcmonkey4eva
32042d10e8 Disable bat AI, fixes #137
Bat AI wasn't overridden properly... now it is.
2014-12-03 22:38:05 -08:00
fullwall
35dccc8243 Fix player invisibility (note: they will appear on the tab list for now) 2014-12-01 13:40:46 +08:00
fullwall
7739e5df21 Fix tablist 2014-11-30 14:19:40 +08:00
fullwall
15efc9f838 Merge branch '1.8' of github.com:CitizensDev/Citizens2 into 1.8 2014-11-30 13:33:09 +08:00
fullwall
6ca4834e70 Fix player invisibility part 1 2014-11-30 13:32:35 +08:00
mcmonkey4eva
a89afc29d6 Allow lowercase entity types 2014-11-29 13:51:20 -08:00
fullwall
1b02573b9c Add new entity controllers 2014-11-29 20:04:02 +08:00
fullwall
81872b6799 Update pass 1 to 1.8 2014-11-28 23:22:11 +08:00
fullwall
7e039a4a20 Minor style change 2014-11-26 14:12:13 +08:00
fullwall
2dfa2e660f Fix /npc name for 1.8 protocol 2014-11-26 13:41:24 +08:00
fullwall
15e157b676 Add help text about leaving the text editor 2014-11-20 16:29:13 +08:00
fullwall
8ae49480ae Set the default controllable behaviour to not require an owner (use the -o flag to require an owner) 2014-11-20 15:39:37 +08:00
fullwall
36b9a0c4c8 Hopefully fix NPC tablist issues 2014-11-17 10:32:16 +08:00
fullwall
3f95c57ea4 Add the skin flag set to all visible for 1.8 clients 2014-11-17 10:09:57 +08:00
fullwall
07b6c24f1d Fix monsters despawning when an NPC of the same type is spawned 2014-11-16 23:43:01 +08:00
fullwall
b10299a742 Ignore profile UUID lookup failures 2014-11-16 22:17:35 +08:00
fullwall
7008ffd013 Change NPC UUID version to 2 for Minecraft 2014-11-15 15:47:41 +08:00
fullwall
651fbac979 Minor fix for player tab list 2014-11-06 23:07:23 +08:00
mcmonkey4eva
edbf8e6fda Fix the sit animation, fixes #96
The task would fail to cancel properly, and sometimes fail to recognize
NPC removal.
In addition, gitignore maven and IntelliJ artifacts to give contributors
an easier time.
2014-10-31 16:27:19 -07:00
fullwall
ec2eae62b7 Merge branch 'master' of github.com:CitizensDev/Citizens2 2014-10-08 01:12:48 +08:00
fullwall
7c441bdefd Send tablist packet globally 2014-10-08 01:12:22 +08:00
mcmonkey4eva
b5580ec70c Fix NavigationStuckEvent set-null
If you set the action in a NavigationStuckEvent, it throws an NPE rather
than simply doing nothing. This patches that.
It also throws the event even when the default stuck action is null.
2014-10-04 14:06:15 -07:00
fullwall
9eeae0c5b3 Implement NavigationStuckEvent 2014-09-25 15:32:03 +08:00
fullwall
aa360652f1 Optimise 1.8 playerlist hack 2014-09-17 21:45:17 +08:00
fullwall
576e816399 Merge pull request #59 from sanjay900/master
1.8 PlayerList fix
2014-09-17 21:27:40 +08:00
sanjay900
0371c5245b Remove obselete code 2014-09-17 13:39:48 +12:00
sanjay900
af92058273 Tab list compatibility fixes
Works with all versions of 1.7.10 including before and after the
protocol hack.
2014-09-17 11:27:56 +12:00
mcmonkey
1a1cdc05eb Add citizens.npc.skin wildcard support
citizens.* and citizens.npc.* now include citizens.npc.skin
2014-09-15 18:54:58 -07:00
fullwall
b8242e2db5 Ender dragon shouldn't get its yaw set while flying 2014-09-15 15:26:07 +08:00
fullwall
e035ffde04 Fix issue #64 2014-09-15 15:17:48 +08:00
fullwall
7e5c0d8e24 Revert previous change 2014-09-12 21:46:42 +08:00
fullwall
8a1d8e3106 Early return instead of remove on a blockingdeque 2014-09-12 21:46:02 +08:00
fullwall
4e5348ce45 Fix some reported issues 2014-09-12 21:40:11 +08:00
fullwall
f021d5b855 Update GuidedWaypointProvider.java 2014-09-03 17:42:56 +08:00
fullwall
5e16260876 Remove tab list info temporarily until 1.8 2014-09-03 17:40:48 +08:00
fullwall
fc0f4585a2 Update GuidedWaypointProvider.java 2014-09-03 17:38:59 +08:00
fullwall
2addf9678c Update GuidedWaypointProvider.java 2014-09-03 17:37:18 +08:00
fullwall
4b1737e128 Update PlayerAnimation.java 2014-08-28 23:32:43 +08:00
fullwall
6d8b40d3f1 Update CitizensNPC.java 2014-08-24 23:12:07 +08:00
fullwall
4e0169f5a0 Sitting animation sticks to EntityPlayer 2014-08-23 12:24:30 +08:00
fullwall
4e00828a89 A bugfix and some debug output for skins 2014-08-18 10:13:17 +08:00
fullwall
7a37058ff1 Reverse the delay order just in case 2014-08-12 15:55:07 -07:00
fullwall
4e6d0547c0 Use the NPC's UUID instead of a random one 2014-08-09 16:22:10 -07:00
fullwall
901f7ad654 Better UUID/skin cache behaviour 2014-08-09 01:21:33 -07:00
fullwall
7cb22cc1c5 Really rough delay when thottling hits 2014-08-07 22:24:23 -07:00
fullwall
39cc0c7d0b Throttle skin requests to once every 5 seconds 2014-08-07 22:19:26 -07:00
fullwall
6631775294 Fix console spam from NPCs with fake names 2014-08-07 20:22:36 -07:00
fullwall
3fb0176c5d Fix skin loading 2014-08-05 22:32:31 -07:00
fullwall
11a3608f5e Fix profiles v2 2014-07-28 22:06:43 -07:00
fullwall
de742b8b52 Fix typo 2014-07-28 21:48:38 -07:00
fullwall
895b1728fc Run skin fetcher again if denied due to too many requests 2014-07-28 21:47:03 -07:00
fullwall
0af7eee97e Add trait 2014-07-20 18:15:28 -07:00
fullwall
72f0ff3ef0 Fix inWater 2014-07-18 23:02:27 -07:00
fullwall
b31a9532f7 Fix compile errror 2014-07-18 21:11:31 -07:00
fullwall
8902579c69 Changes to skin handling 2014-07-18 21:05:21 -07:00
fullwall
69bdc83f99 Set the flying block examiners correctly 2014-07-12 20:01:03 -07:00
fullwall
c8c1eb4d9c Update WaypointCommands.java 2014-07-12 12:20:47 -07:00
Byteflux
163ff9fb19 1.7.10 2014-07-10 19:52:40 -07:00
fullwall
ca89aa1003 Remove scoreboards 2014-06-29 21:12:44 -07:00
fullwall
b44788510f Link scoreboard 2014-06-29 20:39:48 -07:00
fullwall
d5162464bd Fix more NPEs 2014-06-29 20:31:45 -07:00
fullwall
94340f15ff Fix NPE 2014-06-29 20:27:51 -07:00
fullwall
9a998c149b Ugly scoreboard persistence 2014-06-29 20:26:30 -07:00
fullwall
683ffc08f7 Fix /npc scoreboard 2014-06-29 19:40:32 -07:00
fullwall
8366b977ed Update NPCCommands.java 2014-06-27 14:44:46 -07:00
fullwall
33b224a882 Merge branch 'master' of github.com:CitizensDev/Citizens2 2014-06-27 14:16:51 -07:00
fullwall
872b5ac56f First pass of /npc scoreboard 2014-06-27 14:16:30 -07:00
fullwall
e06c654494 Update NPCCommands.java 2014-06-27 12:09:25 -07:00
fullwall
ab80e4432e Allow /npc remove to use an id|name instead 2014-06-16 23:44:58 +08:00
fullwall
18b98eb609 Fix name tags affecting NPC names 2014-06-15 20:26:29 +08:00
fullwall
cda3171a87 Better skin handling for colored names 2014-05-30 01:05:53 +08:00
fullwall
355b46e573 Fix some bugs with sounds 2014-05-22 09:11:44 +08:00
fullwall
7a12d26a8e Fix build 2014-05-09 19:24:39 +08:00
fullwall
3f22729ca9 Update LinearWaypointProvider.java 2014-05-09 00:31:27 +08:00
fullwall
190d8e823d Update EditorCommands.java 2014-05-09 00:30:55 +08:00
fullwall
961a24f12c Merge branch 'master' of https://github.com/CitizensDev/Citizens2 2014-05-07 16:42:20 +08:00
fullwall
66099d36af Allow linear waypoint commands to be used from console 2014-05-07 16:41:53 +08:00
fullwall
9454a959c3 Silent Yggdrasil exceptions 2014-04-24 12:09:59 +08:00
fullwall
4835101af4 Fix NPE 2014-04-24 10:59:48 +08:00
fullwall
0af5f8bee1 Add skin handling and /npc skin (note: may not work in 1.8) 2014-04-18 16:38:44 +08:00
fullwall
c1b5fd78c2 Update MC_COMPATIBLE_VERSION 2014-04-18 11:02:08 +08:00
fullwall
55ab3e4b20 Update to 1.7.8 2014-04-12 22:59:56 +08:00
fullwall
be209a0c88 Remove /npc skin, fix duplicate NPCs on 1.7.8 2014-04-12 00:25:03 +08:00
fullwall
960b54d7d3 Persistence for item NPC ids and item frame NPC ids 2014-04-11 14:02:22 +08:00
fullwall
81afd8bada Fix crash on 1.7.7 2014-04-10 23:18:26 +08:00
fullwall
c2750faf9c Merge branch 'master' of https://github.com/CitizensDev/Citizens2 2014-04-09 21:35:32 +08:00
fullwall
89c7fef7fc Fix /npc skin creating unloadable NPCs 2014-04-09 21:35:11 +08:00
fullwall
18219d4757 Merge pull request #28 from tuxillator/master
Added missing permissions for pathopt and swim commands.
2014-04-09 21:00:16 +08:00
fullwall
b1cbc4f409 Merge branch 'master' of https://github.com/CitizensDev/Citizens2 2014-04-08 16:53:19 +08:00
fullwall
560981e452 Change disable order 2014-04-08 16:52:53 +08:00
fullwall
c386b77f7c Update MCTargetStrategy.java 2014-04-06 20:43:21 +08:00
fullwall
c2858ec81e Update MCTargetStrategy.java 2014-04-06 20:19:15 +08:00
fullwall
99862ecf06 Player skin changes 2014-04-05 15:28:39 +08:00
fullwall
54bd62c414 Change /npc skin 2014-04-04 14:50:07 +08:00
fullwall
5184efa09c Replace PlayerDeathEvent message skin name 2014-04-03 23:41:32 +08:00
fullwall
1093965f7a Remove skeleton sounds with /npc skin 2014-04-03 23:24:04 +08:00
fullwall
fc835aa9dc Add /npc skin 2014-04-03 23:01:27 +08:00
fullwall
a82dd10eef Remove debug for chicken NPCs 2014-03-30 14:10:51 +08:00
Jeff Ferrari
9a94d9a99a Added missing permissions for pathopt and swim commands. 2014-03-29 17:31:12 +08:00
fullwall
02c9d745e6 Check instanceof CraftEntity in a few more places 2014-03-27 22:17:11 +08:00
fullwall
8d14e90ef6 Initial update to MC 1.7.5 2014-03-23 17:34:02 +08:00
fullwall
1a8a9d1d6e Add /template delete and fix templates 2014-03-17 18:16:59 +08:00
fullwall
317444c588 Add /template list 2014-03-17 17:45:43 +08:00
fullwall
db7d6035f4 Fix npc name length for players 2014-03-17 17:20:25 +08:00
fullwall
030c5b3e62 Possible fix for baby entities moving over time 2014-03-17 11:32:52 +08:00
fullwall
cbd561b089 Add setting for opening doors with the new pathfinder 2014-03-12 16:27:52 +08:00
fullwall
d5dcd11d19 Fix packet sending 2014-03-12 16:21:36 +08:00
fullwall
e92c980062 Less usage of player.getName() 2014-03-09 13:04:27 +08:00
fullwall
94418b0934 Soil is passable 2014-03-08 15:09:13 +08:00
fullwall
27a7b4e416 Fix /npc create 2014-03-07 23:51:07 +08:00
fullwall
dc0fc270f1 Add speed waypoint trigger, stop pathfinding if y < -5 2014-03-07 23:21:54 +08:00
fullwall
4b5100b9ce Allow mobs to have name length 64 2014-03-07 23:13:36 +08:00
fullwall
22759739f1 Remove -24000 limit of /npc age 2014-03-07 13:08:24 +08:00
fullwall
f3e2ccb309 Restore changes 2014-03-04 19:51:14 +08:00
fullwall
28f3c587a7 Add --registry to /npc list, let getNPC(Entity) use the Entity handle 2014-03-04 19:49:32 +08:00
fullwall
63023cc54f Merge branch 'master' of https://github.com/CitizensDev/Citizens2 2014-03-04 19:47:22 +08:00
fullwall
41e36da000 Add --registry argument to /npc list 2014-03-04 19:45:52 +08:00
fullwall
a5f13cf0f5 Update Controllable.java
Add a registerControllerType method
2014-03-03 00:15:19 +08:00
scizzr
53ab0d0703 Fix NPC renaming to parse colored names 2014-03-02 09:24:38 -05:00
fullwall
c651c61c37 Use getFullTime instead of getTime 2014-02-24 10:09:42 +08:00
fullwall
8700974e88 Better overriding of persistent check 2014-02-20 11:57:24 +08:00
fullwall
5b2e5323c3 Set step height to 1 for all living NPCs 2014-02-20 11:44:59 +08:00
fullwall
f897ab728d Add packet update delay setting 2014-02-18 20:29:21 +08:00
fullwall
e248d3f7f9 Respect canSee when sending packets 2014-02-18 00:40:32 +08:00
fullwall
8c3ef5e629 Set /npc name as persistent 2014-02-01 22:48:48 +08:00
fullwall
db88b84c97 Allow /npc zombiemod to work for pig zombies 2014-02-01 22:43:46 +08:00
fullwall
29806e00e6 Add /npc minecart 2014-02-01 12:50:20 +08:00
fullwall
d7f483ccf9 Fix horse equipping 2014-01-31 11:04:10 +08:00
fullwall
845ecd1df5 Better /npc sound messages 2014-01-29 22:32:42 +08:00
fullwall
7403323776 Make /npc sound use the Sound enum 2014-01-29 22:21:43 +08:00
fullwall
ec0ca4a2f2 Add /npc sound 2014-01-29 21:37:27 +08:00
fullwall
ff42e35649 Remove console pathfinding debug 2014-01-25 16:19:13 +08:00
fullwall
9c5e5394e3 Fix wolf sitting 2014-01-24 22:41:05 +08:00
fullwall
aec2107de2 Remove db support 2014-01-23 17:44:13 +08:00
fullwall
403cd846d9 Remove debug 2014-01-22 12:49:01 +08:00