Jump to content

Recommended Posts

Posted

Hi,

 

As Co-Admin on a FTB Bukkit server I found it always difficult tu limit the use of certain items like the Mining Laser or other mod functions. In my opinion, it would work a lot better if the mod authors would use some kind of permissions system. However, there is no universal permissions api forge mods could use.

 

So my suggestion would be: A Forge Permissions API. I thought about something like this:

 

If a mod wants to check a permission, it posts a PermissionEvent (containing the permission id and the player to check for) to a special permissions event bus. Subscribers to the event can now check whether the player has that permission and set the event's result accordingly.

 

Additionally, one could also post location-based permission event, so items like the Wand of Equal Trade would be limited to the user's own regions.

 

This api doesn't have to define an interface for modifying permissions, that's up to the implementors.

 

 

I think this should be in forge as it would encourage it's use. It's comparable to bukkit where there was a big chaos in permissions too until they included the unified permissions api.

Posted

Hmm, that sounds more like a coremod (or maybe just a mod; I'm not sure that needs to be a coremod) API, rather than a part of Forge. "I think this should be in forge as it would encourage it's use" seems to me to be a bad idea; if such a situation with competing APIs arises it would not be the responsibility of Forge to solve it.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Posted

If you say that, you could say the same about the ore dictionary. After all, it is just about resolving conflicting apis too. And I doubt it would be as widely used as it is now if it was a seperate mod.

Posted

I would disagree. Right now my biggest annoyance with trying to implement some functionality and bukkit like features for multiplayer servers using Forge has to be the lack of a perm system of any kind. The idea is not necessarily to create a single perm manager I think, but rather something along the lines of

 

http://jd.bukkit.org/rb/apidocs/

 

To IMPROVE intermod cooperation. I mean, it's really just a logical extension of what is already included in theory to handle such matters: the fake player class. It's already an issue I would say right now because several mods have 'rolled their own' system so to speak (such as those which let a machine's access be potentially limited) and Forge Essentials attempts to add a Permissions system AND Manager, but as it stands right now there is no single accepted outline let alone system for things like, say, a factions mod that would actually work in the expected fashion in a Forge modded server. And with the new 'block broken' and 'block placed' events likely to be added soon, there's less excuse than ever to not support a basic perm system. Forge doesn't have to include full perm control or anything, just a unified system for something to say "Hey! I'm about to do something and I think this might need permission", configuration and actual modification and input of perms and all that can be handled by an external program even.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This mod lets you choose an element power, Earth, Wind, Fire, or Water. Also two secret element powers Light and Darkness. Each power gives good a bad things, Earth lets you dig through anything but ores and bedrock, Wind lets you jump high in the air every three seconds, Fir lets you throw fire balls and you are immune to any flame/lava but you can't go into water or else you take damage, Water you swim and break blocks under water quicker and you can get rid of water like a sponge but you take more damage when in fire/lava, Light makes you faster at day but slower at night you are able to throw light spears that do four hearts and can go through any armor, Darkness let's you be faster at night but slower at day mobs don't harm you but peaceful mobs run away from you you are able to spawn ink creatures around you that are like dogs but are stronger. another thing in the mod is that there are other dimensions that can get you ores to make better armor and weapons, each dimensions are are good for a certain element though each dimension has a boss depending on which dimension one dimension has more than one boss, each elements are required to defeat the bosses with each others help.
    • Read the posts above yours, it tells you exactly how to do it, instructions are the same if it's making a forge installation or a vanilla one, just make a new folder for the game directory.
    • Yes that’s the full log, I managed to get it working last night, the anvil fix mod is what was causing it to crash
    • Hey guys, i'm currently developping a mod with forge 1.12.2 2860 and i'm using optifine and gradle 4.9. The thing is i'm trying to figure out how to show the player's body in first person. So far everything's going well since i've try to use a shader. The player's body started to blink dark when using a shader. I've try a lot of shader like chocapic, zeus etc etc but still the same issue. So my question is : How should i apply the current shader to the body ? At the same time i'm also drawing a HUD so maybe it could be the problem?   Here is the issue :    And here is the code where i'm trying to display the body :    private static void renderFirstPersonBody(EntityPlayerSP player, float partialTicks) { Minecraft mc = Minecraft.getMinecraft(); GlStateManager.pushMatrix(); GlStateManager.pushAttrib(); try { // Préparation OpenGL GlStateManager.enableDepth(); GlStateManager.depthMask(true); GlStateManager.enableAlpha(); GlStateManager.alphaFunc(GL11.GL_GREATER, 0.1F); GlStateManager.enableBlend(); GlStateManager.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); // Éclairage correct pour shaders GlStateManager.enableLighting(); RenderHelper.enableStandardItemLighting(); GlStateManager.enableRescaleNormal(); // Active la lightmap pour les shaders mc.entityRenderer.enableLightmap(); // Position de rendu interpolée double px = player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTicks; double py = player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTicks; double pz = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks; GlStateManager.translate( px - mc.getRenderManager().viewerPosX, py - mc.getRenderManager().viewerPosY, pz - mc.getRenderManager().viewerPosZ ); // Rendu du joueur sans la tête Render<?> render = mc.getRenderManager().getEntityRenderObject(player); if (render instanceof RenderPlayer) { RenderPlayer renderPlayer = (RenderPlayer) render; boolean oldHeadHidden = renderPlayer.getMainModel().bipedHead.isHidden; boolean oldHeadwearHidden = renderPlayer.getMainModel().bipedHeadwear.isHidden; renderPlayer.getMainModel().bipedHead.isHidden = true; renderPlayer.getMainModel().bipedHeadwear.isHidden = true; setArmorHeadVisibility(renderPlayer, false); renderPlayer.doRender(player, 0, 0, 0, player.rotationYaw, partialTicks); renderPlayer.getMainModel().bipedHead.isHidden = oldHeadHidden; renderPlayer.getMainModel().bipedHeadwear.isHidden = oldHeadwearHidden; setArmorHeadVisibility(renderPlayer, !oldHeadwearHidden); } // Nettoyage post rendu mc.entityRenderer.disableLightmap(); GlStateManager.disableRescaleNormal(); } catch (Exception e) { // silent fail } finally { GlStateManager.popAttrib(); GlStateManager.popMatrix(); } }   Ty for your help. 
    • Item successfully registered, but there was a problem with the texture of the item, it did not insert and has just the wrong texture.     
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.