Giter Site home page Giter Site logo

andrewse02 / minequery-remastered Goto Github PK

View Code? Open in Web Editor NEW

This project forked from indieguts/minequery-remastered

0.0 0.0 0.0 2.37 MB

Get the information of a Minecraft server using MineQuery Remastered!

License: GNU General Public License v3.0

PHP 100.00%

minequery-remastered's Introduction

Reminders:

[x] - Add basic examples

[ ] - Complete the ReadMe

Feature Requests:

[x] - Examples

[ ] - Example Project Page - Currently being created by Andrewboy159

Donators:

[ ] - Currently none

Servers using MineQuery:

[ ] - Currently none

MineQuery-Remastered

Get the information of a Minecraft server using MineQuery Remastered!

** Reminder: **

You'll need to download the core.minequery-remastered.php file, and upload it into your project. (I suggest creating a folder called "core" and placing this inside there)

** "How can I load the core?" **

Place this PHP snippet into your content where you wish to place the server information

<?php // Load MineQuery - Remastered Core
	require('path/to/core.minequery-remastered.php');
	$minequery = new MineQueryRemastered;
?>

** "How can I include it on multiple pages, without spamming the snippet on each page?" **

If you know common PHP practices, you can simply place the snippet into a header.php file, then require that header.php onto all of your pages!

** "What server information can I get using MineQuery Remastered?" **

Please read the below information, and examples!

** playerSkin - Use this to get a players skin. **

Specify the players "Username", Size of the picture, then "true" or "false" to also apply their hat.

<?=$minequery::playerSkin("IndieGuts", 150, "true"); ?>

** rawSkin - Use this to get a rawskin of a player **

Specify the players "Username"

<?=$minequery::rawSkin("IndieGuts"); ?>

** playerHead **

Specify the players "Username", Size of the picture, then "true" or "false" to also apply their hat.

<?=$minequery::playerHead("IndieGuts", 150, "true"); ?>PHP

** Minecraft & Mojang Server Status **

<?=$minequery::statusMinecraft(); ?> » Returns the status of minecraft.net
<?=$minequery::statusMojang(); ?> » Returns the status of session.minecraft.net
<?=$minequery::statusMinecraftSessions(); ?> » Returns the status of account.mojang.com
<?=$minequery::statusAccountAuth(); ?> » Returns the status of authserver.mojang.com
<?=$minequery::statusAuthServer(); ?> » Returns the status of sessionserver.mojang.net
<?=$minequery::statusMojangSession(); ?> » Returns the status of api.mojang.com
<?=$minequery::statusAPI(); ?> » Returns the status of mojang.com

** isItUp **

Using this, you can check if an IP, or domain is currently online, or offline! Simply specify a destination!

<?=$minequery::isItUp("play.indieguts.com"); ?>

** Minecraft Server Information **

Please read below for features that you can use to get information from Minecraft servers!

** Favicon **

Use this to get the favicon (server icon) of a server! Simply specify a server domain or IP!

<?=$minequery::favicon("us.mineplex.com"); ?>

** Status ** Use this to get the status of a server! Simply specify a server domain or IP!

<?=$minequery::status("play.indieguts.com"); ?>

** Ping **

Use this to get the viewers ping to the server! Simply specify a server domain or IP! » Will return the viewers ping to the destination

<?=$minequery::ping("play.indieguts.com"); ?>

** Online **

Use this to check how many players are online in a server! Simply specify a server domain or IP!

<?=$minequery::online("play.indieguts.com"); ?>

** Maxplayers **

Use this to get the max players limit on a server! Simply specify a server domain or IP!

<?=$minequery::maxplayers("play.indieguts.com"); ?>

** Version **

Returns the server version! Simply specify a server domain or IP! » May also specify multiple versions if supported

<?=$minequery::version("play.indieguts.com"); ?>

** Protocol **

Get the protocol version of a server! Simply specify a server domain or IP!

<?=$minequery::protocol("play.indieguts.com"); ?>

** MOTD **

Use this to get the MOTD of a server! Specify the server domain or IP, then use true to get the & colors, or false, to turn the colors to HTML colors!

<?=$minequery::motd("us.mineplex.com", false); ?>

** Port **

Get the port version of a server! Simply specify a server domain or IP!

<?=$minequery::port("us.mineplex.com"); ?>

** Hostname ** (This does NOT mean the hosting or service provider, but the servers connection domain)

Get the hostname version of a server! Simply specify a server domain or IP!

<?=$minequery::hostname("us.mineplex.com"); ?>

** Query Features**

The server query must be enabled on the targed server to work enable-query must be set to true in the requested server's server.properties file for this API to work

** Software **

This feature has yet to be described...

<?=$minequery::software("us.mineplex.com"); ?>

** Gametype **

This feature has yet to be described...

<?=$minequery::gametype("us.mineplex.com"); ?>

** Map **

This feature has yet to be described...

<?=$minequery::map("us.mineplex.com"); ?>

** BuyCraft API **

This feature has yet to be described...

** MinecraftMarket API **

This feature has yet to be described...

** Mojang Blacklisted Servers **

This feature has yet to be described...

minequery-remastered's People

Contributors

indieguts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.