Jump to content

I Need Help Troubleshooting My Code


MrUNST0PABL39
 Share

Recommended Posts

Hello, Im Working On Some Perms For A Game Server And I Cant Figure Out Why It Doesnt Work, Im New To XML So Thats Probebly Why But If You Could Help Me That Would Be Great

The Code And Error Message Are Bellow:

image.thumb.png.b38fac9d96f348b4d46c17e46982f950.png

<?xml version="1.0" encoding="utf-8"?>
<RocketPermissions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <DefaultGroup>default</DefaultGroup>
  <Groups>
    <Group>
      <Id>default</Id>
      <DisplayName>Guest</DisplayName>
      <Prefix> [Player] </Prefix>
      <Suffix />
      <Color>32CD32</Color>
      <Members />
      <Priority>100</Priority>
      <Permissions>
        <Permission Cooldown="0">compass</Permission>
        <Permission Cooldown="0">p</Permission>
        <Permission Cooldown="0">rocket</Permission>
        <Permission Cooldown="0">kit.*</Permission>
        <Permission Cooldown="0">kits</Permission>
        <Permission Cooldown="300">kit.Starter</Permission>
        <Permission Cooldown="10">home</Permission>
        <Permission Cooldown="0">tpa</Permission>
        <Permission Cooldown="5">tpa.send</Permission>
        <Permission Cooldown="0">tpa.accept</Permission>
      </Permissions>
    </Group>
    <Group>
      <Id>Mod</Id>
      <DisplayName>Mod</DisplayName>
      <Prefix> [Mod] </Prefix>
      <Suffix />
      <Color>FFA500</Color>
      <Members>
        <Member />
      </Members>
      <ParentGroup>default</ParentGroup>
      <Priority>100</Priority>
      <Permissions>
        <Permission Cooldown="0">Kick</Permission>
        <Permission Cooldown="100">Heal</Permission>
        <Permission Cooldown="0">Teleport</Permission>
        <Permission Cooldown="0">Day</Permission>
        <Permission Cooldown="0">Night</Permission>
      </Permissions>
    </Group>
    <Group>
      <Id>Staff</Id>
      <DisplayName>Staff</DisplayName>
      <Prefix> [Staff] </Prefix>
      <Suffix />
      <Color>0000FF</Color>
      <Members>
        <Member />
      </Members>
      <ParentGroup>Mod</ParentGroup>
      <Priority>100</Priority>
      <Permissions>
        <Permission Cooldown="0">Item</Permission>
        <Permission Cooldown="0">Vehicle</Permission>
        <Permission Cooldown="0">Ban</Permission>
        <Permission Cooldown="0">skills.skill</Permission>
        <Permission Cooldown="0">skills.skill.other</Permission>
        <Permission Cooldown="0">skills.maxskills</Permission>
        <Permission Cooldown="0">skills.maxskills.other</Permission>
        <Permission Cooldown="0">skills.zeroskills</Permission>
        <Permission Cooldown="0">skills.zeroskills.other</Permission>
      </Permissions>
    </Group>
    <Group>
      <Id>Owner</Id>
      <DisplayName>Owner</DisplayName>
      <Prefix> [Owner] </Prefix>
      <Suffix />
      <Color>00FFFF</Color>
      <Members>
        <Member>76561198314673588</Member>
      </Members>
      <ParentGroup>Staff</ParentGroup>
      <Priority>100</Priority>
      <Permissions>
        <Permission Cooldown="0">Slay</Permission>
        <Permission Cooldown="0">Admin</Permission>
      </Permissions>
    </Group>
  </Groups>
</RocketPermissions>

Link to comment
Share on other sites

The main error here states

Quote

XmlException: The 'Kit' start tag on line 4 position 6 does not match end tag of 'kit'. Line 14, position 7

There is no Kit tag in the XML shown. I'm about 80% sure that this isn't the file that is having issues.

Could you show us the file that defines kits in your game?

Link to comment
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
 Share

×
×
  • Create New...