Skip to content

Instantly share code, notes, and snippets.

View jarne's full-sized avatar

Jarne jarne

  • Baden-Württemberg, Germany
  • 19:38 (UTC +02:00)
View GitHub Profile
# PocketMine-MP backup script
# (C) 2017 by jarne | https://github.com/jarne
BACKUP_NAME="$(date +%Y%m%d%H%M%S)"
# Create backup folder if not exists
mkdir backups
# Pack into archive
tar -czvf "$BACKUP_NAME.tar.gz" .
@jarne
jarne / sperate.php
Last active November 5, 2017 13:00
// $args = array("Das", "ist", "der", "Name", "Grund");
$argsCount = count($args);
$playerName = "";
$reason = $args[$argsCount - 1];
for($i = 0; $i < ($argsCount - 1); $i++) {
$playerName .= $args[$i];