Skip to content

Commit 4a43b83

Browse files
committed
AW_CITIZEN_NAME
1 parent 1b86954 commit 4a43b83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/attributes/mapping.rs

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl InstanceExt for Instance {
5252
fn get<T: Attrib>(&mut self, attribute: aw::ATTRIBUTE) -> Option<T> {
5353
match attribute {
5454
aw::ATTRIBUTE::CITIZEN_NUMBER => unsafe { vp::int(self.vp, vp::USER_ID) }.into_req(),
55+
aw::ATTRIBUTE::CITIZEN_NAME => vp_string(self, vp::USER_NAME).into_req(),
5556
aw::ATTRIBUTE::WORLD_NAME => vp_string(self, vp::WORLD_NAME).into_req(),
5657
aw::ATTRIBUTE::WORLD_BUILD_NUMBER => 69.into_req(), // Needed for Xelagot to whisper, 69 = latest 3.6
5758
aw::ATTRIBUTE::CHAT_MESSAGE => vp_string(self, vp::CHAT_MESSAGE).into_req(),

0 commit comments

Comments
 (0)