下载后丢到container/plugins后运行就好了
[发布者没有给予详细帮助]
配置文件:
Repository & Dependency:
储存库和依赖:
How to create a scoreboard:
创造计分板:
How to add a score:
如何添加分数
How to remove a score:
如何删除分数
How to set a scoreboard for the player:
如何为玩家设置计分板
How to remove the scoreboard:
如何删除计分板
How to update a score:
如何更新分数
Important!
The only thing I changed is the package. The package changes from "de.theamychan.scoreboard" to "de.lucgameshd.scoreboard" because I have a new username. The ScoreboardAPI for nukkit 1.0 is still the old package.
重要!我唯一改变的是包装。这个包从“de.theamychan.scoreboard”变成了“de.lucgameshd.scoreboard ”,因为我有了一个新的用户名。nukkit 1.0的ScoreboardAPI还是老包。(就是说不能直接覆盖旧版本,需手动删除旧版本)
[发布者没有给予详细帮助]
配置文件:
Repository & Dependency:
储存库和依赖:
XML:
<repository>
<id>releases</id>
<url>http://lucgameshd.de:8081/content/repositories/releases</url>
</repository>
<dependency>
<groupId>de.lucgameshd</groupId>
<artifactId>ScoreboardAPI</artifactId>
<version>2.1</version>
</dependency>
创造计分板:
JavaScript:
Scoreboard scoreboard = ScoreboardAPI.createScoreboard();
ScoreboardDisplay scoreboardDisplay = scoreboard.addDisplay( DisplaySlot.SIDEBAR, "objectivename", "title" );
How to add a score:
如何添加分数
JavaScript:
scoreboardDisplay.addLine( "This is a line in a score", 0 );
scoreboardDisplay.addLine( "§a", 1 ); //free space
scoreboardDisplay.addLine( "Name: " + player.getName(), 2 );
scoreboardDisplay.addLine( "§b", 3); //free space
DisplayEntry positionEntry = scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
How to remove a score:
如何删除分数
JavaScript:
DisplayEntry positionEntry = scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
scoreboardDisplay.removeEntry( positionEntry
How to set a scoreboard for the player:
如何为玩家设置计分板
JavaScript:
ScoreboardAPI.setScoreboard( player, scoreboard );
How to remove the scoreboard:
如何删除计分板
JavaScript:
ScoreboardAPI.removeScorebaord( player, scoreboard );
How to update a score:
如何更新分数
JavaScript:
scoreboardDisplay.removeEntry( positionEntry );
scoreboardDisplay.addLine( "X: " + player.getFloorX() + " Y: " + player.getFloorY() + " Z: " + player.getFloorZ(), 4 );
Important!
The only thing I changed is the package. The package changes from "de.theamychan.scoreboard" to "de.lucgameshd.scoreboard" because I have a new username. The ScoreboardAPI for nukkit 1.0 is still the old package.
重要!我唯一改变的是包装。这个包从“de.theamychan.scoreboard”变成了“de.lucgameshd.scoreboard ”,因为我有了一个新的用户名。nukkit 1.0的ScoreboardAPI还是老包。(就是说不能直接覆盖旧版本,需手动删除旧版本)