Welcome, Guest. Please login or register

Author Topic: [1.4] SimpleCore  (Read 57393 times)

0 Members and 1 Guest are viewing this topic.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
[1.4] SimpleCore
« on: June 11, 2012, 09:49:17 pm »
SimpleCore
Brought to you by: Dries007
Need help? Join #dries007 on espernet
This is a very basic Permissions system! Pleas share any thoughts with me!

Only ServerSide! If used in SSP you always have permission for everything ;-)

Download

PLEAS: If you find bug or would like to add more commands, post in this thread!

If you want to manually edit the permission/player files use NBTExplorer
How to use:    (Server admin)
Hidden

Edit ranks and permissions: Edit the right .datfile (in "/[world]/SimpleCore/" by default). Only when the server is down, otherwise it gets overwritten again.

Use the command "/help" ingame to find out about the commands.

You can add ranks with /addrank
You can give a player a certain rank by /promote <player> <rank>
You can allow or deny a player a certain permission: /player <player> <allow|deny> <Permission>
And for ranks: /rank <rank> <allow|deny> <Permission>

How to use:    (Modders)
Hidden

You can import dries007.Permissions and/or dries007.data of you want to use the permission and/or the NBT-based data storage system.

« Last Edit: October 30, 2012, 12:24:34 pm by dries007 »
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline AlienNova

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
  • Thank You
  •   - Given: 0
  •   - Receive: 0

  • "I am new!"

    • View Profile
Re: [1.2.5] SimplePermissions
« Reply #1 on: June 19, 2012, 06:51:32 am »
I love how your practicly bringing the basic plugins from bukkit into forge multiplayer :) This will help most defiantly.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #2 on: June 19, 2012, 11:13:30 am »
I'm not actually porting stuff over, I'm coding it myself. I'm doing the final things on a set of hooks that will allow block protection in Forge.
But since there is almost no documentation on this subject I'm having trouble with the submission of the code.
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5] SimplePermissions
« Reply #3 on: June 22, 2012, 09:16:52 pm »
I'm not actually porting stuff over, I'm coding it myself. I'm doing the final things on a set of hooks that will allow block protection in Forge.
But since there is almost no documentation on this subject I'm having trouble with the submission of the code.
Such as?  Always feel free to ask.  :)

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #4 on: June 22, 2012, 09:39:09 pm »
I can't properly submit my new code to github. I'v cloned the repo in windows, I try to build/release it (without modifications) and I get errors?!?

Hidden
Code: [Select]
== ERRORS FOUND ==

src\minecraft_server\net\minecraft\src\EntityPlayerMP.java:815: error: cannot fi
nd symbol
        getNextWindowId();
        ^

  symbol:   method getNextWindowId()
  location: class EntityPlayerMP
src\minecraft_server\net\minecraft\src\forge\PacketHandlerServer.java:153: error
: cannot find symbol
        net.mcServer.configManager.updateTimeAndWeather(player, world);
                                  ^

  symbol:   method updateTimeAndWeather(EntityPlayerMP,WorldServer)
  location: variable configManager of type ServerConfigurationManager
2 errors


And there is no documentation on how to "format" the hooks you would like to see added. (I know you can look at other hooks for examples).

This is how I think you need to make hooks:
Make the hooks in an eclipse project with the most current version of forge (in jenkins). Clone the github, things in the forge dir you can directly add/change to the github, but modifications to the MC code you need to do with the patches. But how? change source in src_work, then run update_patches? => doesn't work or gives a massive amount of changes if you try to submit to github.

I would like to make it possible for public servers to be running vanilla without fear for griefing, and with the ability to give trusted members more abilities.
« Last Edit: June 22, 2012, 09:50:12 pm by dries007 »
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5] SimplePermissions
« Reply #5 on: June 22, 2012, 11:35:42 pm »
This is what I do and it works:
You will want to create a "fork" of MinecraftForge on github in to your own user.
Clone your fork locally, install a new copy of it into MCP and install it.
Make change to the source.
Run the patch generator (do not remember the name, one of the files in the forge directory) and it will generate the patches needed.
Copy your patches and new files back into your clone and submit back to your forge fork.
Submit a pull request of your fork back to the main repo.

Lex may have an easier way, but I am not used to git forks being subparts of larger packages, and this works.  :)

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #6 on: June 23, 2012, 08:23:25 am »
so change source in src_work? The forge directory isn't copied in there.
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline Jarofdoom

  • Forge Modder
  • Stone Miner
  • ***
  • Posts: 92
  • Karma: +10/-1
  • Thank You
  •   - Given: 0
  •   - Receive: 1
  • Gender: Male
    • View Profile
