1. GSManager
    1. Funktionen
    2. Unterstützte Spiele
    3. Neuigkeiten
    4. Statistiken
    5. Serverliste
  2. Lexikon
  3. Filebase
  4. Entwicklung
  5. Forum
    1. Dashboard
    2. Unerledigte Themen
  6. Web-Interface
  7. Artikel
  8. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Dateien
  • Forum
  • Lexikon
  • Erweiterte Suche
  1. GSManager
  2. Mitglieder
  3. Fiftyseven

Beiträge von Fiftyseven

Das Projekt GSManager (vormals ManuAdminMod) wurde am 01.01.2020 eingestellt - diese Internetpräsenz bleibt verfügbar, die Software wird aber nicht länger gepflegt. Vielen Dank für eure Unterstützung in den mehr als zehn vergangenen Jahren!
  • Kick > [minutes]

    • Fiftyseven
    • 24. März 2009 um 06:55

    Great suggestion! Ive just got Manu Admin Mod for my server, and first thing i did was a small corrections to !tempban command so admins can ban for different amount of time.
    In basiccommands.php i change part of tempBan method

    PHP
    if (!empty($parameters)) {
    				$reason = implode(" ", $parameters);
    			}
    			else {
    				$reason = false;
    			}
    			if ($this->players[$tokick]->tempBan($reason)) {


    to this

    PHP
    if (!empty($parameters)) {
            	if (is_numeric($parameters[0])) {
               	$duration = $parameters[0];
               	unset($parameters[0]);
            	}
            	$reason = implode(" ", $parameters);
    			}
    			else {
    				$reason = false;
            	$duration = false;
    			}
    			if ($this->players[$tokick]->tempBan($duration, $reason)) {
    Alles anzeigen


    And in player.class.php i change this

    PHP
    public function tempBan($reason = false) {
    		if (!$reason) {
    			$reason = $this->mod->getCV("kickban", "defaultbanreason");
    		}
    		if ($this->mod->getCV("kickban", "usepb")) {
    			$result = $this->rcon->rcon("pb_sv_kick ".$this->getPbid()." ".$this->mod->getCV("kickban", "pbtempbanduration")." $reason");


    to this

    PHP
    public function tempBan($duration = false, $reason = false) {
      	if (!$duration) {
         	$duration = $this->mod->getCV("kickban", "pbtempbanduration");
      	}
    		if (!$reason) {
    			$reason = $this->mod->getCV("kickban", "defaultbanreason");
    		}
    		if ($this->mod->getCV("kickban", "usepb")) {
    			$result = $this->rcon->rcon("pb_sv_kick ".$this->getPbid()." ".$duration." ".$reason);

    And it worked! Atleast for me and atleast for now.
    With this you can do
    !tempban Player 15 for teamkilling
    to ban player for 15 minutes with reason 'for teamkilling' or
    !tempban Player for teamkilling
    to ban player for your default amount of time with the same reason.

  1. Mitarbeiter
  2. Datenschutzerklärung
  3. Nutzungsbedingungen
  4. Impressum
  5. Kontakt
Community-Software: WoltLab Suite™