Sign in to follow this  
AwakeZ

How to add more than one resource in settings.xml

Recommended Posts

Hello, I have this settings:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <acl_enabled>false</acl_enabled>
  <log_console>true</log_console>
  <log_chat>true</log_chat>
  <resource src="WiredPlayers"/>
</config>

and I want to add more than a resource but I don't know how.

I was trying with <resource src="WiredPlayers""admin"/>

                             <resource src="WiredPlayers"/><resource src="admin"/>

but not work, can help me?

Sorry for my English, I'm not English man.

Thank you.

Share this post


Link to post
Share on other sites

Add need lines like the one you have there:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <acl_enabled>false</acl_enabled>
  <log_console>true</log_console>
  <log_chat>true</log_chat>
  <resource src="WiredPlayers"/>
  <resource src="admin"/>
</config>

 

  • Like 1

Share this post


Link to post
Share on other sites

Hm... but now why stopped the  resource WiredPlayers 

-> Resource WiredPlayers started!
-> Starting admin resource..
admin: setting as Gamemode resource
-> Stopping WiredPlayers resource
-> Stopped WiredPlayers!
admin: loading scripts.. found 5 script(s)
admin: reading referenced assemblies.. found 2 reference(s)
admin: loading referenced assembly Newtonsoft.Json.dll from resources/admin/
admin: loading referenced assembly BCrypt.Net-Core.dll from resources/admin/
admin: compiling scripts..
admin: instantiating Admin.AccountHandler..
admin: instantiating Admin.Admin..
admin: instantiating Admin.Database..
admin: loading server events.. found 1 server event(s)
admin: loading server events.. found 2 server event(s)
admin: loaded 3 server events(s)
admin: loading commands.. found 13 command(s)
admin: loaded 13 commands(s)
-> Resource admin started!
Started! Waiting for connections..
[P] Plugin bridge.dll loaded!
Started HTTP server at 22006 port.
[M] Announcing into master server...
[M] Connected to master list.

Share this post


Link to post
Share on other sites

I guess it's because both are declared as "gamemode" resources on meta.xml? Not sure.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.