Title: Minecraft Online Players Widget
Author: pirmax
Published: <strong>July 4, 2012</strong>
Last modified: December 24, 2015

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/minecraft-onlineusers-widget_ce897c.
svg)

# minecraft-onlineusers-widget

 By [pirmax](https://profiles.wordpress.org/pirmax/)

 * [Details](https://wordpress.org/plugins/minecraft-onlineusers-widget/#description)
 * [Reviews](https://wordpress.org/plugins/minecraft-onlineusers-widget/#reviews)
 * [Development](https://wordpress.org/plugins/minecraft-onlineusers-widget/#developers)

 [Support](https://wordpress.org/support/plugin/minecraft-onlineusers-widget/)

## Description

This plugin has been closed as of December 7, 2023 and is not available for download.
Reason: Guideline Violation.

## Reviews

![](https://secure.gravatar.com/avatar/5ed256c926910320f6b2614de0e51a2c9dd9a54fb26495f0da60d302c8b69647?
s=60&d=retro&r=g)

### 󠀁[Great plugin! but a couple of lines of bad code…I fixed it though](https://wordpress.org/support/topic/great-plugin-but-a-couple-of-lines-of-bad-codei-fixed-it-though/)󠁿

 [aeckard87](https://profiles.wordpress.org/aeckard87/) July 16, 2017

Update to review… 7/16/17 Since it’s been over a year and the plugin hasn’t been
updated I’m dropping my review. Original review 3/15/16 This plugin almost nearly
works perfectly, except for when there actually aren’t any players on the server…
I found the mistakes and corrected them, may want to revise and send an update. 
I’ve commented out the area not working properly and directly below is the updated
code In MinecraftQuery.class.php public function GetPlayers( ) { //return isset(
$this->Players ) ? $this->Players : false; return $this->Players; } And in widget.
class.php line 54 function widget($args, $instance) //if($GetPlayers !== false) 
if(!empty($GetPlayers)) { foreach ($GetPlayers as $i => $value) { if($instance['
displayAvatar'] !== 1) { $displayWidget .= '<li><img src="https://minotar.net/helm/'.
$value . '/' . $instance['avatarSize'] . '.png" width="' . $instance['avatarSize'].'"
height="' . $instance['avatarSize'] . '" border="0" title="' . $value . '" alt="
avatar_' . $value . '" class="avatar" />' . $value . '</li>'; } else { $displayWidget.
= '<li>' . $value . '</li>'; } } $resnbPlayer = count($GetPlayers); } else { $displayWidget.
= '<li>' . $instance['ifNoPlayer'] . '</li>'; $resnbPlayer = 0; } just make sure
to change the return to $this->Players in the GetPlayers() function Originally what
it is returning is false if there are no players and this is causing the if($GetPlayers!
== false) in the widget function to pass as true since $GetPlayers was set to false
you were effectively comparing if(false !== false) -> this is a true statement… 
Please take the time to update the plugin, very nice 🙂 and thank you for the time
you spent on it.

![](https://secure.gravatar.com/avatar/c484b7e40caabf238bc76e75ec883b2a3c05c1eebd17650104e4572b8ba9adea?
s=60&d=retro&r=g)

### 󠀁[Works with Modifications](https://wordpress.org/support/topic/works-with-modifications/)󠁿

 [disi](https://profiles.wordpress.org/disi/) July 15, 2017 1 reply

The Plugin works with the Modifications from @aeckard87 Quite a bit cheeky for the
mod creator to want donation for an not finished and not mantained plugin …

![](https://secure.gravatar.com/avatar/c9075664007358db0e92a45d31921e87097c4536409101f63c53cc468db3eb44?
s=60&d=retro&r=g)

### 󠀁[Partially broken](https://wordpress.org/support/topic/partially-broken/)󠁿

 [HotRod](https://profiles.wordpress.org/hotrod/) September 3, 2016

Heads query has wrong url’s. No translation possibility without altering the php
files. It does what I need it to do, but remember that it query on UDP and not TCP.
I have rewritten the code to make the heads display work again, and I have translated
the whole plugin to English.

 [ Read all 7 reviews ](https://wordpress.org/support/plugin/minecraft-onlineusers-widget/reviews/)

## Contributors & Developers

“Minecraft Online Players Widget” is open source software. The following people 
have contributed to this plugin.

Contributors

 *   [ pirmax ](https://profiles.wordpress.org/pirmax/)

[Translate “Minecraft Online Players Widget” into your language.](https://translate.wordpress.org/projects/wp-plugins/minecraft-onlineusers-widget)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/minecraft-onlineusers-widget/),
check out the [SVN repository](https://plugins.svn.wordpress.org/minecraft-onlineusers-widget/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/minecraft-onlineusers-widget/)
by [RSS](https://plugins.trac.wordpress.org/log/minecraft-onlineusers-widget/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **3.1**
 *  Last updated **10 years ago**
 *  Active installations **N/A**
 *  WordPress version ** 3.0.1 or higher **
 *  Tested up to **4.4.34**
 *  [Advanced View](https://wordpress.org/plugins/minecraft-onlineusers-widget/advanced/)