Commit graph

726 commits

Author SHA1 Message Date
CraftBukkit/Spigot
b0ac365f5e Test cloning of CraftItemStacks created with null nms ItemStacks
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-29 22:42:47 +11:00
CraftBukkit/Spigot
1553d52430 Teach CraftServer.getOfflinePlayers to also give all online players.
This method is most useful when it gives all the players who have ever
logged on to the server. Previously, it was not distinguishing between
players who had previously logged on, and were currently logged in,
and those who had previously looged on and were not currently logged in.
A distinction was made, however, between those currently logged in,
but who had not logged in previously.

This commit ensures that all players who have ever logged in (and are
listed as either logged in, or they have a player .dat file) will be
returned by the mentioned method.

Fixes BUKKIT-404

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-27 16:48:09 +11:00
CraftBukkit/Spigot
cfe88f3a5c Update for cleanup in Bukkit
By: Erik Broes <erikbroes@grum.nl>
2011-12-25 15:35:12 +01:00
CraftBukkit/Spigot
3d1cb5ac40 Fixed world.getHighestBlockYAt(x,z) returning 0 for existing but not loaded chunks. This fixes BUKKIT-327. Thanks for dredhorse for the pull request!
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-19 16:30:26 +00:00
CraftBukkit/Spigot
1dc1506bef Make rcon .sendMessage each write on a new line. This fixes BUKKIT-353. Thanks to ks07 for the pull req.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-19 16:22:59 +00:00
CraftBukkit/Spigot
e3b0e1e651 Fix error when cloning enchanted ItemStacks.
The existing method for cloning a Bukkit ItemStack fails to correctly copy
the underlying enchantments. Fix this by overriding .clone() in
CraftItemStack, cloning the underlying nms ItemStack correctly.

Fixes BUKKIT-360

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-20 00:30:54 +11:00
CraftBukkit/Spigot
0b7a5891c5 Test cloning enchanted CraftItemStacks
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-20 00:25:15 +11:00
CraftBukkit/Spigot
c41cf92c61 Add support for junit testing
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-09-23 00:35:09 +10:00
CraftBukkit/Spigot
c2dc1c32b5 Updated version to 1.0.1-R2-SNAPSHOT for development towards next release
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 22:07:07 +00:00
CraftBukkit/Spigot
9a312b3acb Updated versions to 1.0.1-R1 in pom.xml for RB.
By: EvilSeph <evilseph@gmail.com>
2011-12-12 14:41:48 -05:00
CraftBukkit/Spigot
d2ae4e1d75 Fixed clients not seeing EXP update immediately after using .setTotalExp and level methods
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 19:44:14 +00:00
CraftBukkit/Spigot
586d6ad790 Implemented (offline)player date methods
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 17:39:52 +00:00
CraftBukkit/Spigot
a02181ac29 Made OfflinePlayer and Player share the same .equals and .hashcode
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-12 15:34:49 +00:00
CraftBukkit/Spigot
8b46844bf4 Stop converting ItemStack to nms ItemStack by hand
This should fix many issues with enchantments being lost, as the method used takes care of enchantments.
Additionally, use the new nms ItemStack constructor in places where appropriate.

Fixes (at least part of) BUKKIT-7. Need to identify any further places to fix.

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-13 01:40:35 +11:00
CraftBukkit/Spigot
90baaa255d Teach CraftWorld.spawn how to spawn a Giant
Fixes BUKKIT-235

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-12 14:35:57 +11:00
CraftBukkit/Spigot
dd1048102f Implemented getKiller in LivingEntity
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-11 16:05:27 +00:00
CraftBukkit/Spigot
a163a97e1c Linked thundering and storming.
By: EvilSeph <evilseph@gmail.com>
2011-12-10 12:20:24 -05:00
CraftBukkit/Spigot
67af7c0ed5 Implemented CraftServer.getAllowEnd(). Thanks codename-B!
By: Erik Broes <erikbroes@grum.nl>
2011-12-09 18:55:36 +01:00
CraftBukkit/Spigot
799afe978e Implemented onStructureGrow event, thanks to md-5.
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-09 16:11:56 +00:00
CraftBukkit/Spigot
ffcbcf109c Fix NPE as described in BUKKIT-245. Thanks snowleo
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-08 10:26:39 +11:00
CraftBukkit/Spigot
927bd1f45d Teach EnderDragon how to throw EntityExplosionEvents when it breaks blocks
We also teach CraftWorld how to explode an event, taken from
Explosion.a(boolean) (the code that breaks blocks and drops them on the ground).

