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. Mirko911

Beiträge von Mirko911

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!
  • Download Rules Plugin

    • Mirko911
    • 27. Oktober 2014 um 17:08

    I've a list of 50 old plugins. The most will be updated soon

  • Bad name kick> warns to kick

    • Mirko911
    • 27. Oktober 2014 um 17:07

    if you have no pb, you'll see the message 5 times and after 2 seconds you'll get a kick
    with Iceops Serverfiles you'll see the message on the black screen
    with Punkbuster you'll see the message on a black screen.

    In my opinion there is no need to add "warn for bad names".

  • How to make me admin?

    • Mirko911
    • 19. Oktober 2014 um 11:41

    Check your Syntax here:

    http://jsonlint.com/

  • ScreenSay ScreenTell

    • Mirko911
    • 18. Oktober 2014 um 12:11

    These commands are included in beta6

  • ScreenSay ScreenTell

    • Mirko911
    • 17. Oktober 2014 um 23:43

    MAM 0.12 or 1.0.0?

  • Some help plz with MaM +6

    • Mirko911
    • 17. Oktober 2014 um 18:55

    get PHP 5.4

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 17. Oktober 2014 um 00:29

    wenn du "text" benutzt dann in Logfiles/plugins/report/report.log

    bei Mysql muss man noch was schreiben, was die Reports wieder ausgibt

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 16. Oktober 2014 um 23:07

    kann gerade aus irgendeinem Grund nichts hochladen.

    report.php in plugins/report durch diese ersetzen:

    Spoiler anzeigen
    PHP
    <?php
    
    
    
    
    /**
     * ManuAdminMod
     *
     * This is a powerful and platform independent software for administrating game servers of various kinds.
     * If you need help with installing or using this software, please visit our website at: www.ManuAdminMod.de
     * If you want to obtain additional permissions extending the license, contact us at: Webmaster@ManuAdminMod.de
     *
     * @copyright www.ManuAdminMod.de
     * @license http://www.creativecommons.org/licenses/by-nc-nd/4.0/ Creative Commons BY-NC-ND 4.0
     * @version 1.0.0-Beta+7
     * */
    
    
    
    
    namespace MAM\Plugins\Report;
    
    
    
    
    use MAM\Daemon\Libraries\Plugins\PluginHandler as PluginHandler;
    
    
    
    
    /**
     * Report Plugin
     *
     * Reports a player on the server and writes it into a logfile
     *
     * @author Mirko911 <mirko911@manuadminmod.de>
     * @version 1.0.0 15.10.14
     */
    class Report extends PluginHandler {
    
    
    
    
        /**
         * Log Class
         *
         * @var \MAM\Daemon\Libraries\Logging\Loghandler
         */
        private $logfile;
    
    
    
    
        /**
         * Inits the plugin
         *
         * This function initiates the plugin. This means that it register commands
         * default values, and events. It's important that every plugin has this function
         * Otherwise the plugin exists but can't be used
         */
        public function initPlugin() {
            parent::initPlugin();
    
    
    
    
            $this->mod->setDefaultCV('report', 'enabled', 0);
    
    
    
    
            if ($this->mod->getCV('report', 'storage') == "mysql" && $this->mod->getCV('database', 'databasetype') == "mysql") {
                $this->createTables();
            } else {
                $this->logfile = new \MAM\Daemon\Libraries\Loghandler('plugins/report/', 'reports');
                $this->logfile->setEcho(false);
            }
        }
    
    
    
    
        /**
         * Runs the plugin
         *
         * This function is called after all plugins were loaded and dependencies were checked.
         * In this function you can define things which you want to load, when all plugins are fine.
         *
         * If you know that you don't have any dependencies, you can remove this function.
         * Otherwise you should use it.
         *
         * In this function you should call functions like registerCommand, registerEvent, triggerEvent
         */
        public function runPlugin() {
            parent::runPlugin();
            $this->mod->registerCommand('report', '~^report .+$~i', 'report', $this);
        }
    
    
    
    
        private function createTables() {
            $sql = "
                CREATE TABLE IF NOT EXISTS `<PFX>report` (
                  `id` int(11) NOT NULL AUTO_INCREMENT,
                  `reporter_name` varchar(30) NOT NULL,
                  `reporter_group` varchar(50) NOT NULL,
                  `reported_name` varchar(30) NOT NULL,
                  `timestamp` int(11) NOT NULL,
                  `text` varchar(256) NOT NULL,
                  PRIMARY KEY (`id`)
                ) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
            $this->database->query($sql);
        }
    
    
    
    
        /**
         * Report Function
         *
         * This function handles the report and writes it to a textfile
         *
         * @param  string $guid      Guid of executing player
         * @param  array $parameter  Additional Parameters
         * @return false             false on fail
         */
        public function report($guid, $parameter) {
            $to_find = array_shift($parameter);
            $params = implode(" ", $parameter);
    
    
    
    
            $player = $this->mod->findPlayerGuid($to_find);
            if (!$player) {
                $this->players[$guid]->say($this->mod->getLngString("playerNotFound", array("<SEARCH>"), array($parameter)));
                return false;
            } else {
                $reporter_name = $this->players[$guid]->getName();
                $reporter_group = $this->players[$guid]->getGroup();
    
    
    
    
                $reported_name = $this->players[$player]->getName();
                $report_text = $this->mod->removeColor($params);
    
    
    
    
                if ($this->mod->getCV('report', 'storage') == "text") {
                    $time = date("[d.m.y H:i:s]");
    
    
    
    
                    $logstring = $time . ' (' . $reporter_group . ')' . $reporter_name . ' reported Player ' . $reported_name . ': ' . $report_text;
                } elseif ($this->mod->getCV('report', 'storage') == "mysql") {
                    $insert_array = array();
                    $insert_array['reporter_name'] = $reporter_name;
                    $insert_array['reporter_group'] = $reporter_group;
                    $insert_array['reported_name'] = $reported_name;
                    $insert_array['timestamp'] = time();
                    $insert_array['text'] = $report_text;
                    $this->database->insert('report', $insert_array);
                }
    
    
    
    
                $this->logging->write($logstring);
            }
            $this->players[$guid]->say("Player Reported");
        }
    
    
    
    
    }
    Alles anzeigen
  • ManuAdminMod 1.0.0-Beta+6

    • Mirko911
    • 16. Oktober 2014 um 22:46

    Help over Teamviewer is not the best solution. Help over TV just helps you and not the other people who may have the same problems.

    So what's your problem?
    PHP?
    Install MAM?
    Configuration?

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 16. Oktober 2014 um 22:42

    Test

  • Punkbuster Update klappt nicht (COD4)

    • Mirko911
    • 16. Oktober 2014 um 17:26

    [TUT]How to update/install pb on a new pc

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 16. Oktober 2014 um 10:23

    das Plugin nutzt die Daten vom "database" aus der config.json . Wenn du also dort noch keine Mysql Daten hinterlegt hast, wird automatisch Text genommen

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 15. Oktober 2014 um 23:35

    Soo, hab kp ob es klappt, da ich es nicht testen konnte.
    Einfach den Inhalt des Ordners auf den Server hochladen.
    Die Ordner sind so erstellt, dass das Plugin im Plugins Ordner landet und die Config im configs/plugins.

    Dann müsstest du noch die config/plugins/report.json editieren [wenn du das über eine Mysql DB laufen lassen willst]
    und den Report Command für Player freigeben.

    Wenns eine Textfile werden sollte, ist diese im Logfiles/plugins/report/report.log zu finden

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 15. Oktober 2014 um 22:41

    DB muss man die halt wieder ausgeben

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 15. Oktober 2014 um 20:26

    Datenbank oder Textfile?

  • No permissions to execute command

    • Mirko911
    • 15. Oktober 2014 um 15:27

    war ein Bug und wurde gefixt.
    Wenn du keine Custom Plugins hast, kannst du nochmal alle Files bis auf den Config Ordner löschen und durch die neue Version ersetzen.

    Das ist halt das Problem an Beta Versionen. Bugs kommen und Bugs werden gefixt ^^

  • !report-Plugin für neue MAM Versionen

    • Mirko911
    • 15. Oktober 2014 um 10:44

    Report Plugin für Teamspeak ist garnicht mal so cool, wie du denkst.

    Wenn du z.B. mehrere Gameserver hast und bei dem Report Plugin einen warteZeit von 2 - 5 min einbaust kann es dennoch sein, dass du alle 2 Minuten ein Poke im Teamspeak bekommst. Wobei die Nachrichten zu 99.9% "Hey", "Hey, just wanna test this", "I hate Crash", --- sind.

    Hatte dafür dann damals extra noch Blacklisted TS CHannel eingebaut in denen man nicht angestupst wird (AFK Channel z.B.)

    Ich weiß leider nicht wie weit @Yenz schon mit der Ts3 Klass ist und ob Poke und Admin UID herausfinden schon geht.
    Wenn es drin ist, kann man was basteln

  • No permissions to execute command

    • Mirko911
    • 15. Oktober 2014 um 10:36

    ich werde es gleich mal testen.

    Um welche Commands handelt es sich.
    !nextmap und co. also Game Commands
    oder !online, !pl ...

  • Custom maps

    • Mirko911
    • 14. Oktober 2014 um 18:53

    du musst die Map noch der Maps.cfg hinzufügen.
    Die liegt in deinem Configs Ordner

  • MAM stürzt ab bei !resetmystats

    • Mirko911
    • 14. Oktober 2014 um 12:24

    /home/u211870/mam/daemon/libraries/plugins/pluginhandler.php

    die Datei ist veraltet.
    Ich kann mir leider nicht vorstellen, wie du bei einer cleanen Beta 7 Version diesen Fehler bekommst :D

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