Banned Permission For Your Realm = /grant [username] [banned]
56 replies [Last post]
danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
5 votes

Hey Everyone,

A day or so ago my realm was attacked by Members of a clan in hope to make my realm a lower rank, Previously #15 now #24. They also did the same thing to the leader of my clan Boy_Soldier as well as a few other members. I only started playing WoM Realms about 10 days ago, and I was loving it until this event occurred, Now I have locked my realm and am too afraid to unlock it again, In case another attack occurs. When I first played WoM Realms I was surprised to find there was no grant/permission to lock a certain player from your realm. Therefore I am sure that the vast majority of players agree that there needs to be a banned/locked grant or permission.
Therefore I would like some of the staff to code a /grant [username] [banned] which deny's access to your realm. I will create it if I am given the source-code of the .class which contains the commands etcetera as I am an Expert in Java coding, For those of you who don't know, I own a Java gaming site (DaimonGaming) in which we make a Runescape Bot RSSaviour (The first working bot after the Bot Nuke) and a RSPS (Runescape Private Server) Daimon317. Therefore I can easily code a simple command for the server if you are willing to give me the .class which contains the command loader, as giving someone one class from a server is no problem and it has no effect as they cannot really do much by leaching it.
Edit: 29/1/2012
Since I started this topic Have had large amounts of support from a number of WoM Realms players, including some coding done by StopingPower23 , peteys93
and myself. 

Since then I have made a html permission for the site, bellow is an example for a user on my clan realm:


<td width="50"><a href="/?username=Danwasadog&amp;world=clan&amp;setuser=EpicNoob&amp;rank=-2#grants">Banned</a></td>

Here is an image of what it would look like on the default realm:
So therefore there has been a lot of work put toward making this easier to implement into the code. Thanks StopingPower23 and peteys93 for your contribution. Please vote for this topic guys. We want this to be supported and to happen. To the staff of World Of Minecraft Realms, Please support this topic. Please make WoM Realms a better and nicer place. Please add this to the server.
Thanks Lunick for your support too. If one staff member supports the rest can too.
Hope to see this in WoM Realms soon.
Edit:3/2/2012 - READ THIS BEFORE COMMENTING
There seems to be a lot of confusion in this topic. This is not about making a ban command for your realm, I do not support a ban command. What this topic is about is making another grant/permission such as build or admin which deny's the player on this permission access to your realm. For example EpicNoob comes to my realm and starts annoying me; 
"Dan"
'What?'
"Give meh build"
'No I do not give anyone build on my realms'
"Plz"
'No sorry'
"Com'n"
'No'
By now you would be really annoyed and want to ban them from your realm.
So /grant EpicNoob banned. Done EpicNoob is no-longer allowed in my realm.
This would make WoM Realms a lot more enjoyable not putting up with noobs in your realm. This in NOT about a ban command. Do not comment about any /ban command as I did not start this topic about one. Its a grant/permission.
Thanks Danwasadog


Please login to view downloads!

shaygrl's picture
shaygrl
Contributor
Contributor
Joined: 03/09/2011
Last seen: 31 weeks 3 days ago
Points: 523
Um

What's with putting a capital at the start of every word?

Its Peeeeeeeeeeeeeewdiepie

jak2131's picture
jak2131
Epic Contributor
Contributor +
Joined: 02/21/2011
Last seen: 44 weeks 2 days ago
Points: 6598
not true

on the 8th line, at the end, the "to" is not capitalised :D

"You must live for another if you wish to live for yourself." 

Lucius Annaeus Seneca

shaygrl's picture
shaygrl
Contributor
Contributor
Joined: 03/09/2011
Last seen: 31 weeks 3 days ago
Points: 523
All my words are capitalised

All my words are capitalised

Its Peeeeeeeeeeeeeewdiepie

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
I don't know, i was Bored

yea haha i was bored

Lunick's picture
Lunick
Officially Retired
Contributor +
Joined: 09/24/2010
Last seen: 1 year 16 weeks ago
Points: 8877
The server is made up of Lua

The server is made up of Lua scripts, not Java files.

https://github.com/norganna/WoMRealmsScripts I suggest you look here at the other commands that are available on the server :)

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Thanks Lunick

Thanks mate il check it out :)

calcakes's picture
calcakes
WoM Member
Members
Joined: 08/09/2009
Last seen: 1 year 29 weeks ago
Points: 128
Hi dAimon i need Help to

Hi dAimon i need Help to Write Java

Can You please help me, i can only wirte in english but even thats Not Good.
Thanks, Cal

crepes

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Ok?

What do you need help with?

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Change to grant.lua