The EnderDragon has a flag that slows it down when it hits unbreakable blocks:
Obsidian, White Stone or Bedrock. It might be useful to extend the event so that
plugins can set this.

Letting the API set the default yield for an explosion event has been
deprecated, so we now set the default yield using the appropriate constructor.

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-08 00:23:06 +11:00
CraftBukkit/Spigot
e1c6569f8e Implement new interface ConsoleCommandSender.
Also use abstracted ServerCommandSender to reduce complexity! Yay!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-07 17:04:00 +11:00
CraftBukkit/Spigot
79d53f0f9b Teach MinecraftServer how to handle Remote Console commands.
This fixes BUKKIT-220. Thanks for the help bawoodruff!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-07 17:01:05 +11:00
CraftBukkit/Spigot
ae5c797119 Fix for entity spawning and some code cleanup
By: Tahg <tahgtahv@gmail.com>
2011-12-06 19:21:10 -05:00
CraftBukkit/Spigot
a84f36b67f Performance update to remove several very high counts of temp object creation
By: Tahg <tahgtahv@gmail.com>
2011-12-06 08:52:45 -05:00
CraftBukkit/Spigot
4a52ff756a fix NPE issue with CB inventory
By: Tahg <tahgtahv@gmail.com>
2011-12-06 08:48:45 -05:00
CraftBukkit/Spigot
d1bb68a060 Clean-up some events to maintain general style
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-05 19:13:10 +11:00
CraftBukkit/Spigot
4ed2b5b754 CraftInventory.remove shouldn't care about amount (BUKKIT-138)
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-05 01:51:33 +00:00
CraftBukkit/Spigot
33742d5592 Implemented server.getOfflinePlayers
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 17:57:00 +00:00
CraftBukkit/Spigot
c9c8d2a915 Fixed some various CraftInventory bugs related to dropping Enchantments
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 13:22:50 +00:00
CraftBukkit/Spigot
63318d575f Fixed player teleporting not working with a certain method. This fixes BUKKIT-198
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 13:22:31 +00:00
CraftBukkit/Spigot
2d41f1d696 Indicate when a teleport event was triggered by ender pearls or unknown internal teleports
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-04 11:04:14 +00:00
CraftBukkit/Spigot
dadf3e028c Remove unused import
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-12-02 21:29:37 +11:00
CraftBukkit/Spigot
0945d42bf0 Made world.spawnCreature just delegate to world.spawn. This fixes BUKKIT-57
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-01 21:50:23 +00:00
CraftBukkit/Spigot
b327d49e49 Use 1.0.1 artifact
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-01 21:49:50 +00:00
CraftBukkit/Spigot
17ba6a756e Fix CraftBlock toString.
By: Erik Broes <erikbroes@grum.nl>
2011-12-01 21:00:21 +01:00
CraftBukkit/Spigot
c370b75aca Fixed rare NPEs with CraftItemStack. This fixes BUKKIT-51
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-12-01 05:17:22 +00:00
CraftBukkit/Spigot
3505a6c77e Fixed exp methods returning wrong values
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-30 22:31:03 +00:00
CraftBukkit/Spigot
0939b7a7f9 Updated to use mc-dev rename revision 1
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-29 23:17:43 +00:00
CraftBukkit/Spigot
540f893f86 Fixed multiworld loading of some worlds, yay for 1 letter fixes :D
By: Erik Broes <erikbroes@grum.nl>
2011-11-30 21:47:51 +01:00
CraftBukkit/Spigot
9c7ab7c33f Fix CraftEnderCrystal so that it implements EnderCrystal, not EnderSignal.
Thanks zhuowei!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-30 09:21:54 +11:00
CraftBukkit/Spigot
dcbd5b4f23 Fix Craft Entity constructors and toStrings.
Also, standardise getHandle and clean up in general.
getHandle is now using the 'entity' member variable instead of
super.getHandle, as this reduces the number of chained calls needed.

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 21:22:35 +11:00
CraftBukkit/Spigot
e02756bd58 Ignore minecraft resources in src directory
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 21:20:14 +11:00
CraftBukkit/Spigot
f5793d6a80 Fix CraftVillager constructor to only take an EntityVillager
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 09:46:20 +11:00
CraftBukkit/Spigot
1e64b14e06 BUKKIT-57 Fix using Bukkit interface instead of nmc Entity for type check.
Thanks nidefawl!

