|
5 | 5 | # =============================================================================
|
6 | 6 | # >> IMPORTS
|
7 | 7 | # =============================================================================
|
8 |
| -# Python Imports |
9 |
| -# Warnings |
10 |
| -from warnings import warn |
11 | 8 | # Source.Python Imports
|
12 | 9 | # Commands
|
13 | 10 | from commands.typed import TypedServerCommand
|
|
29 | 26 | def _sp_plugin_load(command_info, plugin):
|
30 | 27 | """Load a plugin."""
|
31 | 28 | _core_command.load_plugin(plugin)
|
32 |
| - |
33 |
| -@_core_command.server_sub_command(['load']) |
34 |
| -def _sp_load(command_info, plugin): |
35 |
| - """Load a plugin.""" |
36 |
| - warn('"sp load" will be removed soon. Use "sp plugin load" instead.', |
37 |
| - DeprecationWarning) |
38 |
| - _core_command.load_plugin(plugin) |
39 | 29 |
|
40 | 30 | @_core_command.server_sub_command(['plugin', 'unload'])
|
41 | 31 | def _sp_plugin_unload(command_info, plugin):
|
42 | 32 | """Unload a plugin."""
|
43 | 33 | _core_command.unload_plugin(plugin)
|
44 | 34 |
|
45 |
| -@_core_command.server_sub_command(['unload']) |
46 |
| -def _sp_unload(command_info, plugin): |
47 |
| - """Unload a plugin.""" |
48 |
| - warn('"sp unload" will be removed soon. Use "sp plugin unload" instead.', |
49 |
| - DeprecationWarning) |
50 |
| - _core_command.unload_plugin(plugin) |
51 |
| - |
52 | 35 | @_core_command.server_sub_command(['plugin', 'reload'])
|
53 | 36 | def _sp_plugin_reload(command_info, plugin):
|
54 | 37 | """Reload a plugin."""
|
55 | 38 | _core_command.reload_plugin(plugin)
|
56 | 39 |
|
57 |
| -@_core_command.server_sub_command(['reload']) |
58 |
| -def _sp_reload(command_info, plugin): |
59 |
| - """Reload a plugin.""" |
60 |
| - warn('"sp reload" will be removed soon. Use "sp plugin reload" instead.', |
61 |
| - DeprecationWarning) |
62 |
| - _core_command.reload_plugin(plugin) |
63 |
| - |
64 | 40 | @_core_command.server_sub_command(['plugin', 'list'])
|
65 | 41 | def _sp_plugin_list(command_info):
|
66 | 42 | """List all currently loaded plugins."""
|
67 | 43 | _core_command.print_plugins()
|
68 | 44 |
|
69 |
| -@_core_command.server_sub_command(['list']) |
70 |
| -def _sp_list(command_info): |
71 |
| - """List all currently loaded plugins.""" |
72 |
| - warn('"sp list" will be removed soon. Use "sp plugin list" instead.', |
73 |
| - DeprecationWarning) |
74 |
| - _core_command.print_plugins() |
75 |
| - |
76 | 45 |
|
77 | 46 | # =============================================================================
|
78 | 47 | # >> DESCRIPTIONS
|
|
0 commit comments