118 Commits

Author SHA1 Message Date
EvilSeph
94effa3f0e Clear 2012-10-30 01:18:01 -04:00
EvilSeph
8b5440766c Update ExpCommand with levels support. Fixes BUKKIT-2683 and partially fixes BUKKIT-2671 2012-10-29 23:18:18 -04:00
EvilSeph
2c63001a78 Add default SpawnpointCommand. Partially fixes BUKKIT-2671 2012-10-29 05:06:04 -04:00
EvilSeph
8cc80425f0 Add default WeatherCommand. Partially fixes BUKKIT-2671 2012-10-29 02:48:40 -04:00
EvilSeph
9ea682a4a1 Remove invalid tab completions from DefaultGameModeCommand as player names are not an accepted parameter. 2012-10-29 02:12:07 -04:00
EvilSeph
1f37a492b4 Add default DifficultyCommand. Partially fixes BUKKIT-2671 2012-10-29 01:53:31 -04:00
Travis Watkins
a446bb7e8f Update Bukkit for Minecraft 1.4(.2) changes. 2012-10-27 22:15:59 -04:00
Wesley Wolfe
ffbdc37ff9 Override toString() method in Command
Overriding the toString() method provides more human-readable feedback
when a problem occurs, including the version of the plugin if
applicable.
2012-10-19 15:46:28 -05:00
Score_Under
9fd9767a4a Add tab-completion API. Fixes BUKKIT-2181. Adds BUKKIT-2602
CommandMap contains a method that will auto-complete commands
appropriately. Before the first space, it searches for commands of which
the sender has permission. After the first space, it delegates to the
individual command.

Vanilla commands contain implementations to mimic vanilla
implementation. Exception would be give, that allows for name matching;
a feature we already allowed as part of the command is now supported for
auto-complete as well.

Plugin commands can get a tab completer set to delegate the completion
for. If no tab completer is set, it can check the executor to see if it
implements the tab completion interface. It will also attempt to chain
calls if null gets returned from these interfaces. Plugins also
implement the new TabCompleter interface, to add ease-of-use for plugin
developers, similar to the onCommand() method.

The default command implementation simply searches for player names.

To help facilitate command completion, a utility class was added with
two functions. One checks two strings, to see if the specified string
starts with (ignoring case) the second. The other method uses the first
to selectively copy elements from one collection to another.
2012-10-16 00:05:40 -05:00
Wesley Wolfe
b23edfd2d3 Let version print partial matches for plugin name. Addresses BUKKIT-2383
If no plugin is found with the given name, the version command will
search all loaded plugins to find a case insensitive partial match for
the specified name and print to the sender all matches.
2012-09-28 16:50:32 -05:00
feildmaster
3c91fdc121 Add spaces to gamemode message. Fixes BUKKIT-2148 2012-08-08 19:48:49 -05:00
feildmaster
9835a9868f Don't send duplicate messages for Gamemode and Time commands.
Gamemode gets sent with the packet.
2012-08-06 11:29:38 -05:00
feildmaster
61d302c232 Update commands to match 1.3 vanilla commands 2012-08-06 06:59:46 -05:00
feildmaster
b374b3b2cd Fail silently on incorrect number input 2012-08-06 06:59:45 -05:00
Travis Watkins
7789f67744 Test command permissions before running them. 2012-08-02 19:02:23 -05:00
feildmaster
0b304a288e Update Bukkit for 1.3.1 changes 2012-08-02 04:54:21 -05:00
feildmaster
3b42b1d170 Don't "setLastDamageCause" in the DamageEvent constructor. Addresses BUKKIT-1881
This is now done after the event to allow you to be able to get previous damageCauses, and is now only applied if the event is not canceled.
2012-07-03 14:09:51 -05:00
feildmaster
f83a59e19f Set help index page to 1 for invalid numbers. Fixes BUKKIT-1569 2012-04-30 17:47:27 -05:00
EvilSeph
20779ab582 Removed pointless counter and use .length in PluginsCommand. Thanks nallar! 2012-04-02 16:28:58 -04:00
Dinnerbone (Laptop)
a0be4ef416 Updated version to 1.2.5-R0.1-SNAPSHOT, changed commands to match vanilla 2012-03-30 23:34:18 +02:00
EvilSeph
7f5c03101e Added plugin count to the PluginsCommand. 2012-03-22 21:40:31 -04:00
rmichela
3a737b3a27 [Bleeding] Moved HelpTopicComparator to Bukkit.jar. Addresses BUKKIT-1193 2012-03-16 03:48:22 -04:00
rmichela
776745c335 [Bleeding] Added automatically generated plugin-level sub-indexes to the master help index. Addresses BUKKIT-1180 2012-03-16 02:47:14 -04:00
rmichela
d6e1f63529 Aesthetic changes to the /help command. 2012-03-16 02:44:30 -04:00
rmichela
494c913fef [Bleeding] Added option to remove entire plugins from the help index using the help.yml file. Addresses BUKKIT-1178 2012-03-16 02:42:12 -04:00
rmichela
76cc010776 [Bleeding] Help command should properly wrap command text - at least for english. Fixes BUKKIT-939 2012-03-08 02:02:12 -05:00
rmichela
b8444288a9 [Bleeding] Added Help API. Addresses BUKKIT-863 2012-03-01 04:28:21 -05:00
rmichela
463856b8a0 [Bleeding] Added Conversations API. Addresses BUKKIT-864 2012-03-01 03:52:18 -05:00
Wesley Wolfe
ca7aab6f4f [Bleeding] Cleaned up unsafe casts. Addresses BUKKIT-844
Removed internal collection leaks from PluginDescriptionFile
BREAKING: PluginDescriptionFile.getAuthors() now returns List instead of
ArrayList

