特点
点击展开特点
|
- 自动恢复游戏地图
- 设置菜单
- 物品商店(村民或菜单模式)
- 使用实体加入队伍(盔甲架)
- 物品生成器
- 全自动
- 加入牌子
- 每个用户的语言(客户端语言)
- 重生的床
- 简单的权限
- 自动更新
- 记分版
- 成就
- 最大9个队伍
- 使用PointsAPI发放奖励
- 支持蹦极端
- 还有很多很多!
- 可供统计和成就使用的MySQL
- 网页统计数据
网页统计数据设置
点击查看代码
|
==== 如何安装? ====
1.你需要一个搭载PHP和MySQL的网页服务器
2.从下方复制粘贴代码到文件: stats.php
3.编辑设置以及设置MySQL
4.上传页面到网页服务器
代码
Pastebin替代代码
点击查看代码
|
<?PHP
/* SETTINGS */
/*________________________________________________________________________________________________________________*/
$_db_host = "localhost"; /* MYSQL host */
$_db_username = "root"; /* MYSQL username */
$_db_password = "123"; /* MYSQL password */
$_db_database = "bw"; /* Mysql database */
$_db_table = "bw_stats"; /* Database table */
$sort = "wins"; /* Default sort (wins, games, kills, deaths, beds) */
/*________________________________________________________________________________________________________________*/
/* DO NOT EDIT */
if(@$_GET['order']){
$order = @$_GET['order'];
}else{
$order = @$_GET['order'] = $sort;
}
if($order!="wins" && $order!="games" && $order!="kills" && $order!="deaths" && $order!="beds")
$order=$sort;
$_link = mysql_connect($_db_host, $_db_username, $_db_password);
mysql_select_db($_db_database, $_link);
$_sql = "SELECT * FROM `$_db_table` ORDER BY `$order` DESC";
$_resultat = mysql_query($_sql, $_link);
?>
<html>
<head>
<link rel="stylesheet" href="https://bootswatch.com/readable/bootstrap.css" media="screen">
<link rel="stylesheet" href="https://bootswatch.com/assets/css/bootswatch.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<title>Bedwars Statistiken</title>
</head>
<body>
<thead>
</thead>
<tbody>
<?PHP while ($row = @mysql_fetch_array( $_resultat, MYSQL_ASSOC)) {?>
<?PHP } ?>
</tbody>
Player |
<a href="?order=wins">Wins <?PHP if(@$_GET['order'] == 'wins'){ echo ""; }?></a> |
<a href="?order=games">Played Games <?PHP if(@$_GET['order'] == 'games'){ echo ""; }?></a> |
<a href="?order=kills">Kills <?PHP if(@$_GET['order'] == 'kills'){ echo ""; }?></a> |
<a href="?order=deaths">Deaths <?PHP if(@$_GET['order'] == 'deaths'){ echo ""; }?></a> |
K/D |
<a href="?order=beds">Beds <?PHP if(@$_GET['order'] == 'beds'){ echo ""; }?></a> |
<img src="http://cravatar.eu/helmhead/<?php echo $row['PName']; ?>/35.png"> <?php echo $row['PName']; ?> |
<?php echo $row['Wins']; ?> |
<?php echo $row['Games']; ?> |
<?php echo $row['Kills']; ?> |
<?php echo $row['Deaths']; ?> |
<?php if($row['Deaths']==0) echo $row['Kills']; else echo round($row['Kills'] / $row['Deaths'],2); ?> |
<?php echo $row['Beds']; ?> |
</body>
</head>
|
|
|
配置
展开配置文件
|
# Version 2.3.0
# Prefix for every chat message
prefix: Bedwars
# Choose the shop type (villager, gui)
shop: Villager
# Set the max. game length in minutes
game-length-minutes: 60
# Control the debug-mode (Print everything in the console)
debug: false
# Control the villager shop
villager-shop: true
# Control the team chat
team-chat: true
# Control the usage of BungeeCord
bungeecord: false
# Set the fallback-server for BungeeCord
fallback: HUB
# The server motd (only bungeecord)
motd: '&a&lBedwars %name% &6%teams%&rx&6%teamsize% %state%&r'
# The reward for PointsAPI
reward:
win: 200
bedbreak: 50
achievement: 100
# Your MySQL connection data to store data in a databse
sql:
enable: false
host: localhost
user: username
pass: password
database: server_DB
port: 3306
|
权限
权限 |
介绍 |
默认使用者
|
bw.play |
允许游玩的权限 |
所有人
|
bw.vip |
允许加入满人的房间 |
op
|
bw.hide |
允许使用VIP-隐藏工具 |
op
|
bw.setup |
允许设置和管理一个游戏 |
op
|
bw.cmd |
允许在游戏里使用非bedwars的指令 |
op
|
bw.stats |
允许查看你的统计 |
所有人
|
bw.stats.others |
允许查看其他人的统计 |
op
|
bw.reload |
允许使用/bw重启游戏 |
op
|
Commands
指令 |
介绍
|
/bw |
查看插件信息
|
/bw help |
列出所有指令
|
/bw add [名称] |
创建一个新游戏
|
/bw setup (游戏名) |
打开设置菜单
|
/bw start [游戏名] |
开始一个游戏
|
/bw stop [游戏名] |
停止一个游戏
|
/bw join [游戏名] |
加入一个游戏
|
/bw leave |
离开一个游戏
|
/bw pos1 |
设置第一个点
|
/bw pos2 |
设置第二个点
|
/bw stats (玩家名) |
查看你(其他玩家)的统计数据
|
/bw reload |
重新加载设置
|
/bw setjoin [游戏名] [队伍名] |
创建一个新队伍加入点
|
设置
历史资源History Source
一步接一步Step by Step:
Set the protected-blocks and the game length in the config.yml
Import a bedwars-map with a custom world plugin
Remove item spawners and place normal villagers
Remove all excisting beds
Mark the game with /bw pos1 & /bw pos2
Create a game: /bw add name
Set everything you want in the setup menu with /bw setup
Create optional team joiners with /bw setjoin [game] [team] and look at an entity
Set the sign:
[bw]
name
你有疑问吗?输入 /bw setup 来看,如果你的游戏是 (...?) Do you have problems? Type /bw setup to see, if your game is re
TO-DO
History Source
4 Teams instead of 2
Language system
Disable crafting
Add unbreakable blocks
Item shop
Itemspawner
BungeeCord (kick on lose, restart on end, ...)
More teams
MySQL
Website stats
Bed can face into every direction
Add a permission to start a game
Spawn every 0,5 seconds 1 Bronze
More items (Safety platform, Warp powder)
Better shop-system
Join teams with armor stands
Add a "Confirm"-Button to remove a game
Add replaceable blocks (gras, flowers, vines)
Automatic map download and intigration