• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

Bedwars

来自Minecraft插件百科
Volta薯片留言 | 贡献2016年8月26日 (五) 23:35的版本
跳转到导航 跳转到搜索
Bedwars
外文名Bedwars
插件类型Spigot / CraftBukkit
最新版本v3.1.2
兼容服务端CB1.7.9-1.9
前置插件pointsAPI,任意一款村民保护插件(可选),任意一款爆炸保护插件(可选)
源地址https://dev.bukkit.org/bukkit-plugins/bedwars/

特点

- 自动恢复游戏地图
- 设置菜单
- 物品商店(村民或菜单模式)
- 使用实体加入队伍(盔甲架)
- 物品生成器
- 全自动
- 加入牌子
- 每个用户的语言(客户端语言)
- 重生的床
- 简单的权限
- 自动更新
- 记分版
- 成就
- 最大9个队伍
- 使用PointsAPI发放奖励
- 支持蹦极端
- 还有很多很多!
- 可供统计和成就使用的MySQL
- 网页统计数据

网页统计数据设置

如何安装?

1.You need a webserver, which supports PHP and MySQL Copy and paste the code from below into the file: stats.php 2.Edit the settings and set your MySQL settings 3.Upload the page on your webserver

代码

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
  1. Prefix for every chat message

prefix: Bedwars

  1. Choose the shop type (villager, gui)

shop: Villager

  1. Set the max. game length in minutes

game-length-minutes: 60

  1. Control the debug-mode (Print everything in the console)

debug: false

  1. Control the villager shop

villager-shop: true

  1. Control the team chat

team-chat: true

  1. Control the usage of BungeeCord

bungeecord: false

  1. Set the fallback-server for BungeeCord

fallback: HUB

  1. The server motd (only bungeecord)

motd: '&a&lBedwars %name% &6%teams%&rx&6%teamsize% %state%&r'

  1. The reward for PointsAPI

reward:

   win: 200
   bedbreak: 50
   achievement: 100
  1. Your MySQL connection data to store data in a databse

sql:

   enable: false
   host: localhost
   user: username
   pass: password
   database: server_DB
   port: 3306

权限