Banned Permission For Your Realm = /grant [username] [banned]
56 replies [Last post]
danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38

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 World of Minecraft 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 World of Minecraft 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 World of Minecraft 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 World of Minecraft 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 World of Minecraft 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 World of Minecraft 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

shaygrl
Contributor
Contributor
WoM Member: 209149
WoM Coins: 529
Um

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

jak2131
Epic Contributor
Contributor +
WoM Member: 191805
WoM Coins: 6608
not true

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

shaygrl
Contributor
Contributor
WoM Member: 209149
WoM Coins: 529
All my words are capitalised

All my words are capitalised

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
I don't know, i was Bored

yea haha i was bored

Lunick
Officially Retired
Contributor +
WoM Member: 74757
WoM Coins: 8985
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
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Thanks Lunick

Thanks mate il check it out :)

calcakes
WoM Member
Members
WoM Member: 9
WoM Coins: 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

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Ok?

What do you need help with?

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 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
Contributor
Contributor
WoM Member: 240803
WoM Coins: 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.

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 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
Contributor
Contributor
WoM Member: 200914
WoM Coins: 810
Wow

Wow you only started playing 10 days ago and your tech? I think we have a "new wolftone1916" on World of Minecraft 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
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Thanks Mate

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

AurumAquila
Contributor
Members
WoM Member: 357586
WoM Coins: 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!?

teodor88
Contributor
Contributor
WoM Member: 228020
WoM Coins: 291
The clan that did that is..

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

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Yes It Was

Yea, Im realy annoyed. :(

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 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
WoM Member
Members
WoM Member: 9
WoM Coins: 128
hey

i like your avatar dandog

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
*Danwasadog, Thanks

Yea thanks

peteys93
Contributor
Contributor
WoM Member: 240803
WoM Coins: 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.

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Thanks Mate

Didnt think of that

peteys93
Contributor
Contributor
WoM Member: 240803
WoM Coins: 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.

roland223
Contributor
Contributor
WoM Member: 77906
WoM Coins: 351
But....

Does it blend?

peteys93
Contributor
Contributor
WoM Member: 240803
WoM Coins: 341
No Indeed

No indeed roland, help!?

Sk1lz
Epic Contributor
Contributor +
WoM Member: 398173
WoM Coins: 1556
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
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Lol

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

Sk1lz
Epic Contributor
Contributor +
WoM Member: 398173
WoM Coins: 1556
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
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Ok

Sorry Mate :)

vjugalde
WoM Member
Members
WoM Member: 230924
WoM Coins: 38
:(

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
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Thanks Mate

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

It means a lot :)
Thanks Danwasadog

josh15
WoM Member
Members
WoM Member: 378935
WoM Coins: 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
Contributor
Contributor
WoM Member: 209149
WoM Coins: 529
it

It wouldnt be a ban, it would be a restrict

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Staff Read This

Some World of Minecraft 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
Epic Contributor
Contributor +
WoM Member: 191805
WoM Coins: 6608
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.

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Okay

Okay..

jak2131
Epic Contributor
Contributor +
WoM Member: 191805
WoM Coins: 6608
well

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

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Jak...

Jak can you please recommend this to staff.

Thanks Danwasadog

Lunick
Officially Retired
Contributor +
WoM Member: 74757
WoM Coins: 8985
A staff member will see this

A staff member will see this shortly.

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 38
Cheers Lunick

Cheers :)

boy_soldier
Contributor
Contributor
WoM Member: 373162
WoM Coins: 223
In the end....

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

FiXeroN
Contributor
Contributor
WoM Member: 100275
WoM Coins: 398
Well

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

kman222
Contributor
Contributor
WoM Member: 516
WoM Coins: 596
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.

danwasadog
WoM Member
Members
WoM Member: 255967
WoM Coins: 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
Contributor
Contributor
WoM Member: 373162
WoM Coins: 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...

aivant
WoM Member
Members
WoM Member: 338393
WoM Coins: 62
and...

and suppose your sibling got on.....

FiXeroN
Contributor
Contributor
WoM Member: 100275
WoM Coins: 398
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
WoM Member
Members
WoM Member: 255967
WoM Coins: 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
Contributor
Contributor
WoM Member: 373162
WoM Coins: 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.

kman222
Contributor
Contributor
WoM Member: 516
WoM Coins: 596
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

moujave
Removed from Staff
Members
WoM Member: 21
WoM Coins: 1687
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!

peteys93
Contributor
Contributor
WoM Member: 240803
WoM Coins: 341
Indeed

Yep, he's right dan.  I knew it would take a lot of coding on the back end to get the command up and running, (perhaps not 12 hours, that's not something I'd ever ask for).  When I wrote the lua script that I wrote I knew full well that it was nothing but the shell for the real command and was really just trying my hand with the language more than anything else (because I know just how easy that part is to do and knew that you guys really needed no help with it).  Perhaps its not really my place for a reply here, but I just had to express that I never underestimated the work that goes into coding a server nearly as much as to post a lua script and stick a copyright on it and expect that to work out just fine (or edit the html code on a webpage and expected that to work out just fine, I must say that I laughed when I saw that).
Whether the command gets added or not really doesnt make a difference to me, I can't see myself ever using it, but I'm sure some would like to have it.  Either way I totally appreciate the work that is done with this server (and the World of Minecraft client for that matter) and know that its nowhere near as easy as some seem to think it is.

moujave
Removed from Staff
Members
WoM Member: 21
WoM Coins: 1687
:)

Thank you for understanding, btw in no way was my comment meant to put you down or anything, I was just clearly stating a fact and didn't mean to come off that rude. Sorry!

But yes, thank you peteys!

Lunick
Officially Retired
Contributor +
WoM Member: 74757
WoM Coins: 8985
<3 moujave

<3 moujave

kman222
Contributor
Contributor
WoM Member: 516
WoM Coins: 596
great point

they would get pissed off, bug u to hell, getting a perm ignore just for them to make an alt account to do it all over again... wars here we come XD