Please accept this change:

-- Copyright 2011, Norganna's AddOns Pty Ltd. All rights reserved.
-- Edited by Danwasadog 2012
local lib = register("grant")
lib:hook("commanded",
function()
local detail = lib.detail
local result, message = lib:perms("Admin", "Visitor", "Support")
if result == false then return result, message end
if not detail.parameter then
return false, "Syntax: /grant USER LEVEL"
end
name, level = split(detail.parameter, " ")
if level == "none" or level == "no" then
level = 0;
levelName = "None"
elseif level == "build" or level == "builder" then
level = 1;
levelName = "Builder"
elseif level == "adv" or level == "advanced" then
level = 2;
levelName = "Advanced"
elseif level == "admin" or level == "administrator" then
level = 10;
levelName = "Admin"
elseif level == "restrict" or level == "restricted" then
level = -1;
levelName = "Restricted"
elseif level == "ban" or level == "banned" then
level = -2;
levelName = "Banned"
else
return false, "Unknown level"
end
username, destLevel = exists(name)
print("got", username, destLevel, "for", name)
if not username then
return false, "Unknown user: "..name
end
end,
function(perform)
perform("playermessage", "Grant successful: "..username.." is "..levelName)
perform("grant", username, level)
end
)
lib.help('moderate', 'grant', 'grant users to build in you realm\nLevels: restrict, none, build, advanced, admin', '/grant USER LEVEL')

Thanks Danwasadog

peteys93's picture
peteys93
Contributor
Contributor
Joined: 04/13/2011
Last seen: 6 weeks 3 days ago
Points: 341
Correct me if I'm wrong cuz I'm not exactly a lua expert

The edit you made here certainly looks like one that anyone could have easily made (btw you didn't add banned to the possible options in the help text, but that's beside the point). Certainly this would change the possible parameters for the grant command in game, but I'm pretty sure more goes on behind the scenes than the command shell itself(I.e what happens when a user is granted restricted). So it looks like this edit does nothing to help with the actual coding of what happens when a user is banned. It looks like for that triddin would need to create a value for banned from a realm (you have -2, could be whatever I assume) and use the existing realm kick method or a slight variation on it to handle what happens when a user tries to log into a realm that they are banned from.
That being said I think this is a pretty good idea for situations like yours especially.

Error: Invalid Signature

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Yea its sort of complicated

It is realy hard to do. I need the actual .class fill which handles the permissions (grants) to fully code it. Yea it was easy to do that to the .lua script. Yea I forgot the help .lua, sorry.

Loci 612's picture
Loci 612
Contributor
Contributor
Joined: 03/01/2011
Last seen: 1 week 5 days ago
Points: 809
Wow

Wow you only started playing 10 days ago and your tech? I think we have a "new wolftone1916" on wom realms XD. Anyway I love your idea and I would also like that to be coded :). I cant believe a clan did that!? I would really like to know which one. Anyway good luck on getting this coded!


danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Thanks Mate

Thanks. Yea I have been playing many long days. :P

AurumAquila's picture
AurumAquila
Contributor
Members
Joined: 09/29/2011
Last seen: 22 weeks 1 day ago
Points: 157
Great Idea :D

Hey I think that it's a great idea... Some people (like you) need some sort of ban because others are just jealous. (cause you're in a coolies clan and they're not XD) I heard some of the clan members that did that talking about it just today... I mean, C'mon who DOESN'T like your realm!?

Sharkbait whoo ha ha!

teodor88's picture
teodor88
Contributor
Contributor
Joined: 03/28/2011
Last seen: 1 year 37 weeks ago
Points: 289
The clan that did that is..

The clan that did that is ... JBI or so I heard.

Video games ruined my life, good thing I have 2 extra lives.

 

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Yes It Was