Re: [1.2.5] SimplePermissions
« Reply #7 on: June 23, 2012, 06:30:51 pm »
Run the setup.bat/py/sh first.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #8 on: June 23, 2012, 06:39:54 pm »
Ok, this is what I do, step by step.
Fork Forge
clone in Win
Clean MCP
Forge in MCP
jars in MCP
Forge Setup.bat
Edit source (src_work, but that doesn't have the Forge dir)
Then I want to test my version of forge so I try to run the build and/or release.bat, but that gives errors.
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline Nekuroi

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
  • Thank You
  •   - Given: 0
  •   - Receive: 0
  • Gender: Male

  • "Church of Necessary Evil"

    • View Profile
Re: [1.2.5] SimplePermissions
« Reply #9 on: June 26, 2012, 02:47:35 pm »
When i use a custom item with the terrain i get kicked with a "Internal Server error"

Code: [Select]
2012-06-26 11:44:34 [WARNING] Failed to handle packet: java.lang.ArrayIndexOutOfBoundsException: 1
java.lang.ArrayIndexOutOfBoundsException: 1
        at mod_SimplePermissions.getRankSetting(mod_SimplePermissions.java:138)
        at mod_SimplePermissions.canMine(mod_SimplePermissions.java:339)
        at forge.ForgeHooks.canMine(ForgeHooks.java:683)
        at gp.a(WorldServer.java:121)
        at mm.a(NetServerHandler.java:408)
        at lj.a(SourceFile:43)
        at qq.b(NetworkManager.java:353)
        at mm.a(NetServerHandler.java:72)
        at fk.a(SourceFile:107)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:566)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
        at dn.run(SourceFile:492)

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #10 on: June 26, 2012, 03:11:13 pm »
Only a custom item? It seems the mod can't read the rank, I'm still working on this a lot, but can't push the updated version yet....
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline calclavia

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,419
  • Karma: +90/-9
  • Thank You
  •   - Given: 20
  •   - Receive: 36
  • Gender: Male

  • "ICBM Mod: http://calclavia.com/icbm/"

    • View Profile
    • Calclavia
Re: [1.2.5] SimplePermissions
« Reply #11 on: July 02, 2012, 02:52:03 pm »
It would be great to not use bukkit since bukkit is sometimes such pain to port to (for every release). I am looking forward to you make a World Gaurd to protect servers fro my mod ICBM!
« Last Edit: July 02, 2012, 03:07:13 pm by calclavia »

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #12 on: July 02, 2012, 06:44:44 pm »
This is going to be an API like mod, it won't change anything, but will be used by the other mods in the Simple-series.
(For the world guard stuff there will be SimpleProtection, but it will use a block and an interface to make configuring easier)
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline calclavia

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,419
  • Karma: +90/-9
  • Thank You
  •   - Given: 20
  •   - Receive: 36
  • Gender: Male

  • "ICBM Mod: http://calclavia.com/icbm/"

    • View Profile
    • Calclavia
Re: [1.2.5] SimplePermissions
« Reply #13 on: July 03, 2012, 02:06:42 am »
To be honest, the only reason I install bukkit is:

Commands
Permissions
World Gaurd protection
World Edit

If Forge gets server mods like these things natively, I am dropping bukkit :D

Also would be great I you made a mod like multiverse to make multiple worlds and have each world load some specific mods. So a server may have a vanilla world, a modded world and stuff like that.
« Last Edit: July 03, 2012, 02:10:14 am by calclavia »

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5] SimplePermissions
« Reply #14 on: July 03, 2012, 02:29:34 am »
To be honest, the only reason I install bukkit is:

Commands
Permissions
World Gaurd protection
World Edit

If Forge gets server mods like these things natively, I am dropping bukkit :D

Also would be great I you made a mod like multiverse to make multiple worlds and have each world load some specific mods. So a server may have a vanilla world, a modded world and stuff like that.

Commands are easily done.
Permissions, just need to get someone to agree to one type.
World Guard, requires some form of block protection (and other types of protection).
World Edit, would be useful, big mod though.

However, bukkit is still more efficient than the vanilla server, by far.

As for multi-verse, not the way minecraft does it now, and for controlling which mods are useable, also quite difficult.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #15 on: July 03, 2012, 08:47:20 am »
For the multiverse stuff you can take a look at [ur=http://www.minecraftforum.net/topic/918541-125-mystcraft-086/l]Mystcraft[/url].
The permission system can be used by other mods. But i need to make the documentation ;-)
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5] SimplePermissions
« Reply #16 on: July 28, 2012, 12:08:44 am »
It would be great to not use bukkit since bukkit is sometimes such pain to port to (for every release). I am looking forward to you make a World Gaurd to protect servers fro my mod ICBM!
And people like me screwing up wiring in their secret antimatter missile facility. :P
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline calclavia

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,419
  • Karma: +90/-9
  • Thank You
  •   - Given: 20
  •   - Receive: 36
  • Gender: Male

  • "ICBM Mod: http://calclavia.com/icbm/"

    • View Profile
    • Calclavia
