mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Cleaned up BanEntry creation
This commit is contained in:
@@ -119,18 +119,12 @@ class BanEntry{
|
|||||||
}
|
}
|
||||||
if(count($str) > 0){
|
if(count($str) > 0){
|
||||||
$entry->setReason(trim(array_shift($str)));
|
$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