diff --git a/server/src/state_ext.rs b/server/src/state_ext.rs index bb577f2f1b..fc4272b204 100644 --- a/server/src/state_ext.rs +++ b/server/src/state_ext.rs @@ -1,6 +1,5 @@ use crate::{ - client::Client, persistence::PersistedComponents, settings::ServerSettings, - sys::sentinel::DeletedEntities, SpawnPoint, + client::Client, persistence::PersistedComponents, sys::sentinel::DeletedEntities, SpawnPoint, }; use common::{ character::CharacterId, @@ -192,18 +191,6 @@ impl StateExt for State { player.character_id = Some(character_id); }); - // Give the Admin component to the player if their name exists in admin list - if self.ecs().fetch::().admins.contains( - &self - .ecs() - .read_storage::() - .get(entity) - .expect("Failed to fetch entity.") - .alias, - ) { - self.write_component(entity, comp::Admin); - } - // Tell the client its request was successful. if let Some(client) = self.ecs().write_storage::().get_mut(entity) { client.allow_state(ClientState::Character);