Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create chinese langfile #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/me/onebone/economyland/EconomyLand.java
Original file line number Diff line number Diff line change
Expand Up @@ -816,13 +816,13 @@ public void onBlockUpdate(BlockUpdateEvent event){

@EventHandler
public void onPlayerInteract(PlayerInteractEvent event){
if(event.getAction() == PlayerInteractEvent.LEFT_CLICK_AIR || event.getAction() == PlayerInteractEvent.RIGHT_CLICK_AIR) return;
if(event.getAction() == PlayerInteractEvent.Action.LEFT_CLICK_AIR || event.getAction() == PlayerInteractEvent.Action.RIGHT_CLICK_AIR) return;

Player player = event.getPlayer();
Block block = event.getBlock();
Item item = event.getItem();

if(item.canBePlaced() && !block.canBeActivated() && event.getAction() == PlayerInteractEvent.RIGHT_CLICK_BLOCK){ // placing
if(item.canBePlaced() && !block.canBeActivated() && event.getAction() == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK){ // placing
block = block.getSide(event.getFace());
}

Expand All @@ -835,7 +835,7 @@ public void onPlayerInteract(PlayerInteractEvent event){
land.getId(), land.getOwner()
}));

if(event.getAction() == PlayerInteractEvent.RIGHT_CLICK_BLOCK && !block.canBeActivated() && event.getItem().canBePlaced()){
if(event.getAction() == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK && !block.canBeActivated() && event.getItem().canBePlaced()){
this.placeQueue.add(player);
}
}
Expand All @@ -845,7 +845,7 @@ public void onPlayerInteract(PlayerInteractEvent event){
player.sendMessage(this.getMessage("modify-whiteland"));
}

if(event.getAction() == PlayerInteractEvent.RIGHT_CLICK_BLOCK && !block.canBeActivated() && event.getItem().canBePlaced()){
if(event.getAction() == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK && !block.canBeActivated() && event.getItem().canBePlaced()){
this.placeQueue.add(player);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Your preferred language (eng, kor, jpn)
# Your preferred language (eng, kor, jpn, chs)
language: eng

max-land: NaN
Expand Down
41 changes: 41 additions & 0 deletions src/main/resources/lang_chs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"pos1-set": "你已经将领地的第一个点设置在 {0}:{1}:{2}",
"pos2-set": "你已经将领地的第二个点设置在 {0}:{1}:{2} (价格: {M}{3}) 使用 \"/land buy\"命令可以确认购买.",
"pos1-not-set": "你尚未设置第一个点.",
"must-one-world": "&4你必须将两个点设置在同一个世界中.",
"pos-not-set": "&4你没有设置领地的位置,无法购买领地.",
"land-overlap": "&4你想要购买的地跟 &2{1}&f 的 &b#{0}&f &4地重叠了",
"max-land-count": "&4你已经超过了领地的购买上限 ({0}) 了",
"no-money": "&4你没有足够的钱去购买这块领地.",
"failed-buying": "&4购地失败.",
"buying-forbidden": "&4你不能在这个世界购买领地.",
"bought-land": "&2你已成功购买领地",
"no-land-here": "这是块无主之地.",
"land-info": "&2{2}&f 的地 &b#{0}&f {1} m^2",
"land-list-header": "显示领地列表 ({0}/{1}):",
"invalid-land-id": "&4无效领地Id: &b#{0}&f &4被给出.",
"no-such-land": "&4这里没有Id为 &b#{0}&f&4的地.",
"not-your-land": "#&4{0} 不是你的地.",
"land-corrupted": "&4#{0}所在的世界尚未被加载或不存在,传送无法进行",
"already-invitee": "&4{0} 已经在 &b#{1}&f &4的邀请列表里了.",
"invited-player": "&2你将 {0} 加入了领地 &b#{1}&f&2 的邀请列表中.",
"not-invitee": "&4{0} 不在你领地 &b#{1}&f &4的邀请列表中.",
"kicked-invitee": "&2你已将 {0} 从 &b#{1}&f&2的邀请列表中移除.",
"invitee-list": "领地{0}的邀请列表 : {1}",
"sold-land": "你出售了你的领地 &b#{0}&f , 售价为 {M}{1}",
"player-not-online": "&4{0} 现在不在线.",
"owner-changed": "&2领地 &b#{0}&f 的拥有者已经更变为 &2{1}&f.",
"whose-header": " &2{0}&f所拥有的领地由:",
"query-too-short": "玩家名称长度太短.",
"invalid-option": "无效的选项. 可用的选项有: &2{0}",
"invalid-value": "&4所给出的值无效.",
"option-set": "选项 {0} 设置为 {1}.",
"options-tag": "领地&b#{0}的所有选项:",
"land-message": "来自领地&b#{0}&f : &e{1}",

"modify-forbidden": "&4#{0}: 这里是 {1} 的领地. 你无权更改这里.",
"modify-whiteland": "&4你只有购买这里的领地才能修改它.",
"access-forbidden": "&4#{0}: 这里是 {1} 的领地. 你无权进入.",
"pickup-forbidden": "&4#{0}: 这里是 {1} 的领地. 你无权在这里捡起物品.",
"move-forbidden": "&4#{0}: 你不能移动到这块领地. 它的主人设置了禁止进入."
}
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: EconomyLand
version: @VERSION@
version: 1.0.0
api: [1.0.0]
main: me.onebone.economyland.EconomyLand
author: onebone
Expand Down