Skip to content
This repository has been archived by the owner on May 30, 2018. It is now read-only.

Commit

Permalink
@iksaku: Please test if this works now.
Browse files Browse the repository at this point in the history
  • Loading branch information
PEMapModder committed Aug 5, 2014
1 parent b243dfc commit a5ac814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EssentialsPE/Commands/TempBan.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function execute(CommandSender $sender, $alias, array $args){
return false;
}
$seconds = 0;
while(preg_match('#^(\d+(\.\d+)?)(y|mo|w|d|h|m|s)$#i', array_shift($args), $match)){
while(preg_match('#^(\d+(\.\d+)?)(y|mo|w|d|h|m|s)$#i', array_shift($args), $match, PREG_SET_ORDER)){
$match = $match[0]; // TODO check if the flag is wrong
if(!is_numeric($match[1])){
break;
Expand Down

1 comment on commit a5ac814

@iksaku
Copy link

@iksaku iksaku commented on a5ac814 Aug 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will test it later today or maybe tomorrow :P

Please sign in to comment.