{"id":36847,"date":"2026-06-01T21:28:32","date_gmt":"2026-06-01T18:28:32","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/"},"modified":"2026-06-01T21:28:32","modified_gmt":"2026-06-01T18:28:32","slug":"cannot-remove-from-team-workaround","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/","title":{"rendered":"&#8220;Cannot remove from team&#8221; workaround"},"content":{"rendered":"<p># &#8220;Cannot remove from team&#8221; workaround<br \/>\nMC-270728<\/p>\n<p>On some buggy servers you may have noticeable lag spikes caused by `Error executing task on client`:<br \/>\n&#8220;`text<br \/>\nnet.minecraft.class_148: Main thread packet handler<br \/>\n\tat net.minecraft.class_2600.method_11072(class_2600.java:33) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_1255.method_18859(class_1255.java:156) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_4093.method_18859(class_4093.java:23) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_1255.method_16075(class_1255.java:130) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_1255.method_5383(class_1255.java:115) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_310.method_1523(class_310.java:1283) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_310.method_1514(class_310.java:888) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.client.main.Main.main(Main.java:265) ~[Fabric%201.20.4.jar:?]<br \/>\n\tat net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.15.7.jar:?]<br \/>\n\tat net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.15.7.jar:?]<br \/>\n\tat net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.15.7.jar:?]<br \/>\nCaused by: java.lang.IllegalStateException: Player is either on another team or not on any team. Cannot remove from team &#8216;Z\/Sta\/517631&#8217;.<br \/>\n\tat net.minecraft.class_269.method_1157(class_269.java:307) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_634.method_11099(class_634.java:2029) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_5900.method_34173(class_5900.java:129) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_5900.method_11054(class_5900.java:14) ~[client-intermediary.jar:?]<br \/>\n\tat net.minecraft.class_2600.method_11072(class_2600.java:24) ~[client-intermediary.jar:?]<br \/>\n\t&#8230; 10 more<br \/>\n&#8220;`<\/p>\n<p>One thing this mod does is it replaces `IllegalStateException` throwing with `LOGGER.warn()`.<\/p>\n<p>Default `net.minecraft.scoreboard.Scoreboard.removeScoreHolderFromTeam()` (`class_269.method_1157()`) implementation:<br \/>\n&#8220;`java<br \/>\npublic void removeScoreHolderFromTeam(String scoreHolderName, Team team) {<br \/>\n    if (this.getScoreHolderTeam(scoreHolderName) != team) {<br \/>\n        throw new IllegalStateException(&#8220;Player is either on another team or not on any team. Cannot remove from team &#8216;&#8221; + team.getName() + &#8220;&#8216;.&#8221;);<br \/>\n    } else {<br \/>\n        this.teamsByScoreHolder.remove(scoreHolderName);<br \/>\n        team.getPlayerList().remove(scoreHolderName);<br \/>\n    }<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p>Though I&#8217;m not a Java coding guru, I don&#8217;t understand why the exception is thrown on render thread.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eliminate lag spikes on render thread caused by IllegalStateException thrown in Scoreboard.removeScoreHolderFromTeam().<\/p>\n","protected":false},"featured_media":36848,"template":"","meta":{"_minecraft_slug":"cannot-remove-from-team-workaround","_minecraft_project_id":"PtJIWRcG","_minecraft_author":"BlueGradientHorizon","_minecraft_license":"CC0-1.0","_minecraft_downloads":834,"_minecraft_follows":8,"_minecraft_client_side":"required","_minecraft_server_side":"unsupported","_minecraft_storage_type":"zip","_minecraft_archive_name":"cannot-remove-from-team-workaround.zip","_minecraft_size_bytes":23811,"_minecraft_version_count":2,"_minecraft_updated_at":"2026-05-15T20:02:55.867251Z","_minecraft_date_created":"2024-04-14T23:50:28.078520Z","_minecraft_date_modified":"2024-04-16T20:05:40.585878Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/cannot-remove-from-team-workaround","_minecraft_icon_attachment_id":36848,"_minecraft_imported_at":"2026-06-01T18:28:34+00:00","_minecraft_import_hash":"078eea3f9dcc6160afd5e9e1c98159d6","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[43,97,90],"mod_loader":[99],"minecraft_version":[93,94],"class_list":["post-36847","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-cursed","mod_category-fabric","mod_category-optimization","mod_loader-fabric","minecraft_version-1-20-3","minecraft_version-1-20-4"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;Cannot remove from team&quot; workaround - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"&quot;Cannot remove from team&quot; workaround - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Eliminate lag spikes on render thread caused by IllegalStateException thrown in Scoreboard.removeScoreHolderFromTeam().\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/\",\"name\":\"\\\"Cannot remove from team\\\" workaround - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cannot-remove-from-team-workaround-icon-93ef3cad9dec34742687a0ce42f271c085236c35.png\",\"datePublished\":\"2026-06-01T18:28:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cannot-remove-from-team-workaround-icon-93ef3cad9dec34742687a0ce42f271c085236c35.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/cannot-remove-from-team-workaround-icon-93ef3cad9dec34742687a0ce42f271c085236c35.png\",\"width\":128,\"height\":128},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/cannot-remove-from-team-workaround\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"&#8220;Cannot remove from team&#8221; workaround\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"Cannot remove from team\" workaround - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/","og_locale":"en_US","og_type":"article","og_title":"\"Cannot remove from team\" workaround - Minecraft","og_description":"Eliminate lag spikes on render thread caused by IllegalStateException thrown in Scoreboard.removeScoreHolderFromTeam().","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/","name":"\"Cannot remove from team\" workaround - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/cannot-remove-from-team-workaround-icon-93ef3cad9dec34742687a0ce42f271c085236c35.png","datePublished":"2026-06-01T18:28:32+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/cannot-remove-from-team-workaround-icon-93ef3cad9dec34742687a0ce42f271c085236c35.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/cannot-remove-from-team-workaround-icon-93ef3cad9dec34742687a0ce42f271c085236c35.png","width":128,"height":128},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/cannot-remove-from-team-workaround\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"&#8220;Cannot remove from team&#8221; workaround"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/36847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/36848"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=36847"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=36847"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=36847"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=36847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}