Yea, Im realy annoyed. :(

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Change to grant.lua (fixed)

-- Copyright 2011, Norganna's AddOns Pty Ltd. All rights reserved.
-- Edited by Danwasadog 2012
local lib = register("grant")
lib:hook("commanded",
function()
local detail = lib.detail
local result, message = lib:perms("Admin", "Visitor", "Support")
if result == false then return result, message end
if not detail.parameter then
return false, "Syntax: /grant USER LEVEL"
end
name, level = split(detail.parameter, " ")
if level == "none" or level == "no" then
level = 0;
levelName = "None"
elseif level == "build" or level == "builder" then
level = 1;
levelName = "Builder"
elseif level == "adv" or level == "advanced" then
level = 2;
levelName = "Advanced"
elseif level == "admin" or level == "administrator" then
level = 10;
levelName = "Admin"
elseif level == "restrict" or level == "restricted" then
level = -1;
levelName = "Restricted"
elseif level == "ban" or level == "banned" then
level = -2;
levelName = "Banned"
else
return false, "Unknown level"
end
username, destLevel = exists(name)
print("got", username, destLevel, "for", name)
if not username then
return false, "Unknown user: "..name
end
end,
function(perform)
perform("playermessage", "Grant successful: "..username.." is "..levelName)
perform("grant", username, level)
end
)
lib.help('moderate', 'grant', 'grant users to build in you realm\nLevels: banned, restrict, none, build, advanced, admin','/grant USER LEVEL')

Thanks Danwasadog

calcakes's picture
calcakes
WoM Member
Members
Joined: 08/09/2009
Last seen: 1 year 29 weeks ago
Points: 128
hey

i like your avatar dandog

crepes

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
*Danwasadog, Thanks

Yea thanks

peteys93's picture
peteys93
Contributor
Contributor
Joined: 04/13/2011
Last seen: 6 weeks 3 days ago
Points: 341
Well, If you're gonna use the kick command as a template

If you're gonna use the kick command as a template, you should take out the lines
if not isOnline then
return false, "That user is not online"
end

if mapFile ~= detail.mapFile then
return false, "User is not on this map"
end

and replace this line
username, userLevel, adminLevel, clanId, isOnline, mapFile = exists(name)
with this one
username, userLevel, adminLevel, clanId, = exists(name)

for starters, so that the user could be banned when he is not online, the only real thing that makes this one better is that it adds an admin note to the user. Which could possibly also be added in the grant command specifically for being granted banned.
But as far as I can tell, triddin will still have to code the actual thing that occurs when a user is banned.

Error: Invalid Signature

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Thanks Mate

Didnt think of that

peteys93's picture
peteys93
Contributor
Contributor
Joined: 04/13/2011
Last seen: 6 weeks 3 days ago
Points: 341
Possible kickban command with the current kick command as a temp

local lib = register ("rban")

lib:hook("commanded",
function()
local detail = lib.detail

if detail.adminLevel < 1 then
local result, message = lib:perms("Admin", "Visitor", "Support")
if result == false then return result, message end
end

if detail.parameter == "" then
return false, "Syntax: /rban USER REASON"
end

name, reason = split(detail.parameter, " ", 2)

if not reason then
return false, "Please supply a reason for the action"
end

//not sure if mapFile goes here or not, I think so though

username, userLevel, adminLevel, clanId, mapFile = exists(name)
if not username then
return false, "Unknown user: "..name
end

if username == detail.username then
return false, "Don't be silly! Why would you do that?"
end
if adminLevel > 1 or userLevel >= 99 then
return false, "You can not ban staff"
end

local userMapLevel = mapaccess(detail.mapFile, username)
if userMapLevel and userMapLevel >= 10 then
return false, "You can not ban the realm owner"
end

addnote(username, 'realmban', 'who=' .. detail.username .. ";action=banned;reason="..reason)
end,

//for kickban this may need editing, i'm no lua expert, just giving it a go.
if mapFile==detail.mapFile then
function(perform)
local detail = lib.detail
perform("playermessage", "Banning " .. username .. " from this realm")
perform("mapchange", "other", "chat", "", username)
perform("rban", username)
perform("messageto", username, "You have been banned from this realm")
perform("adminmessage", detail.username.." banned"..username.."\n - "..reason)
//for ban when user is not on the map
else
function (perform)
perform ("playermessage", "Banning " .. username .." from this realm")
perform ("rban", username)
perform("adminmessage", detail.username.." banned"..username.."\n - "..reason)
end
)
lib.help('moderate', 'rban', 'bans user from your world', '/rban USER REASON')

Triddin would still need to code for what happens when someone is rbanned, but I think that this one should work (with some minor editing) as the basic command shell for a kickban and a regular rban. Somewhere there might need to be a level assigned to the user, as dan had before -2 or something like that, so that the user is no longer allowed into the map, or is automatically kicked upon entry, but that may be something that triddin can (or has to) do beyond the command shell.

Error: Invalid Signature

roland223's picture
roland223
Contributor
Contributor
Joined: 09/28/2010
Last seen: 46 weeks 6 days ago
Points: 349
But....

Does it blend?

peteys93's picture
peteys93
Contributor
Contributor
Joined: 04/13/2011
Last seen: 6 weeks 3 days ago
Points: 341
No Indeed

No indeed roland, help!?

Error: Invalid Signature

Sk1lz's picture
Sk1lz
Epic Contributor
Contributor +
Joined: 01/04/2012
Last seen: 5 weeks 8 hours ago
Points: 1555
Rs bots..

You realize Runescape bots are illegal.

Might just report it =.=
sources:
common sense
Runescape Pmod
[EDIT] -I have no problem with Runescape private servers, I own one myself, I just cant stand bots! 

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Lol

Lol JaGex don't really care about small private bots anyways. Haha

Sk1lz's picture
Sk1lz
Epic Contributor
Contributor +
Joined: 01/04/2012
Last seen: 5 weeks 8 hours ago
Points: 1555
All bots are equal.

You are wrong.

Jagex treats all matters in regards to bots equally, it doesn't matter if it is a small "private" bot as you say, or one of the major bots like RSbot, they are dealt with in the same way. 
They care about all bots. They ruin the game for other players and make things extremely unfair.
Small bot or large bot, consider it reported..

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Ok

Sorry Mate :)

