Révision b0b39b01
Ruby plugins: apply style changes as suggested by "rubocop --fix-layout"
| plugins/minecraft/minecraft-users | ||
|---|---|---|
| 8 | 8 |
require 'socket' |
| 9 | 9 |
|
| 10 | 10 |
if ARGV[0] == 'config' |
| 11 |
puts "graph_title Connected players"
|
|
| 12 |
puts "graph_vlabel players"
|
|
| 13 |
puts "players.label players"
|
|
| 14 |
puts "graph_info Number of players connected to Minecraft"
|
|
| 15 |
puts "graph_category games"
|
|
| 16 |
exit
|
|
| 11 |
puts "graph_title Connected players" |
|
| 12 |
puts "graph_vlabel players" |
|
| 13 |
puts "players.label players" |
|
| 14 |
puts "graph_info Number of players connected to Minecraft" |
|
| 15 |
puts "graph_category games" |
|
| 16 |
exit |
|
| 17 | 17 |
end |
| 18 | 18 |
|
| 19 | 19 |
host = ENV['host'] |
Formats disponibles : Unified diff