Looking for online player counter.

Status
This thread has been locked.

xLightbulbx

Supreme
Feedback score
1
Posts
105
Reactions
16
Resources
0
Hey, I'm looking for a way to create an online player counter with php/html... I'm sure there is one out there. If anyone knows of one, or is willing to create a simple one, please let me know. Thanks!
 
Type
Requesting
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Hi there,

My name is James. I'm apart of an upcoming company called Roar. We would most definitely be able to do this for you. My skype is (JamGoingHam), feel free to add me on there so we can discuss this further.

Kind regards,
James
For free?
 

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
No, He wanted to charge me $5.
What a dickhead xD

Here:
HTML:
<link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
<script src="https://mcapi.us/scripts/minecraft.js"></script>
<style type="text/css">
body {
    overflow:hidden;
}
h3 {
    font-family: 'Montserrat', sans-serif;
     }
</style>
<div class="server-status">
  <p><h3>Join Now! Server Name Here!
Online:
    <span class="players-now"></span>/<span class="players-max"></span>
  </h3></p>
</div>
<script>
  MinecraftAPI.getServerStatus('Server.Ip.HERE', {
    port: 25565 // optional, only if you need a custom port
  }, function (err, status) {
    if (err) {
      return document.querySelector('.server-status').innerHTML = 'Error';
    }
    document.querySelector('.players-now').innerHTML = status.players.now;
    document.querySelector('.players-max').innerHTML = status.players.max;
  });
</script>
 

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Buddy, just because someone doesn't want to do a task for free doesn't make them a dick head. He has what he needs he's just incapable of doing such task. Fact that you have to insult him for wanting to make some money shows that you yourself are a dickhead.
$5 is an outrageous price for such a simple script, if he wanted $0.50 for it, ok, but not $5.
 

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Come on mate, that doesn't mean a damn thing. It's his choice of pricing if he wishes to charge $0.50 or $50 or $100 it doesn't matter doesn't make him or anyone a dick head.
For fuck sakes, Xenforo charges $50 to install their service I don't see anyone calling them dickheads. If the op believes it's overpriced he's not in any way obligated to pay.
And I choose to give it away for free ;)
 

Christopher

Floating around
Supreme
Feedback score
8
Posts
2,048
Reactions
1,120
Resources
0
Congrats now you should be a "good" person and apologize to this good sir for calling him a dick head which was indeed unneeded.
Firstly, why are we still here wasting each other's time?

Secondly, if walk into a McDonald's and ask for tomato sauce/ketchup and the guy at the counter says "Sure mate, that will be $15" your telling me your not going to call him a dickhead? Either way, my point is that people need to be sensible when setting prices. This will be my last reply on the mater.[DOUBLEPOST=1485050324][/DOUBLEPOST]
Christopher
After setting up your php script in my index.php, all i get is this...
2a77e3009eb3e024d95fb4f87f5d4e27.png

5e9d6777410321ba8160345a184e4669.png
Did you set the correct port? Does your host allow external connections?
 
Last edited:

xLightbulbx

Supreme
Feedback score
1
Posts
105
Reactions
16
Resources
0
I have no idea if they allow external connections, my host is "https://clovux.net/web/". Sorry, that was my old host.. my host is now "one.com"
and yes my ip and port are correct.
 
Last edited:
Status
This thread has been locked.
Top