vjugalde's picture
vjugalde
WoM Member
Members
Joined: 04/01/2011
Last seen: 1 year 17 weeks ago
Points: 37
:(

im sorry for what happend , even if it was our group , idk wat happened , i was also never part , i never griefed in my life , i had been gone for a week , but im sorry to hear that :(

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Thanks Mate

At least you are good enough to admit it was wrong and apologize

It means a lot :)
Thanks Danwasadog

josh15's picture
josh15
WoM Member
Members
Joined: 11/19/2011
Last seen: 1 year 14 weeks ago
Points: 2
banning miner7254

hey hi im user josh15 asking if u could please ban miner7254. because he was griefing on my realm today.

       thank you.

shaygrl's picture
shaygrl
Contributor
Contributor
Joined: 03/09/2011
Last seen: 31 weeks 3 days ago
Points: 523
it

It wouldnt be a ban, it would be a restrict

Its Peeeeeeeeeeeeeewdiepie

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Staff Read This

Some WoM Realms staff need to read this thread. This needs to be included to the server. The remove all button was, a thread with less views. Please staff.

Thanks 
Danwasadog

jak2131's picture
jak2131
Epic Contributor
Contributor +
Joined: 02/21/2011
Last seen: 44 weeks 2 days ago
Points: 6598
hmmm

The staff read every single topic that gets posted up here, if they have not taken any action, that means that they do not think that the ideas are good enough to be implemented, either that or they are working to make the ideas as we type.

"You must live for another if you wish to live for yourself." 

Lucius Annaeus Seneca

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Okay

Okay..

jak2131's picture
jak2131
Epic Contributor
Contributor +
Joined: 02/21/2011
Last seen: 44 weeks 2 days ago
Points: 6598
well

i say that, i'm assuming that i'm not the only one on the staff page who reads the forums

"You must live for another if you wish to live for yourself." 

Lucius Annaeus Seneca

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Jak...

Jak can you please recommend this to staff.

Thanks Danwasadog

Lunick's picture
Lunick
Officially Retired
Contributor +
Joined: 09/24/2010
Last seen: 1 year 16 weeks ago
Points: 8877
A staff member will see this

A staff member will see this shortly.

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
Cheers Lunick

Cheers :)

boy_soldier's picture
boy_soldier
Contributor
Contributor
Joined: 11/03/2011
Last seen: 13 weeks 20 hours ago
Points: 223
In the end....

Are we going to end up with a /ban command added in the server? :/

P.S. I'm not a boy. I'm a man >:D

FiXeroN's picture
FiXeroN
Contributor
Contributor
Joined: 10/19/2010
Last seen: 12 hours 34 min ago
Points: 370
Well

I doubt they will add any ban command for users.
I think it will be abused... No need for it either :)

kman222's picture
kman222
Contributor
Contributor
Joined: 08/19/2009
Last seen: 4 days 13 hours ago
Points: 503
agreed

it would be abused by a LOAD of ppl and cause ban files to be flooded
now i do disagree with the no need for it, sometimes i want to ban some IDIOT that just wont stop asking me to grant them after saying "no" and several kicks, YES IK ABOUT LOCKING, i dont have prem now and im not wasting it on freem anymore, as it ends up as a 5,000,000 waste for me.

¤ø„¸¨°º¤ø„¸¸„ø¤º°¨¸„ø¤º

¨°º¤ø„¸TECHNO¸„ø¤º°¨

„ø¤º°¨FOREVER¨°º¤ø

¸„ø¤º°¨¸„ø¤ºº¤ø„¸¨°º¤

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
@Fixeron

Its not going to be a /ban command. Its going to be a permission for your realm which deny's a player access to your realm. E.g /grant [EpicNoob] [banned]. Therefore that player will not be allowed in your realm.

