• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

caseypugh/minecraft: Some scripts to make your server more fun

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

caseypugh/minecraft

开源软件地址(OpenSource Url):

https://github.com/caseypugh/minecraft

开源编程语言(OpenSource Language):

PHP 100.0%

开源软件介绍(OpenSource Introduction):

__        _______ ____   ____ ____      _    _____ _____
\ \      / / ____| __ ) / ___|  _ \    / \  |  ___|_   _|
 \ \ /\ / /|  _| |  _ \| |   | |_) |  / _ \ | |_    | |
  \ V  V / | |___| |_) | |___|  _ <  / ___ \|  _|   | |
   \_/\_/  |_____|____/ \____|_| \_\/_/   \_\_|     |_|
http://caseypugh.com/minecraft
and
http://jaryth.net

Hey creeps! These are couple PHP scripts that make it rather simple to display who is currently online on your Minecraft server.

index.php

This script parses your server.log file generated by your Minecraft server and tells you:

Who is online or offline
When they were last logged on
How many times they have logged on
How long they have been logged on for this session
Total time they have ever been on the server
Most recent things said in chat
Displays the actual face from their Minecraft skin (generated by avatar.php)

Just throw this file on a webserver, along with your server.log file.

Extra uses: By adding '?total' to the end of the URL, you can sort the list by total time spent online in the server. By adding '?chat' to the end of the URL, you can see the 30 most recent items said in the server chat! (Example: yourserver.com/minecraft/index.php?total)

avatar.php

This script magically pulls out the face of your Minecraft.net into a new PNG image of specified size.

Now supports local image caching!

Minecraft Google Map

As a bonus, you can generate a map of your Minecraft world and use Google Maps API to view it. Check it out: github.com/brownan/Minecraft-Overviewer Or use Tectonicus: triangularpixels.net/games/tectonicus/

Changes

Changes made by Jaryth are as follows:

October 1th (2015):

-Removed security bug
-Clean index.php HTML

April 17th:

-Re-coded from the ground up to be Object Oriented
-You can now parse multiple scripts in their own objects
-Code has been re-arranged and re-commented for even easier understanding
-Both log and Avatar support caching for increased speed
-Caching can be enabled and disabled
-Avatars can be re-cached by clicking on them in Online List
-Removed Screenshot abilities
-Correct Timezone errors

January 28th:

-Re-commented code for easier understanding
-Added tracking of current session length
-Added tracking of times logged into the server
-Added tracking for total time logged onto the server
-Added option to sort by total time logged on though GET trigger
-Added option to view newest items in chat though GET trigger
-Changed minecraft.php to index.php and re-skinned



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap