mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Cleaned up BanEntry creation
This commit is contained in:
@ -119,18 +119,12 @@ class BanEntry{
|
||||
}
|
||||
if(count($str) > 0){
|
||||
$entry->setReason(trim(array_shift($str)));
|
||||
|
||||
return $entry;
|
||||
}else{
|
||||
return $entry;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
return $entry;
|
||||
}
|
||||
}else{
|
||||
return $entry;
|
||||
}
|
||||
|
||||
return $entry;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user