i dont believed that its a **** source, kindly teach us how to fix this sir.
The fix is to delete the source of your computer and write your own.
It's not really a debate. Even the original creator of the source agrees it's not very good and was only really used to learn some new programming concepts.
It is NOT a source you should try to use to host a public server with or use to develop one unless you're willing to re-write large portions of it AND develop a ton of content as it currently has none.
I don't have anything personal with you , I really appreciate a lot because you work alone on this source .
Can you explain to me what this means ? why you use foreach ? when you have the player up?
public static bool CanUse(Player Player, Consumable Type, bool IncrementCounter)
{
foreach (var E in Entries.Where(E => E.PlayerUID == Player.UID))
{
if (E.Used >= E.Allowed) return false;
if (IncrementCounter)
E.Used++;
return true;
}
switch (Type)
{
case Consumable.ExpBalls:
{
Add(Player, Type, 10, true);
break;
}
default:
{
Add(Player, Type, 1, true);
break;
}
}
return true;
}
I don't have anything personal with you , I really appreciate a lot because you work alone on this source .
Can you explain to me what this means ? why you use foreach ? when you have the player up?
public static bool CanUse(Player Player, Consumable Type, bool IncrementCounter)
{
foreach (var E in Entries.Where(E => E.PlayerUID == Player.UID))
{
if (E.Used >= E.Allowed) return false;
if (IncrementCounter)
E.Used++;
return true;
}
switch (Type)
{
case Consumable.ExpBalls:
{
Add(Player, Type, 10, true);
break;
}
default:
{
Add(Player, Type, 1, true);
break;
}
}
return true;
}
It's safe to delete that and write it from scratch.
I'd be more scared to see the underlying structure of that... It's implying some horrifying inheritance based on how it's written (which is of course also incorrect)
I don't have anything personal with you , I really appreciate a lot because you work alone on this source .
Can you explain to me what this means ? why you use foreach ? when you have the player up?
public static bool CanUse(Player Player, Consumable Type, bool IncrementCounter)
{
foreach (var E in Entries.Where(E => E.PlayerUID == Player.UID))
{
if (E.Used >= E.Allowed) return false;
if (IncrementCounter)
E.Used++;
return true;
}
switch (Type)
{
case Consumable.ExpBalls:
{
Add(Player, Type, 10, true);
break;
}
default:
{
Add(Player, Type, 1, true);
break;
}
}
return true;
}
That class is not even used, thats a zombie file. This class was never finished / implemented.