0ad16c1919
Added PlayerDataSaveEvent, resolved #487 ( #920 )
...
* Added PlayerDataSaveEvent, resolved #487
* Added getPlayer() to PlayerDataSaveEvent
may return an IPlayer
* Fixed quit messages
This TranslationContainer vs. string mess... >_<
2017-05-29 18:50:45 +01:00
2204942338
Fixed the half-done hunger implementation, fixed lots of bugs related to hunger
...
- Fixed starvation doesn't deal any damage at all (Human->getFood() returns a float, not an int, === 0 won't work so great)
- Added exhaustion for sprinting, walking, jumping and sprint-jumping as per MCPE (these use MCPE values, and yes MCPE does walking exhaustion!)
- Fixed attributes don't get reset after player death
- Added food and hunger regeneration in peaceful difficulty
- Added API methods Living->jump() (motion isn't updated yet, so this won't actually do much if plugins try to use it) and Living->getJumpVelocity()
TODO: implement exhaustion for swimming
2017-04-21 19:48:25 +01:00
4ee8d14584
Added API for transferring players to other servers ( #355 )
...
* Added API method `Player->transfer()` and PlayerTransferEvent
2017-03-04 18:22:31 +00:00
661f17b6e0
Anti-cheat fixes, settings and API ( #287 )
...
* Added options to disable movement checks and anti-instabreak and API methods to control this
* Fixed anti-flight false positives
* Fix flight toggle kick cannot be disabled
* Added PlayerIllegalMoveEvent
2017-01-25 09:40:48 +00:00
598e7aac8f
More PhpStorm inspections, import cleanup
2017-01-04 14:55:11 +00:00
9242f89221
Add PlayerToggleFlightEvent
2016-10-27 10:55:01 +01:00
58ff381557
PhpStorm automated formatting ( #11 )
...
* PhpStorm reformatting
* Tuned PhpStorm reformatting
* Improved ItemIds and BlockIds formatting
* Tuned more PhpStorm reformatting
* Improved string concatenation
2016-10-03 19:05:48 +08:00
e913b16804
Fixed some lines indented with 4 spaces rather than tabs
2016-10-03 00:58:34 +08:00
a2641f923d
Merge branch master
2016-02-22 14:32:48 +08:00
a6cd526e60
PHP7 to master
2016-02-21 12:47:30 +01:00
21c2e2d429
Closes #3832
2016-02-18 00:08:44 +08:00
e79976bdac
Added events
2016-02-11 22:07:04 +08:00
d538a254ee
Resolves #3918
2016-02-09 18:25:16 +08:00
a2734f6dc0
Merged master into php7 to support 0.13.1
2016-01-22 17:36:45 +01:00
9ca8c06f82
Merge branch 'patch-6' of https://github.com/MagicDroidX/PocketMine-MP into MagicDroidX-patch-6
2015-12-20 00:39:19 +01:00
4d5da41cd0
Fix autoSave in PlayerQuitEvent
2015-10-31 13:22:45 +08:00
3ffdb8e552
Removed @deprecated classes, methods and properties, added some type hints
2015-09-12 17:10:11 +02:00
fdf10b60dc
Added PlayerToggleSneakEVent and PlayerToggleSprintEvent
2015-08-08 13:10:59 +02:00
62a8f58bb0
Improved block and chunk cache, fixed PlayerQuitEvent player save
2015-06-06 20:28:37 +02:00
96f67bdadf
Added auto save to PlayerQuitEvent
2015-06-06 17:56:36 +02:00
9e14435dbb
Moved network ids to constants, improved some entity methods, more performance
2015-05-30 23:59:24 +02:00
8d468a1efb
Format fix
2015-04-11 21:59:55 +02:00
c29ae333a2
Translate format text
2015-04-11 02:15:46 +02:00
0c041ebca3
Added base translation system
2015-04-11 01:32:08 +02:00
5d102c2ede
Fixed backwards compatibility issue on PlayerInteractyEvent
2015-04-10 10:16:03 +02:00
0a85ad0d1f
Improved trees, improved inventory transactions, improved snowball/bow usage
2015-03-28 16:59:15 +01:00
9e0b9a6e5b
Added right and left click interaction events
2015-03-13 14:39:37 +01:00
7d406066a7
Added outdated event static properties
2015-01-11 19:37:21 +01:00
87970726e4
Added PlayerCreationEvent->setBaseClass()
2015-01-03 16:46:00 +01:00
1daf9a96a3
Added PlayerCreationEvent->setBaseClass()
2015-01-03 16:45:43 +01:00
6c8b33fcc8
Fixed PlayerCreationEvent
2015-01-03 16:41:14 +01:00
7ef8edccf4
Added PlayerCreationEvent
2015-01-03 16:38:00 +01:00
350cee3d41
Added Event allocation pool, updated SPL with Class::onClassLoaded()
2014-10-28 10:47:40 +01:00
43a97c407d
New PlayerMoveEvent, improved player movement event firing
2014-10-14 16:10:50 +02:00
da23cf685d
Added PlayerBucketEvent and children, improved Bucket usage and Liquid placing
2014-10-13 18:04:40 +02:00
eccf7b08d2
Added PlayerDeathEvent methods for inventory keeping
2014-10-09 11:06:05 +02:00
10b33546ef
Added PlayerBedEnterEvent and PlayerBedLeaveEvent
2014-10-08 17:37:11 +02:00
62af784d37
Removed unused imports
2014-10-08 17:00:23 +02:00
c40f9f65a5
Optimize imports
2014-08-26 11:54:24 +02:00
db7222976e
Code cleanup
2014-08-21 17:26:41 +02:00
65523972c2
Implemented health, events, damage, motion push
2014-07-06 23:10:11 +02:00
79cc6ca559
Multiple fixes
2014-06-25 02:03:58 +02:00
279a438ae6
Fixed spawning of Tile entities via chunk packets
2014-06-22 18:05:42 +02:00
fa50cbf4b3
Working Threaded Generation
2014-06-10 20:45:09 +02:00
596f4ddb0e
Added lots of new events, enabled old features
2014-06-05 01:05:52 +02:00
2b73da5412
Added Animation
2014-06-05 00:41:24 +02:00
2877f026ec
Added item drop
2014-06-05 00:31:16 +02:00
8d40f843cf
MainLogger can now have debug level disabled
2014-05-29 00:08:02 +02:00
53749483c3
Implemented new Inventory windows on Player, Chest and Furnace
2014-05-23 20:53:06 +02:00
6cbd39de9b
Added Inventory interfaces and types, updated long array() to []
2014-05-22 18:59:16 +02:00