I've a list of 50 old plugins. The most will be updated soon
Beiträge von Mirko911
-
-
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".
-
Check your Syntax here:
-
These commands are included in beta6
-
MAM 0.12 or 1.0.0?
-
-
wenn du "text" benutzt dann in Logfiles/plugins/report/report.log
bei Mysql muss man noch was schreiben, was die Reports wieder ausgibt
-
kann gerade aus irgendeinem Grund nichts hochladen.
report.php in plugins/report durch diese ersetzen:
Spoiler anzeigen
PHP
Alles anzeigen<?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"); } }
-
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? -
-
-
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
-
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
-
DB muss man die halt wieder ausgeben
-
Datenbank oder Textfile?
-
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 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 -
ich werde es gleich mal testen.
Um welche Commands handelt es sich.
!nextmap und co. also Game Commands
oder !online, !pl ... -
du musst die Map noch der Maps.cfg hinzufügen.
Die liegt in deinem Configs Ordner -
/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