Hi. I really need a plugin that will send console commands when the server starting up. I tried one called StartUpCmds but it doesn't really work. Can someone please do this for me? Thanks in advance.
They have an wiki, you need to add lines to the main.ms, I think that it was : run(<your command without an / here>)
Ok thanks. Looks like the plugin has what I need. But the wiki doesn't tell me how to use commands on start up. Could you maybe show me an example?
Ok so I tried that but I can't seem to get it to work. Would it be possible to show me a full main.ms file with this in it?
iPodHacks142 Code: ###################################################### # # Sample Main file. This file is run when the server # starts up, or the plugin is reloaded. It can be used # as an opportunity to register events or do other things # when the server initially starts. Variables defined here # will go out of scope, so you can't assign() something and # then use it in a command, for instance. # ###################################################### assign(@server_name, '<Server Name>') #Echo out a server greeting to the console console('Welcome to this server, which is running CommandHelper!') #Bind an event to the player join, and tell ops hello. We send in #@server_name, so we can use it inside the event handler bind(player_join, null, null, [USER=8023]Event[/USER], @server_name, #if the player is an op, let's send them a message if(pisop(@event[player]), tmsg(@event[player], 'Welcome to' @server_name)) run('pardon timtower') run('ban Notch') )
MXCRAFTSERVER That would be great. Thanks but not what i'm looking for. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I got this. Give me a bit less than a hour. 25 lines of code =D <Edit by Moderator: Redacted mediafire url> Just edit them in the config. If you want commands like to add delete reload, it'll only take a few more minutes. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
[quote uid=90707285 name="Ultimate_n00b" post=1687727]25 lines of code =D <Edit by Moderator: Redacted mediafire url> Just edit them in the config. If you want commands like to add delete reload, it'll only take a few more minutes.[/quote] Not working:
[quote uid=90728598 name="iPodHacks142" post=1687736]Not working:[/quote] Yeah, I compile with 7. But on the other hand, I added commands + permissions /sc - startcommand.help - Views the basic commands /sc add <command> - startcommand.add - Add a command /sc list <page#> - startcommand.list - The first page is 0, not 1 /sc delete <#> - startcommand.delete - Delete a start command Sadly, 96 lines of code. Not like its a lot, but I can't submit it to the 50 line page = ( Well, heres the link: <Edit by Moderator: Redacted mediafire url> I suppose I could compile with java 6, I just don't feel like downloading it >_>