By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-29 09:42:09 +11:00
CraftBukkit/Spigot
107149bd07 Fixed Enchantments being lost on inventory.setItem
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-28 05:17:05 +00:00
CraftBukkit/Spigot
7cb34c4384 Fixed magma slimes from being nonspawnable
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-28 05:08:28 +00:00
CraftBukkit/Spigot
a78bd5eb1c Add new Entity types to CreatureSpawnEvent
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-28 11:18:27 +11:00
CraftBukkit/Spigot
18610c823a Add CraftMagmaCube
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-28 11:17:04 +11:00
CraftBukkit/Spigot
39ddc11033 Fixed NPE in CraftPlayer.getBedSpawnLocation
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 04:09:34 +00:00
CraftBukkit/Spigot
2a560a3b24 Clone item enchantments unchecked
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 03:58:43 +00:00
CraftBukkit/Spigot
f235a09660 Fixed issue with enchantments reseting under certain conditions
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 02:45:34 +00:00
CraftBukkit/Spigot
b90c9ef770 Implemented Enchantment API
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-27 00:39:25 +00:00
CraftBukkit/Spigot
44b5953141 Implemented world.getWorldFolder
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-25 03:47:12 +00:00
CraftBukkit/Spigot
474234b6be Changed Entity.isDead to be aware of health for living entities
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-25 00:32:44 +00:00
CraftBukkit/Spigot
aa9a64c1d7 Fixed NPE in player inventory + don't ignore the cancel state of world unloads
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 20:27:16 +00:00
CraftBukkit/Spigot
2f98915d03 Implemented new age methods in animals, and made spawned animals via eggs properly age back to children
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 20:16:43 +00:00
CraftBukkit/Spigot
cbcd3aa1ae I've either fixed going to The End, or made it worse. I'm sure we'll find out soon!
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 20:00:55 +00:00
CraftBukkit/Spigot
66c96af623 Made BlockStates inform playes upon update
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 18:48:23 +00:00
CraftBukkit/Spigot
20d9b64e16 Fixed allow-nether being ignored
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-24 18:48:01 +00:00
CraftBukkit/Spigot
0f394bd1f6 Implemented new biome values
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-22 21:21:33 +00:00
CraftBukkit/Spigot
83e8785760 Implemented new EnderCrystal entity class
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-21 22:39:33 +00:00
CraftBukkit/Spigot
90b2487ced fixed spawn method for projectiles
By: sunkid <sunkid@iminurnetz.com>
2011-11-20 18:18:10 -08:00
CraftBukkit/Spigot
8d63c2d62d Update to correct Bukkit version
By: Erik Broes <erikbroes@ripe.net>
2011-11-20 00:13:48 -08:00
CraftBukkit/Spigot
be5fc81d31 Update for 1.0.0
By: Erik Broes <erikbroes@grum.nl>
2011-11-20 00:01:14 -08:00
CraftBukkit/Spigot
f37f615a88 Added new --noconsole command argument, thanks to mkurzeja for the idea
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-11-05 20:14:26 +00:00
CraftBukkit/Spigot
0ad41cc069 Added distributionManagement section to POM.
By: Luke Granger-Brown <github@lukegb.com>
2011-10-11 20:47:06 +02:00
CraftBukkit/Spigot
df0cea370e Fix version string - RB 4 has already happened
By: Andrew Ardill <andrew.ardill@gmail.com>
2011-11-01 14:19:11 +11:00
CraftBukkit/Spigot
4c25ba70ad Implemented bukkit versioning
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-31 04:02:54 +00:00
CraftBukkit/Spigot
a3c58c7601 Updated version for 1.8.1-R4
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-31 01:49:47 +00:00
CraftBukkit/Spigot
b8a509d091 Add missing CraftBlock hashCode()
By: Erik Broes <erikbroes@grum.nl>
2011-10-20 23:20:26 +02:00
CraftBukkit/Spigot
e771a25163 fixed mapping of Art <-> EnumArt in Paintings
By: Tahg <tahgtahv@gmail.com>
2011-10-12 14:12:53 -04:00
CraftBukkit/Spigot
08cd9ce5f7 Added header to bukkit.yml
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-12 13:26:07 +01:00
CraftBukkit/Spigot
5ee5bffb9f Added new bukkit.yml entry (settings -> world-container) to control the directory worlds are stored in
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-12 04:24:41 +01:00
CraftBukkit/Spigot
6f832c669f Implemented getPlayer of OfflinePlayer
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-11 14:52:07 +01:00
CraftBukkit/Spigot
e2369da502 Implemented entity age methods
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-11 02:23:10 +01:00
CraftBukkit/Spigot
9ad2b97138 Added hashCode and equals to CraftWorld
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-10 22:45:52 +01:00
CraftBukkit/Spigot
bac90b1d90 Removed deprecated ConcurrentSoftMap
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-10 22:05:35 +01:00
CraftBukkit/Spigot
cb1c6d43c6 Updated snakeyaml to reflect Bukkit
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-10 21:40:41 +01:00
CraftBukkit/Spigot
f9067422f1 Updated to the new Configuration api
By: Nathan Adams <dinnerbone@dinnerbone.com>
2011-10-10 21:10:48 +01:00
CraftBukkit/Spigot
e35d160db6 Fix CraftBlock.equals as they are not singletons anymore
By: Erik Broes <erikbroes@grum.nl>
2011-10-07 11:48:14 +02:00
CraftBukkit/Spigot
64723bee72 don't store weak references for EmptyChunks or cache CraftBlocks
By: Tahg <tahgtahv@gmail.com>
2011-10-05 11:31:23 -04:00
CraftBukkit/Spigot
e7626c4bae Revert "Added callback line of sight methods. Thanks xZise!"
This reverts commit 49cf586f969626bdb59632bb2fd5adfe79d38057.

