File tree 3 files changed +9
-1
lines changed
java/com/solegendary/reignofnether/resources
resources/assets/reignofnether/lang
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ Bugfixes
35
35
36
36
Quality of Life
37
37
---------------
38
- [❌ ] Add commands to send resources
38
+ [🟡 ] Add commands to send resources
39
39
[❌] Ravagers that are mounted no longer aggro automatically onto buildings
40
40
- This prevents them hurting themselves from the splash damage
41
41
[🟡] Button to toggle spider climbing
Original file line number Diff line number Diff line change 5
5
import com .mojang .brigadier .context .CommandContext ;
6
6
import com .mojang .brigadier .exceptions .CommandSyntaxException ;
7
7
import com .mojang .math .Axis ;
8
+ import com .solegendary .reignofnether .alliance .AlliancesClient ;
8
9
import com .solegendary .reignofnether .hud .HudClientEvents ;
9
10
import com .solegendary .reignofnether .keybinds .Keybindings ;
10
11
import com .solegendary .reignofnether .orthoview .OrthoviewClientEvents ;
@@ -209,6 +210,12 @@ public static int trySendingResources(CommandContext<CommandSourceStack> context
209
210
if (res == null || thisPlayer == null )
210
211
return 0 ;
211
212
213
+ if (!AlliancesClient .isAllied (thisPlayer .getName ().getString (), sendToPlayer .getName ().getString ())) {
214
+ thisPlayer .sendSystemMessage (Component .literal ("" ));
215
+ thisPlayer .sendSystemMessage (Component .literal (I18n .get ("server.resources.reignofnether.not_allies" )));
216
+ thisPlayer .sendSystemMessage (Component .literal ("" ));
217
+ }
218
+
212
219
switch (resourceName ) {
213
220
case FOOD -> {
214
221
if (res .food < amount ) {
Original file line number Diff line number Diff line change 640
640
641
641
"server.resources.reignofnether.sent_resources" : " You gave %d %s to %d!" ,
642
642
"server.resources.reignofnether.received_resources" : " You received %d %s from %d!" ,
643
+ "server.resources.reignofnether.not_allies" : " You can only send resources to allies" ,
643
644
644
645
"research.reignofnether.upgrade_completed" : " Upgrade completed: %s" ,
645
646
"research.reignofnether.advanced_portals" : " Advanced Portals" ,
You can’t perform that action at this time.
0 commit comments