Change your nexus map to "NexusMap.jm"
Add it using visual studio 2015.
Rightclick>Properties>Build Action>Embedded Resource
In Nexus.cs replace this with whats in there.
(Replace "using System****; with using System(DOT)IO; " with (DOT) i mean "."
Code:
#region
using System.Collections.Generic;
using System****;
using wServer.realm.entities;
using wServer.realm.entities.player;
using wServer.realm.terrain;
#endregion
namespace wServer.realm.worlds
{
public class Nexus : World
{
public const string NEXUS_RESOURCE = "wServer.realm.worlds.maps.NexusMap.jm";
public Nexus()
{
Id = NEXUS_ID;
Name = "Nexus";
ClientWorldName = "server.nexus";
Background = 2;
AllowTeleport = false;
Difficulty = -1;
}
protected override void Init()
{
LoadMap(NEXUS_RESOURCE, MapType.Json);
}
public override void Tick(RealmTime time)
{
base.Tick(time); //normal world tick
CheckDupers();
UpdatePortals();
}
private void CheckDupers()
{
foreach (KeyValuePair<int, World> w in Manager.Worlds)
{
foreach (KeyValuePair<int, World> x in Manager.Worlds)
{
foreach (KeyValuePair<int, Player> y in w.Value.Players)
{
foreach (KeyValuePair<int, Player> z in x.Value.Players)
{
if (y.Value.AccountId == z.Value.AccountId && y.Value != z.Value)
{
y.Value.Client.Disconnect();
z.Value.Client.Disconnect();
}
}
}
}
}
}
private void UpdatePortals()
{
foreach (var i in Manager.Monitor.portals)
{
foreach (var j in RealmManager.CurrentRealmNames)
{
if (i.Value.Name.StartsWith(j))
{
if (i.Value.Name == j) (i.Value as Portal).PortalName = i.Value.Name;
i.Value.Name = j + " (" + i.Key.Players.Count + "/" + RealmManager.MAX_REALM_PLAYERS + ")";
i.Value.UpdateCount++;
break;
}
}
}
}
}
}
Once all this is done, press Build>Rebuild.