56 Commits

Author SHA1 Message Date
Dylan K. Taylor
c123f2d10b SimpleCommandMap: clean up error reporting in registerServerAliases() 2018-08-25 15:43:23 +01:00
Dylan K. Taylor
05af87e1d4 Strip empty lines at the end of classes 2018-06-11 13:19:23 +01: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
JackNoordhuis
060426ff12 Add ability to unregister a command completely, close #1229 (#1464) 2017-10-13 11:55:36 +01:00
Dylan K. Taylor
ff2b3bfa2a SimpleCommandMap: remove some dupe and arrange commands alphabetically 2017-09-18 18:43:06 +01:00
Dylan K. Taylor
319735db3a Add support for quoting command arguments
Un-escape quotes in inputted strings
2017-09-14 10:15:30 +01:00
Dylan K. Taylor
acaa0d2740 Translate command usage messages server-side, close #236 2017-07-30 21:14:40 +01:00
Dylan K. Taylor
9390866a13 Fix derp 2017-07-14 11:00:59 +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
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
51b0673b4b Bite the bullet and enable strict types on everything 2017-06-07 12:53:16 +01:00
TheDiamondYT1
653b6b55a9 Added title command and API for resetting title duration 2017-04-27 16:38:51 +01:00
Dylan K. Taylor
5332887a0a Fixed command name case sensitivity issue noted in #462 2017-03-25 10:26:06 +00:00
Dylan K. Taylor
c040579e09 Fixed a mistake in spaced command handling
Nothing drastic, just a self-defeating line of code.
2017-03-21 15:11:48 +00:00
Dylan K. Taylor
3138e02acb Added support for commands with spaces in their names (#422) 2017-03-13 20:55:06 +00:00
Dylan K. Taylor
d264a04db4 Added detection for recursive server aliases (#424)
* Added detection for recursive server aliases, close #423

* Oops
2017-03-13 20:43:34 +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
SOF3
6fc435da0e
Imports rearrangement 2016-10-03 00:43:46 +08:00
Shoghi Cervantes
0bcf639a98 Changed how exceptions work and are logged, throw proper exceptions on tasks 2015-09-18 12:03:24 +02:00
Shoghi Cervantes
e137ac4c56 Base PHP7 work to make it "run" - READ NEXT LINES!
All plugins will need to bump the API if they want to use this.
NOTE THAT THIS IS NOT THE FINAL API 2.0.0 AND THAT THERE WILL BE MORE CHANGES.
To start updating, you might also want to read https://secure.php.net/manual/en/migration70.php and specifically https://secure.php.net/manual/en/migration70.incompatible.php

To compile PHP7 with some of the required dependencies, use https://gist.github.com/shoghicp/166ab26ce5cc7a390f45
ONLY LINUX IS TESTED, DO NOT ASK FOR OTHER PLATFORMS!

----- THIS VERSION IS NOT SUPPORTED -----

This version WILL crash randomly in unexpected places due to PHP7, pthreads, PocketMine or cosmic rays.

Handle with care, and store under direct sunlight for the best performance.
2015-09-10 21:29:29 +02:00
Shoghi Cervantes
f093a6498d Added base enchantment adding utilities, /enchant command 2015-08-08 16:03:04 +02:00
Shoghi Cervantes
b166628940
Added ability to dump memory 2015-06-19 13:01:49 +02:00
Shoghi Cervantes
ac2bcf7e30 Made /list output similar to PC output 2015-06-09 12:21:00 +02:00
Shoghi Cervantes
d6ebff412c
Added ChunkLoader interface 2015-05-16 15:28:31 +02:00
Shoghi Cervantes
3b6e10b759
More langs :D 2015-04-11 14:59:15 +02:00
Shoghi Cervantes
0c041ebca3
Added base translation system 2015-04-11 01:32:08 +02:00
Shoghi Cervantes
a2b3e48b45
Added /particle command 2015-03-20 03:37:58 +01:00
Shoghi Cervantes
4383e272eb
Added Effects base, /effect and methods 2015-03-15 23:15:54 +01:00
Shoghi Cervantes
074c8b876d
Cleaned up code 2015-01-03 16:07:49 +01:00
Shoghi Cervantes
747f7685e7 Fix formatting issues due to bad IDE settings 2014-12-07 16:30:04 +01:00
Shoghi Cervantes
4a90ac270f Improved exception handling and debugging 2014-11-22 13:52:36 +01:00
Shoghi Cervantes
ca9fe1b89a Improved and fixed command exception message, closes #2301 2014-11-18 13:46:00 +01:00
Shoghi Cervantes
500a690cd0 Throw CRITICAL error message on unhandled Exception on commands instead of crashing 2014-10-15 18:35:42 +02:00
Shoghi Cervantes
db7222976e Code cleanup 2014-08-21 17:26:41 +02:00
Shoghi Cervantes
67b0c4bc2e Added base timings 2014-07-12 02:26:06 +02:00
Shoghi Cervantes
d4881260da Added check for registered alias command, useful when overriding 2014-06-30 21:14:00 +02:00
Shoghi Cervantes
f14fecbb5f Added /time command 2014-06-17 18:36:39 +02:00
Shoghi Cervantes
032710a2de Added integrated command aliases 2014-06-17 15:21:06 +02:00
Shoghi Cervantes
73b9b2491f Added custom settings, update notification 2014-06-16 19:34:47 +02:00
Shoghi Cervantes
a2b3a4bb90 Removed not valid TimeCommand 2014-05-23 22:46:08 +02:00
Shoghi Cervantes
53749483c3 Implemented new Inventory windows on Player, Chest and Furnace 2014-05-23 20:53:06 +02:00
Shoghi Cervantes
6cbd39de9b Added Inventory interfaces and types, updated long array() to [] 2014-05-22 18:59:16 +02:00
onebone
3e575ad505 Added time command 2014-05-18 22:56:01 +09:00
Shoghi Cervantes
e9aba34e6b Added /setworldspawn 2014-04-10 18:50:41 +02:00
Shoghi Cervantes
80f9093875 Added /reload command (does not reload source code) 2014-04-03 15:49:00 +02:00
Shoghi Cervantes
0865381881 Moved /status into debug.commands 2014-04-03 13:16:15 +02:00
William Teder
48f2927e08 Re-enable support for debug information with /status 2014-04-02 21:14:22 -05:00
Shoghi Cervantes
c81266d1da Added /tp 2014-04-02 19:04:07 +02:00
Shoghi Cervantes
8c4afcd21a Added /spawnpoint 2014-04-02 18:40:24 +02:00