i opened an issue to google code.. there is no way currently to use registerChatCommand to enter multiple words of as parameter into one variable. let's say i want to write personalmessage plugin or googletranslate... only way currently is to hookup to onPlayerChat and parse it by hand, which i think is kinda stupid.
*edit*
and maybe you could remove casesensitivity of chat command --> real command, as ppl in trackmania doesn't care much of case sensitivity on commands.
*edit2*
hmm.. the chatcommand fails to trigger if parameter count is not right.. says command *xx* doesn't exists try /help to see list...
How on earth i'm going to implement a plugin with selectable content, /gg should take either 0 or 1 parameters. 0 for general congratulations and 1 for player login.
problems with registerChatCommand...
Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies
Moderator: NADEO
-
- Nadeo
- Posts: 601
- Joined: 14 Jun 2010, 16:15
- Manialink: maniahome
- Location: In front of your hood with one lap late
Re: problems with registerChatCommand...
You just have to register 2 commands with the same callback. To work your callback method should have a default parameter.
For the parameters count, we'll maybe do something for this, but it's not a priority.
For the parameters count, we'll maybe do something for this, but it's not a priority.
Also known as: satanasdiabolo
Return to “Dedicated Server Tools”
Jump to
- English Forums
- ↳ MP4.1 REPORTS / BUGS / INFORMATION
- ↳ Announcements
- ↳ Community / Events / CHANNELS
- ↳ Title Packs
- ↳ Medias
- ↳ Events
- ↳ CHANNELS
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Workbench
- ↳ Track Editor
- ↳ Multiplayer
- ↳ Shootmania
- ↳ Workbench
- ↳ Map Editor
- ↳ Multiplayer
- ↳ Find a Team
- ↳ Questmania
- ↳ Trackmania Turbo
- ↳ Off-Topics
- ↳ Ingame
- ↳ ActionMaker and Item editor
- ↳ Ingame Publishing
- ↳ Interface Designer
- ↳ ManiaLib
- ↳ ManiaLink
- ↳ ManiaScript
- ↳ MediaTracker
- ↳ Mesh Modeler
- ↳ Title Pack & Custom Data Creation
- ↳ Support & Bug Reports
- ↳ Support and technical issues (not bug)
- ↳ Bug Reports
- ↳ Maniaplanet Reports
- ↳ Shootmania Reports
- ↳ Trackmania² Reports
- ↳ Closed Beta Reports
- ↳ Maniaplanet Reports
- ↳ Trackmania² Canyon Reports
- ↳ Shootmania Storm Reports
- ↳ User Manual
- ↳ Documentation
- Dedicated & Web Service / Players Tools
- ↳ Dedicated Server
- ↳ Dedicated Server
- ↳ Dedicated Server Tools
- ↳ ManiaLive Plugins
- ↳ Ladder Servers
- ↳ Web Services
- ↳ Maniaplanet Web Services
- ↳ Trackmania Forever Web Services
- ↳ Player Tools
- ↳ General Tools
- ↳ Openplanet
- ↳ Server Controllers
- ↳ MPAseco
- ↳ ManiaControl
- ↳ eXpansion
- ↳ UASECO
- ↳ PyPlanet
- Languages
- ↳ Dutch
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-topics
- ↳ French
- ↳ Maniaplanet
- ↳ Titres des joueurs
- ↳ Trackmania 2
- ↳ L'Atelier
- ↳ L'Editeur de circuits
- ↳ Multijoueur
- ↳ Tuning
- ↳ Shootmania
- ↳ L'Atelier
- ↳ L'Editeur de map
- ↳ Multijoueur
- ↳ Tuning
- ↳ Questmania
- ↳ Bla bla
- ↳ Support
- ↳ Manuel d'Utilisateur
- ↳ German
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Werkstatt
- ↳ Track-Editor
- ↳ Multiplayer
- ↳ Tuning
- ↳ Shootmania
- ↳ Werkstatt
- ↳ Map-Editor
- ↳ Multiplayer
- ↳ Tuning
- ↳ Questmania
- ↳ Andere Themen
- ↳ Support
- ↳ User Manual
- ↳ Lokalisierung
- ↳ Polish
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topics
- ↳ Localization
- ↳ Russian
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Флейм
- ↳ Czech
- ↳ Maniaplanet
- ↳ Návrhy
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Jiné téma
- ↳ Wiki
- ↳ Danish
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Forslag
- ↳ Alt Andet
- ↳ Wiki
- ↳ Finnish
- ↳ Maniaplanet
- ↳ TracKmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Yleistä keskustelua
- ↳ Wiki
- ↳ Hungarian
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topik
- ↳ Localization
- ↳ Wiki
- ↳ Italian
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topics
- ↳ Wiki
- ↳ Korean
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topics
- ↳ Wiki
- ↳ Norwegian
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topics
- ↳ Wiki
- ↳ Portuguese
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Multiplayer
- ↳ MediaTracker/ Editor de maps/e outros
- ↳ Tuning
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topics
- ↳ Wiki
- ↳ Spanish
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ La CafeterÃa
- ↳ Localización
- ↳ Wiki
- ↳ Swedish
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Off-Topics
- ↳ Wiki
- ↳ Turkish
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ Konu Dışı
- ↳ Wiki
- ↳ Chinese
- ↳ Maniaplanet
- ↳ Trackmania 2
- ↳ Shootmania
- ↳ Questmania
- ↳ é—²èŠçŒæ°´
- ↳ Wiki
- ↳ ManiaTeam
- ↳ ManiaHost
- ↳ ManiaSpace
- ↳ SMART Servercontroller
- ↳ FoxControl
- ↳ TPS GASECO
- ↳ JsControl
- ↳ TrackMania 1 - English
- ↳ TrackMania 1 - Français
- ↳ TrackMania 1 - German
Who is online
Users browsing this forum: No registered users and 1 guest