Dylan K. Taylor
c26e3aa9fa
GiveCommand: Make invalid player checking logic less confusing
...
some code in this namespace is just total WTF...
2018-02-15 18:19:41 +00:00
Dylan K. Taylor
aeba15c5c6
GiveCommand: don't crash when an invalid item is specified
2018-02-15 18:18:09 +00:00
Dylan K. Taylor
e7e4645c0b
Fixed a wide range of bugs with floating-point coordinates getting incorrectly int-casted
...
This causes lots of bugs in negative coordinates.
This fixes #1789 after world load & save.
2018-02-15 10:27:42 +00:00
Dylan K. Taylor
610e62e2cd
Timings: don't return the paste we just sent in the response
2018-02-11 11:56:16 +00:00
Dylan K. Taylor
906442136b
Merge branch 'legacy/alpha11'
2018-02-11 09:56:10 +00:00
Dylan K. Taylor
3600542d78
Timings: fixed pastes not working after ubuntu pastebin update
2018-02-11 09:55:52 +00:00
Dylan K. Taylor
906d7eb176
Lang: Move TranslationContainer and TextContainer to \pocketmine\lang namespace
...
why the hell were they ever put in \pocketmine\event in the first place??
This change was suggested many months ago but I forgot all about it.
2018-02-04 20:03:30 +00:00
Dylan K. Taylor
9014eb72e9
TeleportCommand: Fixed the bug fix again
...
This all comes from a shitty bugfix by @PEMapModder. Should be applied globally really, but it wasn't - and not properly tested either :P
2018-01-30 15:08:11 +00:00
Dylan K. Taylor
0e538ee51d
Enchantment: Split up enchantment type data and enchantment instance data ( #1825 )
...
* Enchantment: Split enchantment type data from instance data
This commit splits enchantments into (effectively) enchantment TYPES vs enchantment INSTANCES.
When applying an enchantment to an item, it only needs to know 2 things:
1. the enchantment ID (identifier) which is used to identify the TYPE
2. the enchantment LEVEL which is used to modify the enchantment's power IN THIS INSTANCE.
Therefore, the LEVEL is not an immutable property. However, all other properties of the currently-named "Enchantment" class are immutable type properties.
Currently, when applying an enchantment to an item, a copy of the enchantment object is created from the registry, and returned. This copies all of the properties contained by the type, which is obviously sub optimal.
2017-12-21 12:40:33 +00:00
Dylan K. Taylor
4f8e4f0522
Add EOF newlines where missing (bulk) ( #1836 )
...
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
2017-12-20 11:56:36 +00:00
Dylan K. Taylor
9fd7312629
EnchantCommand: Fix vanilla translation
...
This parameter isn't required server side, but it doesn't matter anyway.
2017-12-16 10:34:38 +00:00
Dylan K. Taylor
74b074753f
Bulk addition of constant visibilities
...
thanks PhpStorm inspections plugin for annoying the shit out of me until
I did this.
2017-11-21 14:44:10 +00:00
Dylan K. Taylor
c75e62b38c
Fix /gamemode output again
2017-11-19 15:28:34 +00:00
Dylan K. Taylor
38fad4b963
Implement difficulty per-world ( #878 )
...
* Moved Server::getDifficultyFromString() to Level
* Added ability to set difficulty in worlds section of pocketmine.yml for generation
2017-09-26 11:16:51 +01:00
Dylan K. Taylor
b5d2402c9b
Merge branch 'master' into mcpe-1.2
2017-08-28 18:02:09 +01:00
Dylan K. Taylor
f2402f2122
Strict-compare these to strings since they cannot return anything but
2017-08-27 19:32:57 +01:00
Dylan K. Taylor
445a67954d
Merge changes from master
2017-08-22 14:13:31 +01:00
Dylan K. Taylor
592ce3c9e9
Adding some missed commands typehints and documentation
2017-08-21 19:02:30 +01:00
Dylan K. Taylor
876659cc73
Item factory refactor and added capability to register custom items
2017-08-21 17:49:26 +01:00
Dylan K. Taylor
1f70a7830e
Branch merge
2017-08-20 21:07:19 +01:00
Dylan K. Taylor
02f42eba48
Move block registration to its own class
2017-08-20 18:05:01 +01:00
Dylan K. Taylor
fbe2567e58
Merge branch 'master' into mcpe-1.2
2017-08-16 12:31:12 +01:00
Dylan K. Taylor
ae3a8a5493
Added capability to unblock addresses without a restart
2017-08-14 14:12:06 +01:00
Dylan K. Taylor
1e539c4e3b
fix some 1.2 translation issues, close pmmp/PocketMine-Language#19
2017-08-09 21:40:20 +01:00
Dylan K. Taylor
5f6dc25c9f
Fixed EnchantCommand being retarded, close #1012
2017-08-05 21:27:57 +01:00
Dylan K. Taylor
3b7fc21839
Enchantment API changes, understandable constant names
2017-08-05 21:27:57 +01:00
hmy2001
2b4e303f52
Fix client-side translation for gamemode change
2017-08-05 12:05:35 +01:00
Dylan K. Taylor
dbb92096e4
More typehints, documentation fixes and static analysis cleanup
2017-07-15 12:12:06 +01:00
Dylan K. Taylor
c3b8be3f60
and more typehints
2017-07-14 10:56:51 +01:00
Dylan K. Taylor
8bb0c53797
More typehints for Command stuff
2017-07-14 08:52:27 +01:00
Dylan K. Taylor
2a7b736f18
Heap of bugfixes, cleanup and PHP 7 upgrades
2017-07-13 19:18:56 +01:00
Dylan K. Taylor
a7f5ee2f3e
Added capability to get/set screen height in lines for each CommandSender to alter page sizes of command output such as /help ( #1144 )
2017-07-13 10:57:10 +01:00
Dylan K. Taylor
97f6a32557
Changed usage message displaying to exceptions to reduce boilerplate code
...
Someday this won't need to be done by commands themselves, it'll be done by the parser.
2017-07-04 13:45:00 +01:00
Dylan K. Taylor
dca7efa03c
Fixed crash when /teleporting with yaw/pitch
2017-07-03 13:26:38 +01:00
Dylan K. Taylor
08d4d7fe0e
Fix /banlist and /whitelist list when no players are in the lists, close #1146
2017-06-28 10:28:43 +01:00
Dylan K. Taylor
a365c831a8
Fixed some doc problems
2017-06-25 12:07:28 +01:00
Dylan K. Taylor
03826d9cbc
Fixed player spawnpoints glitching and not saving
2017-06-21 12:17:26 +01:00
Dylan K. Taylor
9e99252817
Improved ListCommand and fixed crash when no players are online
...
I <3 closures
2017-06-11 10:56:16 +01:00
Dylan K. Taylor
51b0673b4b
Bite the bullet and enable strict types on everything
2017-06-07 12:53:16 +01:00
Dylan K. Taylor
eda7965f86
Fixed wrong types in ParticleCommand
2017-06-04 14:22:12 +01:00
Dylan K. Taylor
afd90adb1c
Refactored JSON-parsing NBT utilities into their own class
2017-05-20 12:24:10 +01:00
Dylan K. Taylor
eaef2bd169
Fixed some inspections
2017-05-04 12:19:50 +01:00
TheDiamondYT1
653b6b55a9
Added title command and API for resetting title duration
2017-04-27 16:38:51 +01:00
SOFe
5a9b5db103
Better cURL API, use async in timings ( #834 )
...
* Improved cURL functions
* Created BulkCurlTask
* Use asynchronous cURL posting in /timings paste
Closes #509
2017-04-25 11:52:18 +01:00
Dylan K. Taylor
2d927db264
Implemented Instant Health and Instant Damage effects
2017-03-21 11:38:08 +00:00
Dylan K. Taylor
c7fdbea0f0
Merge branch 'master' into api3/network
2017-03-08 20:35:41 +00:00
Dylan K. Taylor
56990eb28b
MCPE protocol gets its own namespace
2017-03-08 20:28:39 +00:00
Dylan K. Taylor
554816b8b6
Added configuration option to pocketmine.yml to allow changing timings host, added new host mcpetimings.com
2017-03-07 09:24:32 +00:00
Dylan K. Taylor
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
Intyre
1908ed5812
Fix for incorrect gamemode messages, close #83 ( #86 )
...
Shows the correct message ingame but not in the console.
PocketMine doesn't handle the translation for gamemode changes, MCPE
does. No idea why but it requires the second and third parameter....
commands.gamemode.success.other=Set %2$s's game mode to %3$s
commands.gamemode.success.self=Set own game mode to %3$s
To solve the problem we have to change the language files and let
PocketMine-MP translate it.
2017-02-15 14:48:11 +00:00