File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
java/top/mpt/huihui/answerit Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ public class InvOpen implements Listener {
1212 public void onInvClicked (InventoryClickEvent event ){
1313 // 防止过分占用服务器资源,因为有的时候会疯狂报错
1414 if (prize .canPrize ){
15-
1615 if (event .getInventory ().equals (prize .getTargetPlayer ().getInventory ())){
1716 if (!(event .getCurrentItem () == null )){
1817 Player prizePlayer = prize .getPrizePlayer ();
Original file line number Diff line number Diff line change 77import top .mpt .huihui .answerit .utils .i18N ;
88
99import static top .mpt .huihui .answerit .Main .*;
10+ import static top .mpt .huihui .answerit .prize .prize .canPrize ;
1011
1112public class Timer extends BukkitRunnable {
1213
@@ -26,6 +27,8 @@ public void run() {
2627 // 清空数组
2728 voteResult .clear ();
2829 voteList .clear ();
30+ // 设置可以被奖励
31+ canPrize = true ;
2932 ChatUtils .broadcast ((String ) i18N .getLang ("timer.timer_over_summary" ), trueCount , falseCount );
3033 if (trueCount == falseCount ){
3134 ChatUtils .broadcast ((String ) i18N .getLang ("timer.votes_equal" ));
Original file line number Diff line number Diff line change 3939 vote_right : " #GREEN#[RIGHT] "
4040 vote_wrong : " #RED#[WRONG]"
4141 # broadcast_info
42- server_vote_right_info : " #GREEN#Player: #AQUA#%s #GREEN#vote for Correct "
43- server_vote_wrong_info : " #GREEN#Player: #AQUA#%s #GREEN#vote for Incorrect "
42+ server_vote_right_info : " #GREEN#Player: #AQUA#%s #GREEN#vote for #AQUA#RIGHT "
43+ server_vote_wrong_info : " #GREEN#Player: #AQUA#%s #GREEN#vote for #RED#WRONG "
4444 # target_answer
4545 target_answer_info : " #GREEN#%s 's answer is #AQUA#%s"
4646
4949 timer_start_info : " #RED#Timing #AQUA#%d #RED#seconds, now start"
5050 timer_start_tip : " #RED#Please complete the voting within the specified time."
5151
52- timer_over_summary : " #GREEN#Vote closed. %d players vote for RIGHT, %d vote for WRONG"
52+ timer_over_summary : " #GREEN#Vote closed. %d players vote for RIGHT, %d vote for WRONG"
5353 votes_equal : " #GOLD#Equal votes, no reward or punishment for them."
5454 votes_right : " #GREEN#Answer correct!"
5555 votes_wrong : " #RED#Answer Incorrect!"
Original file line number Diff line number Diff line change 3838 vote_right : " #GREEN#[正确] "
3939 vote_wrong : " #RED#[错误]"
4040 # broadcast_info
41- server_vote_right_info : " #GREEN#玩家: #AQUA#%s #GREEN#投给了: 答案正确"
42- server_vote_wrong_info : " #GREEN#玩家: #AQUA#%s #GREEN#投给了: 答案正确 "
41+ server_vote_right_info : " #GREEN#玩家: #AQUA#%s #GREEN#投给了: #AQUA# 答案正确"
42+ server_vote_wrong_info : " #GREEN#玩家: #AQUA#%s #GREEN#投给了: #RED#答案错误 "
4343 # target_answer
4444 target_answer_info : " #GREEN#%s的回答是: #AQUA#%s"
4545
You can’t perform that action at this time.
0 commit comments