Commit Graph
68 Commits
Author SHA1 Message Date
Andrew Ardill 12e377501e Implements interface for changing the view distance.
Uses default view distance if player's view distance is not set

Throws an illegal argument exception if view distance is set too high
or too low.

Pushes notifications of server and world view distance changes to the player.
Move view distance functions from PlayerManger to WorldServer.
Set player minimum view distance to 1 for now.
Reset player's 'last known' position when recalculating visible chunks.

Use per-player view distance in chunk distance checks
2011-08-15 14:57:25 +10:00
EvilSeph 748a6288e4 Added API for manipulating map items. Thanks SpaceManiac, codename_B, sk89q and dested! 2011-08-12 23:06:02 -04:00
Dinnerbone 5d2a195835 Implemented new permission system 2011-07-17 17:19:41 +01:00
Erik Broes cc9ccc8976 Removed some old deprecated code and clean up javadocs + warnings 2011-07-17 18:14:45 +02:00
Erik Broes a98c7ba2c7 Massive renaming update in nms. If you bypassed Bukkit, you will likely break.
Also minimized all the nms diffs and generic cleanups all around.
2011-06-27 00:47:03 +02:00
EvilSeph 39332e5c87 Added Instrument enum, Note class and get/setNote functions. Thanks xZise! 2011-06-17 03:16:18 -04:00
EvilSeph cc1b0a005c Added per player time support. Thanks eisental, Shamebot and needspeed10! 2011-06-17 02:29:16 -04:00
Erik Broes 9adc03abab Generic cleanup of the org.bukkit.craftbukkit classes. 2011-06-12 12:51:54 +02:00
EvilSeph 5b93f5565a Fixed from and to worlds being the same for a PlayerTeleportEvent for crossworld teleports. Thanks for the help Rigby and Verrier! Tahg is responsible for the mess. 2011-06-11 01:33:37 -04:00
sk89q bf4a4a767c Added some missing @Override. 2011-06-09 23:30:38 -07:00
sk89q a25ab644df Cleaned up some Javadocs. 2011-06-09 23:11:37 -07:00
sk89q e45c502ec1 Moved playSound/Effect(Player, ...) to Player.playEffect(Location, ...) to be consistent, and because the code didn't really do what the Javadoc said. 2011-06-09 23:08:00 -07:00
raphfrk 8320917363 Adds update chunk method for sending fake chunk updates to the client. This is to match the sendBlockChange method. 2011-06-08 19:05:01 -04:00
Tahg 5296f97cde Portal changes. 2011-06-08 16:57:46 -04:00
EvilSeph 891dfbcef8 Possible fix for some chunk loading issues experienced when teleporting. Thanks akrieger! 2011-06-05 12:38:56 -04:00
Tahg ebc478388c fixed cross world teleport 2011-06-01 18:35:57 -04:00
Tahg 8835cb905f More multiworld fixes 2011-05-31 21:19:37 +02:00
Erik Broes 6dbd710bbf Update for 1.6.5 2011-05-30 22:37:34 -04:00
Dinnerbone 1784e42d5f Fixed a bunch of multiworld issues (entity tracking etc) 2011-05-27 00:11:45 +01:00
Dinnerbone 6903f20242 Implemented 1.6! 2011-05-26 13:48:22 +01:00
Erik Broes 309846d732 Whitespace + general cleanup 2011-05-15 13:41:46 +02:00
EvilSeph 54e2254904 Made teleporting between worlds 'smoother'. Thanks Raphfrk! 2011-05-04 22:16:26 -04:00
sk89q bdcee9025c Added method to fake a block change request for a player. 2011-05-02 11:31:33 -07:00
sk89q 80a1a4ac82 Added Player.playNote(). 2011-05-02 11:31:32 -07:00
Erik Broes 88ebcc8db5 Fix TextWrapping issues; Now limits the packets send to the client to either: 119 chars or 320 width. This will strip disallowed characters, propagate colors properly to the next line and not 'eat' multiple color-codes. 2011-04-25 22:17:07 +02:00
Dinnerbone 3afe2df241 Implemented stats/achievement giving 2011-04-21 20:57:34 +01:00
Erik Broes 483a878b8b Update for 1.4_00_01 -- if you bypassed Bukkit, you will most likely break. 2011-04-20 19:05:14 +02:00
sk89q 7baf5fa484 Made fauxSleeping persist on death and cross-world teleport. 2011-04-11 17:10:17 -07:00
sk89q 86c467cb50 Fixin' the problem of AFK people not in bed. 2011-04-11 11:48:31 -07:00
alron 270310a3a5 Made another change that was missed in translation that might cause chunk issues. This should address one of the chunk issues experienced when teleporting. 2011-04-07 01:56:39 -04:00
afforess 0f3f3c552a Added player.saveData and player.loadData. 2011-04-03 15:52:07 -04:00
Dinnerbone 87c36febeb Updated to Minecraft version 1.4 2011-03-31 21:40:00 +01:00
Erik Broes 1eb2f75f53 Copy displayname when cross-world teleporting 2011-03-25 21:22:57 +01:00
Erik Broes 9162a654c4 Implement player.getCompassTarget 2011-03-25 21:22:03 +01:00
Byron Shelden 376ac51cea Fixed the PLAYER_TELEPORT event so event.getTo().getWorld() is correct. (#451) 2011-03-23 18:34:53 +01:00
Erik Broes 6043797ce0 Fix getDisplayName getting lost when getBukkitEntity is called 2011-03-13 12:52:01 +01:00
sk89q 49a3d5bfb3 Added Player.sendRawMessage(). 2011-03-12 01:06:04 -08:00
Tahg 078f48c0fb Code cleanup, fixed doors, chunk entity fetching 2011-03-11 16:25:35 -05:00
FrozenCow 9832ce06f1 Synchronized and moved Hash classes 2011-03-01 16:37:19 -05:00
Dinnerbone 3dd60c168b Fixed chat 2011-03-01 19:04:16 +00:00
Erik Broes f54469f314 Let's handle (bwhaha) the Craft* entities a bit better. 2011-03-01 17:08:18 +01:00
Dinnerbone d142fabfc1 Sped up teleporting even more, + fixed isSneaking 2011-02-28 20:30:33 +00:00
Dinnerbone 38c2103ff4 Spiral teleporting! Wheeeee! 2011-02-28 13:21:50 +00:00
Tahg b8023ac3fa Fix for isOp 2011-02-23 14:08:42 +08:00
Dinnerbone f759e0b60d Update to Minecraft 1.3 beta 2011-02-23 02:37:56 +00:00
David Flemström 5121ebb65d Fixed issue with color markers in messages sent to the client.
This fix eliminates crashes related to color markers being at end-of-line, and also makes colors persist across line breaks.

- The broadcast message is split up in multiple packets, one per line
- Color markers are reorganized, so that color 'sticks across lines'
- The wrapping method calculates the *rendered* line length. Thus, if the user has a weird font, it might look weird.
2011-02-20 18:15:21 +01:00
Raphfrk 41fe211919 Added target block ray trace functionality. 2011-02-18 20:48:56 -05:00
sk89q 5f940cf764 Added Player.chat(). 2011-02-16 21:47:01 -08:00
Tahg 03be05790e added method to force an inventory update 2011-02-08 21:52:06 -05:00
Alexander Hesse 6ad4ca2a42 Implemented Sneak event 2011-02-08 17:12:51 +01:00