File tree Expand file tree Collapse file tree 6 files changed +8
-7
lines changed
Expand file tree Collapse file tree 6 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public CommandResult Execute(CommandContext context)
2525 if ( context . Player . RoleID == 79 )
2626 return new CommandResult
2727 {
28- Message = "As Scp079-robot you can't use this Command" ,
28+ Message = PluginClass . Translation . ActiveTranslation . NotAsRobot ,
2929 State = CommandResultState . Error
3030 } ;
3131
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public CommandResult Execute(CommandContext context)
2424 if ( context . Player . RoleID == 79 )
2525 return new CommandResult
2626 {
27- Message = "As Scp079-robot you can't use this Command" ,
27+ Message = PluginClass . Translation . ActiveTranslation . NotAsRobot ,
2828 State = CommandResultState . Error
2929 } ;
3030
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public CommandResult Execute(CommandContext context)
2626 if ( context . Player . RoleID == 79 )
2727 return new CommandResult
2828 {
29- Message = "As Scp079-robot you can't use this Command" ,
29+ Message = PluginClass . Translation . ActiveTranslation . NotAsRobot ,
3030 State = CommandResultState . Error
3131 } ;
3232
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ internal void RegisterCommands(Assembly assembly)
3838 }
3939 catch ( Exception e )
4040 {
41- Synapse . Api . Logger . Get . Error ( $ "Registering Scp-079 Command for type { commandclass . Name } faile :\n \n { e } ") ;
41+ Synapse . Api . Logger . Get . Error ( $ "Registering Scp-079 Command for type { commandclass . Name } failed :\n \n { e } ") ;
4242 }
4343 }
4444 }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ namespace Scp079Rework
1515 SynapseMajor = 2 ,
1616 SynapseMinor = 2 ,
1717 SynapsePatch = 0 ,
18- Version = "v.2.0 .0"
18+ Version = "v.2.1 .0"
1919 ) ]
2020 public class PluginClass : AbstractPlugin
2121 {
@@ -38,7 +38,8 @@ public override void Load()
3838 LowLevel = "Dein Level ist nich hoch genug!Du brauchst mindestens Level %level%." ,
3939 LowEnergy = "Du braucht mindestens %energy% Energie um diesen Befehl auszuführen." ,
4040 Error = "Ein Fehler ist aufgetreten während dem Ausführen des Befehls." ,
41- NoCommand = "Kein solcher Unter befehl mit dem namen %command% wurde gefunden."
41+ NoCommand = "Kein solcher Unter befehl mit dem namen %command% wurde gefunden." ,
42+ NotAsRobot = "Als SCP-079-Roboter kannst du diesen Befehl nicht ausführen"
4243 } , "GERMAN" ) ;
4344
4445 CommandHandler . Handler . RegisterCommands ( Assembly . GetExecutingAssembly ( ) ) ;
Original file line number Diff line number Diff line change @@ -18,6 +18,6 @@ public class PluginTranslation : IPluginTranslation
1818
1919 public string NoCommand { get ; set ; } = "No Scp-079 Command was found for %command%" ;
2020
21- public string NotAsRobot { get ; set ; } = "As Scp079 -robot you can't use this Command" ;
21+ public string NotAsRobot { get ; set ; } = "As SCP-079 -robot you can't use this Command" ;
2222 }
2323}
You can’t perform that action at this time.
0 commit comments