Re: [1.2.5] SimplePermissions
« Reply #17 on: July 30, 2012, 03:25:43 am »
It would be great to not use bukkit since bukkit is sometimes such pain to port to (for every release). I am looking forward to you make a World Gaurd to protect servers fro my mod ICBM!
And people like me screwing up wiring in their secret antimatter missile facility. :P

Antimatter facility.... You have a pit in your world now?

Offline atrain99

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,191
  • Karma: +72/-4
  • Thank You
  •   - Given: 48
  •   - Receive: 51
  • Gender: Male

  • "Gypsy Magic!"

    • View Profile
Re: [1.2.5] SimplePermissions
« Reply #18 on: July 30, 2012, 01:42:38 pm »
A BIG one.  >:(
Anyway, I think I know what I did wrong:
I triggered the launch before the doors opened because of me switching the RP IOXSET values for blue and red. GAAAAAH!
So, what would happen if I did push that shiny red button over there? ... Really? ... Can I try it? ... Damn.

Offline foreverblu

  • Creeper Killer
  • **
  • Posts: 168
  • Karma: +3/-4
  • Thank You
  •   - Given: 6
  •   - Receive: 1
  • Gender: Male

  • "Revealing the Future..."

    • View Profile
    • The Wiki for Our Team
Re: [1.2.5] SimplePermissions
« Reply #19 on: August 05, 2012, 11:23:26 am »
THIS. IS. THE. MOST. AWESOME. CREATION. FOR. VANILLA. SERVER. EVER!!!!! (Well.....one of htem :P )

IVE ALWAYS WANTED THIS!!!!

Java, Hosting Servers and Videos...

Offline calclavia

  • Forge Modder
  • World Shaper
  • ***
  • Posts: 1,419
  • Karma: +90/-9
  • Thank You
  •   - Given: 20
  •   - Receive: 36
  • Gender: Male

  • "ICBM Mod: http://calclavia.com/icbm/"

    • View Profile
    • Calclavia
Re: [1.2.5] SimplePermissions
« Reply #20 on: August 05, 2012, 02:19:22 pm »
THIS. IS. THE. MOST. AWESOME. CREATION. FOR. VANILLA. SERVER. EVER!!!!! (Well.....one of htem :P )

IVE ALWAYS WANTED THIS!!!!

This basically make a vanilla server into a bukkit server without all the bugs bukkit brings in....

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #21 on: August 05, 2012, 02:34:58 pm »
And it allows you to have a up to date modded server!
I'm working on a "How to use the PermissionsAPI" guide, I wonder if that would be allowed on the wiki...
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline OvermindDL1

  • Administrator
  • World Shaper
  • *****
  • Posts: 1,317
  • Karma: +344/-20
  • Thank You
  •   - Given: 18
  •   - Receive: 142
    • View Profile
    • OvermindDL1's Empty Main Server
Re: [1.2.5] SimplePermissions
« Reply #22 on: August 05, 2012, 07:34:56 pm »
And it allows you to have a up to date modded server!
I'm working on a "How to use the PermissionsAPI" guide, I wonder if that would be allowed on the wiki...

Yes.  Just use an appropriate new Namespace.

Offline dries007

  • Moderator
  • Diamond Finder
  • *****
  • Posts: 305
  • Karma: +10/-0
  • Thank You
  •   - Given: 1
  •   - Receive: 1
  • Gender: Male

  • "Hehe ;)"

    • View Profile
    • Dries007.net
Re: [1.2.5] SimplePermissions
« Reply #23 on: August 05, 2012, 07:37:06 pm »
Well, its gonna take some time, I just figured out that EntityData gets wiped on death so I'm rewriting it all....
Please send me all the typo's you found, I'm from Belgium and I'm a little dyslectic and suck @ typing.

Offline foreverblu

  • Creeper Killer
  • **
  • Posts: 168
  • Karma: +3/-4
  • Thank You
  •   - Given: 6
  •   - Receive: 1
  • Gender: Male

  • "Revealing the Future..."

    • View Profile
    • The Wiki for Our Team
Re: [1.2.5] SimplePermissions
« Reply #24 on: August 08, 2012, 11:03:56 am »
Please add in-game rank showing :) That would be great

Java, Hosting Servers and Videos...

 

Sitemap 1 2 3 4 5 6 7 8 9 10 
Close
Please register or Login to join in on the community!