Still reminded me that I have no jurisdiction.

UGather
Adds zones, permissions, and other options to modify gather rates!
Total Downloads: 6,540 - First Release: Mar 14, 2016 - Last Update: Apr 28, 2018
- 5/5, 19 likes
-
Odd, works for me when I try it, have you downloaded the most recent version?
-
I am sure that with the latest version
-
Ill take a second look at it a bit later tomorrow as i've been busy lately.
-
ребят у меня не работает выдача админа. кто знает что делать?
-
: English Version:"I am working on a solution to this problem, it seems to be bugged" -
-
-
permission.RegisterPermission("igather.admin", this);
if (permission.UserHasPermission(player.userID.ToString(), "pgather.admin"))
Видимо проблема в этом (Maybe this is problem)? -
да, это проблема, которую я буду это исправить в ближайшее время ! :П -
-
всё. админка заработала. как увеличить рейты определенной группе?
-
-
-
[DOUBLEPOST=1458214379,1458206775][/DOUBLEPOST]Hm. Error in console:
[Error] Failed to call hook 'OnDispenserGather' on plugin 'IGather v0.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
Multipliers do not work.
And I'm a little modified plugin. Add permission support. Change:
Code:void LoadDefaultConfig() { Puts("Creating a new config file"); Config.Clear(); Config["DefaultQuarryRate"] = 1; Config["DefaultResourceRate"] = 1; Config["DefaultCollectable"] = 1; Config["VipQuarryRate"] = 5; Config["VipResourceRate"] = 5; Config["VipCollectable"] = 5; Config.Save(); }
Code:void OnPlayerInit(BasePlayer player) { if (permission.UserHasPermission(player.userID.ToString(), "igather.vip")) { if (!storedData.Users.ContainsKey(player.userID)) InitUserDataVipNew(player); else InitUserDataVip(player); } else { if (!storedData.Users.ContainsKey(player.userID)) InitUserDataNew(player); else InitUserData(player); } } private bool InitUserDataNew(BasePlayer player) { storedData.Users.Add(player.userID, new UserInfo()); storedData.Users[player.userID].Name = player.displayName; storedData.Users[player.userID].PlayerQuarry = Convert.ToInt32(Config["DefaultQuarryRate"]); storedData.Users[player.userID].ResourceRate = Convert.ToInt32(Config["DefaultResourceRate"]); storedData.Users[player.userID].CollectableRate = Convert.ToInt32(Config["DefaultCollectable"]); SaveData(); return true; } private bool InitUserData(BasePlayer player) { storedData.Users[player.userID].PlayerQuarry = Convert.ToInt32(Config["DefaultQuarryRate"]); storedData.Users[player.userID].ResourceRate = Convert.ToInt32(Config["DefaultResourceRate"]); storedData.Users[player.userID].CollectableRate = Convert.ToInt32(Config["DefaultCollectable"]); SaveData(); return true; } private bool InitUserDataVipNew(BasePlayer player) { storedData.Users.Add(player.userID, new UserInfo()); storedData.Users[player.userID].Name = player.displayName; storedData.Users[player.userID].PlayerQuarry = Convert.ToInt32(Config["VipQuarryRate"]); storedData.Users[player.userID].ResourceRate = Convert.ToInt32(Config["VipResourceRate"]); storedData.Users[player.userID].CollectableRate = Convert.ToInt32(Config["VipCollectable"]); SaveData(); return true; } private bool InitUserDataVip(BasePlayer player) { storedData.Users[player.userID].PlayerQuarry = Convert.ToInt32(Config["VipQuarryRate"]); storedData.Users[player.userID].ResourceRate = Convert.ToInt32(Config["VipResourceRate"]); storedData.Users[player.userID].CollectableRate = Convert.ToInt32(Config["VipCollectable"]); SaveData(); return true; }
Code:void LoadPermissions() { permission.RegisterPermission("igather.admin", this); permission.RegisterPermission("igather.defaultall", this); permission.RegisterPermission("igather.default", this); permission.RegisterPermission("igather.set", this); permission.RegisterPermission("igather.setall", this); permission.RegisterPermission("igather.gatherp", this); permission.RegisterPermission("igather.vip", this); }
Error fix not ready yet. I'm read code another plugin, but not find place of error. Any ideas? -
The key problem was because you were not added for sone reaason, just try rejoining.
-
-
Maybe it is a conflict of plugins? GatherManager or zLevelsRemastered. -
Gathermanager will most likely cause a conflict, ZLevels shouldn't Basically what I meant was you didnt have a key in the dictionary cause your key got deleted some how. All you have to do is rejoin to fix.
[DOUBLEPOST=1458237479][/DOUBLEPOST]I'll add a VIP system soon, it will be custom groups though. -