Various places with unsafe generics, notably List<Object> getList() in
Configurations are now referenced as <?>. This is nonbreaking, but
sourcecode will need to be revised when compiled.
2012-02-29 10:23:16 -05:00
Score_Under
eb3c161180 [Bleeding] Fixed file handle leak in /timings command. Addresses BUKKIT-853 2012-02-29 09:52:57 -05:00
TomyLobo
93521af608 Event system optimizations. Addresses BUKKIT-813
- Made the handlers field a simple array instead of an array of arrays.
- Got rid of the "baked" field.
2012-02-28 21:57:16 -05:00
Feildmaster
b66ede2821 Improved readability for /whitelist list. Addresses BUKKIT-772 2012-02-19 10:29:14 -05:00
Erik Broes
049a7cc1d0 Deprecation cleanup. 2012-02-18 13:05:58 -05:00
Travis Watkins
e675ff791d Fixed typos and add usage message to timings command. 2012-02-10 18:19:58 -05:00
Wesley Wolfe
465818ef42 [Bleeding] Implemented customizable permission messages. 2012-02-09 04:02:11 -05:00
Travis Watkins
5e6125e01b [Bleeding] Added Vanish API for hiding players from each other.
Adds Player.hidePlayer, Player.showPlayer, and Player.canSee for managing
what players are hidden from a player. When someone is hidden from a player
the player cannot see them in the user list or /list and they cannot /tell
them so they appear to be completely gone from the server.
2012-02-03 03:32:21 -05:00
EvilSeph
8d19709c5a Added spacing to BanListCommand output. 2012-01-23 20:30:21 -05:00
Tahg
468d45b761 Updated timing code for new event system 2012-01-19 18:41:04 -05:00
Erik Broes
88c17a7f86 Generic cleaning 2012-01-15 14:37:43 +01:00
Tahg
b063a7246a Added timings command. 2012-01-09 23:44:17 -05:00
Tahg
f6154042c0 Added data argument to vanilla give command 2012-01-09 01:20:54 -05:00
EvilSeph
b1815cc6c6 Added banlist command. Fixes BUKKIT-373. Thanks md-5! 2012-01-07 19:54:02 -05:00
Erik Broes
b9fca3c04d Generic cleanup of warnings, whitespace and style. 2011-12-25 16:02:30 +01:00
Andrew Ardill
db33bcd1e4 BREAKING: Change ConsoleCommandSender to an interface.
Implementations will now need to implement the console command sender.
This is done to increse the separation between the Bukkit API and it's
implementations. This allows the implementations more freedom when dealing
with consoles and reducing chances for breaking plugin compatibility in the
future.
2011-12-07 17:42:33 +11:00
Andrew Ardill
818842e652 Teach the API about Remote Consoles
This will allow us to raise events for remote consoles, and provide access
to them at a later date. Relates to BUKKIT-220
2011-12-07 17:42:32 +11:00
Nathan Adams
8d55e127bc I do believe that I made a typo 2011-12-04 11:08:40 +00:00
Nathan Adams
4155b1fb6c Added cause to PlayerTeleportEvent 2011-12-04 11:03:32 +00:00
Nathan Adams
2406704752 Bukkit will no longer leak tears. He has been cheered up. 2011-12-04 10:41:46 +00:00
Nathan Adams
edf26dfd5e Added /xp and /toggledownfall commands from vanilla 2011-12-02 06:38:33 +00:00
Nathan Adams
e8004b0494 Made /version output same as startup output 2011-11-23 05:55:32 +00:00