代码(文本):
public class SkyWarsAPI_Example implements Listener {
private Main plugin;
私有 SkyWarsAPI hsw;
public SkyWarsAPI_Example(final Main plugin){
this.plugin = plugin;
this.hsw = SkyWarsAPI.getInstance();
}
@EventHandler
public void GameFinishSolo(final GameFinishSoloEvent event){
final Arena arena = event.getArena();
最终玩家 player = event.getPlayer();
}
@EventHandler
public void GameFinishTeam(final GameFinishTeamEvent event){
final Arena arena = event.getArena();
最后 ArenaTeam arenaTeam = event.getTeam();
}
@EventHandler
public void GameLevelUp(final GameLevelUpEvent event){
final Player player = event.getPlayer();
}
@EventHandler
public void GamePlayerDeath(final GamePlayerDeathEvent event){
final Arena arena = event.getArena();
最终玩家 player = event.getPlayer();
}
@EventHandler
public void GamePlayerJoinArena(final GamePlayerJoinArenaEvent event){
final Player player = event.getPlayer();
}
@EventHandler
public void GamePlayerKill(final GamePlayerKillEvent event){
final Arena arena = event.getArena();
最终玩家 player = event.getPlayer();
}
@EventHandler
public void GamePlayerOpenGui(final GamePlayerOpenGuiEvent event){
final Player player = event.getPlayer();
最后的 GuiType guiType = event.getGuiType();
}
@EventHandler
public void GameReload(final GameReloadEvent event){
final Arena arena = event.getArena();
}
@EventHandler
public void GameStartEvent(final GameStartEvent event){
final Arena arena = event.getArena();
}
}
172.93.101.28:25596 Obsly.net
的
代码 (YAML):
menus :
# To create a custom inventory
menu_section :
# It will be the title of the inventory
inventory_title : "&aThis is the &ctitle"
# The rows that the menu will have
inventory_rows : 3
items :
# How to create a定制项目?
custom :
# 项目可以命名或带有 id,如果它没有数据将其设置为 0 和将出现的项目数
item : ITEM;DATA;AMOUNT
# 如果项目是 SKULL_ITEM 你可以放置一些纹理头部:
# 在这个页面上https://minecraft-heads.com/你会发现纹理,当你选择了一个纹理时
# 几乎在页面的末尾你会找到一个链接,你可以将它复制并粘贴到这里
skull : LINK; http://textures.minecraft.net/textu...f939dd83f00bce70b3d9130d419d226edca3300015d95
# 如果你想要纹理属于