By: EvilSeph <evilseph@gmail.com>
2011-10-03 15:17:34 -04:00
CraftBukkit/Spigot
7bf7abfa5f Fixed multiworld difficulty.
World difficulty was incorrectly being set to 0 or 1 on reload depending
on spawn-monsters instead of the difficulty server property.

By: EvilSeph <evilseph@gmail.com>
2011-10-03 10:08:38 -04:00
CraftBukkit/Spigot
a4242b3e90 Added Difficulty API.
By: EvilSeph <evilseph@gmail.com>
2011-10-03 01:25:54 -04:00
CraftBukkit/Spigot
6e38cffca0 Added missing call for WorldUnload event.
By: EvilSeph <evilseph@gmail.com>
2011-10-02 23:16:58 -04:00
CraftBukkit/Spigot
691d4bb694 Added callback line of sight methods. Thanks xZise!
By: EvilSeph <evilseph@gmail.com>
2011-10-01 16:18:17 -04:00
CraftBukkit/Spigot
49395291c2 Minimal diffs! Move methods for the new list-name away from nms
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-10-03 00:34:51 +01:00
CraftBukkit/Spigot
feed511869 Updated guava to 10.0
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-10-01 23:46:27 +01:00
CraftBukkit/Spigot
3ece4f6a1f Painting improvements. Thanks CelticMinstrel!
Implement get/setArt and facing direction for paintings; expanded painting break causes; added painting support to World.spawn

By: EvilSeph <evilseph@gmail.com>
2011-10-01 13:31:28 -04:00
CraftBukkit/Spigot
d51a5ded5b Correct biome data in ChunkSnapshot - wrong API used
By: Mike Primm <mike@primmhome.com>
2011-09-26 10:15:45 -05:00
CraftBukkit/Spigot
7c330f148f Fixed players not receiving broadcasts (and other similar issues) after signing out and in rapidly
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-09-27 23:13:58 +01:00
CraftBukkit/Spigot
8c6f3725ee Added server list ping event.
By: sk89q <the.sk89q@gmail.com>
2011-09-26 15:32:05 -07:00
CraftBukkit/Spigot
9d39647939 Added Player.get/setListName to change the name of the player on the player list.
By: sk89q <the.sk89q@gmail.com>
2011-09-26 15:10:35 -07:00
CraftBukkit/Spigot
b7fd3933e4 data improvements
By: Tahg <tahgtahv@gmail.com>
2011-09-26 03:07:06 -04:00
CraftBukkit/Spigot
35a5504f20 Boat get/set (double) occupied acceleration, (double) unoccupied deceleration, (boolean) work on land. Good values to maximize boat utility: 0.6 (fast accel.), 0.99 (no loss of boat), true/false, respectively.
By: sk89q <the.sk89q@gmail.com>
2011-09-25 11:20:51 -07:00
CraftBukkit/Spigot
4c3b2cbd0b Ensure there's only one OfflinePlayer object per actual offline player
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-09-25 04:21:35 +01:00
CraftBukkit/Spigot
af65244ba9 Implementation of the Jukebox BlockState
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
2011-08-22 01:36:01 -04:00
CraftBukkit/Spigot
e6e2df18be Implemented get/setPickupDelay on Item entities, thanks robin0van0der0v
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-09-25 03:40:28 +01:00
CraftBukkit/Spigot
36b341bfc8 Implemented getOperators
By: Dinnerbone <dinnerbone@dinnerbone.com>
2011-09-25 03:28:00 +01:00