@@ -2066,23 +2066,15 @@ static void clpHandler(Player player, CommandReader cmd)
20662066 Permissions = new Permission [ ] { Permission . Chat } ,
20672067 IsConsoleSafe = true ,
20682068 Usage = "/Plugins" ,
2069- Help = "Displays all plugins on the server." ,
2070- Handler = PluginsHandler
2071- } ;
2072-
2073- static void PluginsHandler ( Player player , CommandReader cmd ) {
2074- List < string > plugins = new List < string > ( ) ;
2075- player . Message ( "&c_Current plugins on {0}&c_" , ConfigKey . ServerName . GetString ( ) ) ;
2076-
2077- //Sloppy :P, PluginManager.Plugins adds ".Init", so this should split the ".Init" from the plugin name
2078- foreach ( Plugin plugin in PluginManager . Plugins ) {
2079- String pluginString = plugin . ToString ( ) ;
2080- string [ ] splitPluginString = pluginString . Split ( '.' ) ;
2081- plugins . Add ( splitPluginString [ 0 ] ) ;
2082- }
2083- player . Message ( String . Join ( ", " , plugins . ToArray ( ) ) ) ;
2084- }
2085- #endregion
2069+ Help = "Displays all plugins on the server." ,
2070+ Handler = PluginsHandler
2071+ } ;
2072+
2073+ static void PluginsHandler ( Player player , CommandReader cmd ) {
2074+ player . Message ( "Plugins in {0}&S:" , ConfigKey . ServerName . GetString ( ) ) ;
2075+ player . Message ( PluginManager . Plugins . JoinToString ( plugin => plugin . Name ) ) ;
2076+ }
2077+ #endregion
20862078 #region PingList
20872079
20882080 static readonly CommandDescriptor CdPingList = new CommandDescriptor {
0 commit comments