Some additional fixes from other branch.
This commit is contained in:
@@ -21,7 +21,7 @@ package appeng.server.subcommands;
|
||||
|
||||
import net.minecraft.command.ICommandSender;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.text.TextComponentTranslation;
|
||||
import net.minecraft.util.text.TranslationTextComponent;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.event.world.ChunkEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
@@ -90,12 +90,12 @@ public class ChunkLogger implements ISubCommand
|
||||
if( this.enabled )
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.register( this );
|
||||
sender.sendMessage( new TextComponentTranslation( "commands.ae2.ChunkLoggerOn" ) );
|
||||
sender.sendMessage( new TranslationTextComponent( "commands.ae2.ChunkLoggerOn" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
MinecraftForge.EVENT_BUS.unregister( this );
|
||||
sender.sendMessage( new TextComponentTranslation( "commands.ae2.ChunkLoggerOff" ) );
|
||||
sender.sendMessage( new TranslationTextComponent( "commands.ae2.ChunkLoggerOff" ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ import com.google.common.base.Joiner;
|
||||
|
||||
import net.minecraft.command.ICommandSender;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.text.TextComponentString;
|
||||
import net.minecraft.util.text.StringTextComponent;
|
||||
|
||||
import appeng.server.ISubCommand;
|
||||
|
||||
@@ -41,6 +41,6 @@ public class Supporters implements ISubCommand
|
||||
public void call( final MinecraftServer srv, final String[] data, final ICommandSender sender )
|
||||
{
|
||||
final String[] who = { "Stig Halvorsen", "Josh Ricker", "Jenny \"Othlon\" Sutherland", "Hristo Bogdanov", "BevoLJ" };
|
||||
sender.sendMessage( new TextComponentString( "Special thanks to " + Joiner.on( ", " ).join( who ) ) );
|
||||
sender.sendMessage( new StringTextComponent( "Special thanks to " + Joiner.on( ", " ).join( who ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user