Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

((EntityPlayerMP) player).playerNetServerHandler.kickPlayerFromServer(<msg>)

I cant cast EntityClientPlayerMP to EntityPlayerMP (Minecraft.getMinecraft().thePlayer) I am using this in a ClientTickEvent, what should I do?

  • Author

You can't disconnect the player on the client, at least not with a custom message.

I think its possible, I saw Hack clients do it before!

  • Author

You are talking about the message that appears in chat? No, you cannot change that at all from the client.

Example. Huzuni has this thing called AutoDisconnect, how does that work?

  • Author

I have no idea what that is or does.

It basically disconnects you with a custom message. I tried to decompile the jar and see, but it was obfuscated

  • Author

You are talking about the message that appears in chat?

Not in chat. The disconnect message... (In Bukkit, e.getReason() in the PlayerDisconnectEvent.)

  • Author

To disconnect yourself from the server call Minecraft.getMinecraft().theWorld.sendQuittingDisconnectingPacket();

I want to disconnect with the reason "Illegal Characters".

  • Author

Show your code.

	@SubscribeEvent
public void onTick(ClientTickEvent e) {
	if(this.ad.isPressed()) {
		Minecraft.getMinecraft().thePlayer.sendChatMessage("§");
	}
}

  • Author

I just tried it, yes, you will get kicked. If you don't, you messed up.

same code? It just prints it out in chat... maybe try it out on play.itsjerryandharry.com?

  • Author

I am not going to log into some random server. Yes, it will kick you if the server does not change vanilla behavior. Also make sure your file encoding is right (always use UTF-8 everywhere).

Where can I change file encoding?

  • Author

I am not going to log into some random server. Yes, it will kick you if the server does not change vanilla behavior. Also make sure your file encoding is right (always use UTF-8 everywhere).

On every server I go to thats bukkit, has text pop up instead of me getting kicked.

Bukkit != Vanilla

 

Yes, it will kick you if the server does not change vanilla behavior.

 

I think it's would be fair to say that Bukkit supports more symbols?

1.7.10 is no longer supported by forge, you are on your own.

  • Author

Bukkit != Vanilla

 

Yes, it will kick you if the server does not change vanilla behavior.

 

I think it's would be fair to say that Bukkit supports more symbols?

I am trying alot of different characters in the character map. but none of them are working atm D:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.