File tree 4 files changed +11
-3
lines changed
java/com/solegendary/reignofnether
resources/assets/reignofnether/lang
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ Controlling non-RoN mobs
34
34
35
35
Bugfixes
36
36
--------
37
-
37
+ [🟡] Can no longer send resources to a non-RTS ally
38
38
39
39
40
40
Quality of Life
41
41
---------------
42
-
42
+ [🟡] Updated /rts-help list
43
43
44
44
Balancing
45
45
---------
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ public static void onRegisterCommand(RegisterClientCommandsEvent evt) {
113
113
MC .player .sendSystemMessage (Component .translatable ("commands.reignofnether.lock" , "/rts-lock enable/disable" ));
114
114
MC .player .sendSystemMessage (Component .translatable ("commands.reignofnether.ally" , "/ally" ));
115
115
MC .player .sendSystemMessage (Component .translatable ("commands.reignofnether.disband" , "/disband" ));
116
+ MC .player .sendSystemMessage (Component .translatable ("commands.reignofnether.send_resources" , "/sendfood|wood|ore <playername> <amount>" ));
117
+ MC .player .sendSystemMessage (Component .translatable ("commands.reignofnether.camera" , "/rts-camera" ));
116
118
}
117
119
return 1 ;
118
120
}));
Original file line number Diff line number Diff line change @@ -330,9 +330,12 @@ public static int trySendingResources(CommandContext<CommandSourceStack> context
330
330
if (sendingPlayerName .equals (receivingPlayerName )) {
331
331
PlayerServerEvents .sendMessageToPlayer (sendingPlayerName , "server.resources.reignofnether.sending_to_self" );
332
332
return 0 ;
333
- } else if (!AlliancesServerEvents . isAllied ( sendingPlayerName , receivingPlayerName )) {
333
+ } else if (!PlayerServerEvents . isRTSPlayer ( receivingPlayerName )) {
334
334
PlayerServerEvents .sendMessageToPlayer (sendingPlayerName , "server.resources.reignofnether.not_allies" );
335
335
return 0 ;
336
+ } else if (!AlliancesServerEvents .isAllied (sendingPlayerName , receivingPlayerName )) {
337
+ PlayerServerEvents .sendMessageToPlayer (sendingPlayerName , "server.resources.reignofnether.not_rts_player" );
338
+ return 0 ;
336
339
} else if (!canAfford (sendingPlayerName , resourceName , amount )) {
337
340
ResourcesClientboundPacket .warnInsufficientResources (sendingPlayerName ,
338
341
resourceName == ResourceName .FOOD ,
Original file line number Diff line number Diff line change 468
468
"commands.reignofnether.lock" : " %s - Prevent all players from joining the RTS match" ,
469
469
"commands.reignofnether.ally" : " %s - Send an ally request to another player" ,
470
470
"commands.reignofnether.disband" : " %s - Disband an alliance with another player" ,
471
+ "commands.reignofnether.send_resources" : " %s - Send resources to an allied RTS player" ,
472
+ "commands.reignofnether.camera" : " %s - Toggle RTS camera" ,
471
473
"commands.reignofnether.gamerule.do_log_falling" : " Tree logs fall when cut" ,
472
474
"commands.reignofnether.gamerule.neutral_aggro" : " Auto-attack neutral units/buildings" ,
473
475
"commands.reignofnether.gamerule.max_population" : " Highest possible population limit" ,
646
648
"server.resources.reignofnether.sent_ore" : " You gave %d ore to %d!" ,
647
649
"server.resources.reignofnether.received_ore" : " You received %d ore from %d!" ,
648
650
"server.resources.reignofnether.not_allies" : " You can only send resources to allies" ,
651
+ "server.resources.reignofnether.not_rts_player" : " That player isn't an RTS player" ,
649
652
"server.resources.reignofnether.sending_to_self" : " You can't send resources to yourself" ,
650
653
651
654
"research.reignofnether.upgrade_completed" : " Upgrade completed: %s" ,
You can’t perform that action at this time.
0 commit comments