Fixes SPIGOT-906 - issue with the grammar used in timings command.

This commit is contained in:
olivervscreeper 2015-05-25 22:37:22 +01:00
parent e6727223f8
commit dd2580a742

View file

@ -253,7 +253,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ +
+ String location = con.getHeaderField( "Location" ); + String location = con.getHeaderField( "Location" );
+ String pasteID = location.substring( "http://paste.ubuntu.com/".length(), location.length() - 1 ); + String pasteID = location.substring( "http://paste.ubuntu.com/".length(), location.length() - 1 );
+ sender.sendMessage( ChatColor.GREEN + "View timings results can be viewed at http://www.spigotmc.org/go/timings?url=" + pasteID ); + sender.sendMessage( ChatColor.GREEN + "Timings results can be viewed at http://www.spigotmc.org/go/timings?url=" + pasteID );
+ } catch ( IOException ex ) + } catch ( IOException ex )
+ { + {
+ sender.sendMessage( ChatColor.RED + "Error pasting timings, check your console for more information" ); + sender.sendMessage( ChatColor.RED + "Error pasting timings, check your console for more information" );