diff --git a/src/database.rs b/src/database.rs index fa17ce9..8d0e513 100644 --- a/src/database.rs +++ b/src/database.rs @@ -7,6 +7,7 @@ pub struct Player { pub cloak: String, pub hats: Vec, pub hat: String, + pub coins: u32, pub online: bool, } diff --git a/src/methods/player.rs b/src/methods/player.rs index 37f287b..153925a 100644 --- a/src/methods/player.rs +++ b/src/methods/player.rs @@ -48,6 +48,7 @@ pub fn create(session: &Session) -> Result { cloak: "".to_string(), hats: Vec::new(), hat: String::new(), + coins: 0, online: true, };