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 {
12
12
public void onInvClicked (InventoryClickEvent event ){
13
13
// 防止过分占用服务器资源,因为有的时候会疯狂报错
14
14
if (prize .canPrize ){
15
-
16
15
if (event .getInventory ().equals (prize .getTargetPlayer ().getInventory ())){
17
16
if (!(event .getCurrentItem () == null )){
18
17
Player prizePlayer = prize .getPrizePlayer ();
Original file line number Diff line number Diff line change 7
7
import top .mpt .huihui .answerit .utils .i18N ;
8
8
9
9
import static top .mpt .huihui .answerit .Main .*;
10
+ import static top .mpt .huihui .answerit .prize .prize .canPrize ;
10
11
11
12
public class Timer extends BukkitRunnable {
12
13
@@ -26,6 +27,8 @@ public void run() {
26
27
// 清空数组
27
28
voteResult .clear ();
28
29
voteList .clear ();
30
+ // 设置可以被奖励
31
+ canPrize = true ;
29
32
ChatUtils .broadcast ((String ) i18N .getLang ("timer.timer_over_summary" ), trueCount , falseCount );
30
33
if (trueCount == falseCount ){
31
34
ChatUtils .broadcast ((String ) i18N .getLang ("timer.votes_equal" ));
Original file line number Diff line number Diff line change 39
39
vote_right : " #GREEN#[RIGHT] "
40
40
vote_wrong : " #RED#[WRONG]"
41
41
# 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 "
44
44
# target_answer
45
45
target_answer_info : " #GREEN#%s 's answer is #AQUA#%s"
46
46
49
49
timer_start_info : " #RED#Timing #AQUA#%d #RED#seconds, now start"
50
50
timer_start_tip : " #RED#Please complete the voting within the specified time."
51
51
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"
53
53
votes_equal : " #GOLD#Equal votes, no reward or punishment for them."
54
54
votes_right : " #GREEN#Answer correct!"
55
55
votes_wrong : " #RED#Answer Incorrect!"
Original file line number Diff line number Diff line change 38
38
vote_right : " #GREEN#[正确] "
39
39
vote_wrong : " #RED#[错误]"
40
40
# 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#答案错误 "
43
43
# target_answer
44
44
target_answer_info : " #GREEN#%s的回答是: #AQUA#%s"
45
45
You can’t perform that action at this time.
0 commit comments