boy_soldier's picture
boy_soldier
Contributor
Contributor
Joined: 11/03/2011
Last seen: 13 weeks 20 hours ago
Points: 223
hm....

that command could be useful to some people because from my gaming experience in realms. there are some real duckheaded players out there that wouldn't leave you alone... and keeps on annoying u by going in your realm. and when you kick them, they can just go back in...

P.S. I'm not a boy. I'm a man >:D

aivant's picture
aivant
WoM Member
Members
Joined: 08/26/2011
Last seen: 29 weeks 5 days ago
Points: 62
and...

and suppose your sibling got on.....

FiXeroN's picture
FiXeroN
Contributor
Contributor
Joined: 10/19/2010
Last seen: 12 hours 34 min ago
Points: 370
Well

In my opinion.. No need for it :)
You can lock your realm if you have Premium.
You can also report them to staff.

danwasadog's picture
danwasadog
WoM Member
Members
Joined: 05/01/2011
Last seen: 2 years 4 weeks ago
Points: 38
@Fixeron

Ok. Well that's fine then. Everyone has different opinions.

I am premium, But locking your realm keeps everyone out of it.
With this permission you would be able to keep specific players who annoy you out of your realm.

boy_soldier's picture
boy_soldier
Contributor
Contributor
Joined: 11/03/2011
Last seen: 13 weeks 20 hours ago
Points: 223
yeah

I agree with dan. Locking your realm keeps everyone out. and when someone wants to go in they usualy go "hey <your name here>, how come i can't go in your realm?" or "hey <your name here, Unlock your realm!!!"

and it gets annoying and sometimes you can't be bothered always going /grant <other player's name here> admin, just to let them in. and when they are in you have to type in /grant <other player's name here> none again because your afraid that they might greif your realm.
/ban command is a good idea.

P.S. I'm not a boy. I'm a man >:D

kman222's picture
kman222
Contributor
Contributor
Joined: 08/19/2009
Last seen: 4 days 13 hours ago
Points: 503
lolz

u know u dont need to grant them admin just to let them in a locked realm, i tested this a while ago and u only need to grant them build+ to get them in. yes that can still be a hassle for having to type it. even when the guy has like a confusingly long name and have to type it 5 times

¤ø„¸¨°º¤ø„¸¸„ø¤º°¨¸„ø¤º

¨°º¤ø„¸TECHNO¸„ø¤º°¨

„ø¤º°¨FOREVER¨°º¤ø

¸„ø¤º°¨¸„ø¤ºº¤ø„¸¨°º¤

moujave's picture
moujave
Removed from Staff
Members
Joined: 08/10/2009
Last seen: 1 year 16 weeks ago
Points: 1688
Okay... Let's get some facts

Let's get some facts straight, saying "This is not a ban command, just simply stopping people coming into my realm".

Mate, that is what we call a ban command. What I find funny is that you have even called it a banned command... You just sound stupid saying it's not a ban command it's just banning people from your realm... derp derp derp.

Next.... How can people build on your realm if you haven't granted them permission? Is it a freebuild or something? If so tough luck, deal with it... It is your own fault.

"A day or so ago my realm was attacked by Members of a clan in hope to make my realm a lower rank" <---- that is not how it works, if you get griefed it doesn't affect your rank score.

If you don't want it to be griefed, turn off freebuild.

Next point... Implementing a new command like a ban is not as easy as updating some lua and adding html to the site... Let's get that straight now... that part would take like 3 minutes to do. The LUA scripts that you guys find necessary to write (and are wrong) are just plugins... plugins! To actually implement the code it would take a few hours changing code in the backend of the software which is not java or lua but in fact C. We would also have to alter the database with a new table and a few rows.

Also kman is right, you don't need to grant them admin to let them in............................................... herp herp herp!

Will this command be implemented? Probably not.. Why won't it be implemented:
Once banned they will start whinging and talking to you on global... (Why you ban me? Unban me?, Wah Wah Wah!) Next you clowns will ask us to implement another command, where someone has been banned that you have permanently ignored them and you can't see anything they type.... Next you'll be in a another realm with them and you can see them and interact, causing Realm Wars... Which I see going two way, you fight and fight and fight... One of you get banned from realms! Next you will come back to the forums asking that once you have banned someone from your realm they are permanently ignored from you at all times..... <---- Never going to happen.

However; this is all possible to do, but it takes time, a lot of time. With a quick calculation off the top of my head this would take triddin and I about 12 hours+ to implement...

Now I will run this by triddin, no promises!