Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BenPlaysMC

Members
  • Joined

  • Last visited

Everything posted by BenPlaysMC

  1. I only need the client to know about it, but are there any examples of the code? That would be great.
  2. Hi, on command, I would love it so that it would open up a GUI. Specifically a 27 slot normal small chest inventory. I can't seem to find any tutorials on it because they're all custom gui's where I only want a normal inventory.
  3. Alright, I fixed the issue. Here's my final class. package com.reprevise.enhanmod.cmds; import com.reprevise.enhanmod.chat.PluginAnnouncer; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.server.MinecraftServer; public class PunishThing extends CommandBase { @Override public String getName() { // TODO Auto-generated method stub return "punish"; } @Override public String getUsage(ICommandSender sender) { // TODO Auto-generated method stub return "/punish <user>"; } @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (sender instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) sender; PluginAnnouncer.sendMessageToMod("Opening GUI..."); } } @Override public int getRequiredPermissionLevel() { // TODO Auto-generated method stub return super.getRequiredPermissionLevel(); } @Override public boolean checkPermission(MinecraftServer server, ICommandSender sender) { // TODO Auto-generated method stub return super.checkPermission(server, sender); } }
  4. package com.reprevise.enhanmod.cmds; import java.util.List; import com.reprevise.enhanmod.chat.PluginAnnouncer; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.server.MinecraftServer; import net.minecraft.util.math.BlockPos; import net.minecraftforge.client.IClientCommand; public class PunishCMD extends CommandBase { @Override public String getName() { return "punish"; } @Override public String getUsage(ICommandSender sender) { return "/punish <user>"; } @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (sender instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) sender; PluginAnnouncer.sendMessageToMod("Opening GUI..."); } } @Override public boolean checkPermission(MinecraftServer server, ICommandSender sender) { return false; } @Override public int getRequiredPermissionLevel() { return 0; } @Override public boolean isUsernameIndex(String[] args, int index) { return false; } } This is my new class, and the only thing I changed was overriding the getRequiredPermissionLevel method which didn't help. I went through the class and there were no other methods that dealt with permissions.
  5. So I'm working on a mod and I made a command. When I try and execute the command, it says I don't have permission. Here's the class: package com.reprevise.enhanmod.cmds; import java.util.List; import com.reprevise.enhanmod.chat.PluginAnnouncer; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommand; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.server.MinecraftServer; import net.minecraft.util.math.BlockPos; import net.minecraftforge.client.IClientCommand; public class PunishCMD extends CommandBase { @Override public String getName() { return "punish"; } @Override public String getUsage(ICommandSender sender) { return "/punish <user>"; } @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (sender instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) sender; PluginAnnouncer.sendMessageToMod("Opening GUI..."); } } @Override public boolean checkPermission(MinecraftServer server, ICommandSender sender) { return false; } @Override public boolean isUsernameIndex(String[] args, int index) { return false; } }
  6. I didn't make this modpack! The Owner did.
  7. New log:https://gist.github.com/anonymous/5f9bc5a306830610439e
  8. I went into my server then into logs and clicked on latest.log is that the log you want?
  9. I put the crash report on the New log that I posted:http://pastebin.com/LGBSybYh
  10. Do you want a crash report aswell?
  11. New log:http://pastebin.com/LGBSybYh
  12. I can update you with the new log.
  13. So I'm running alot of mods on a server, they're updated so they fit 1.7.10 forge! Here's the crash report. Link:http://pastebin.com/tC6WHazQ Crash Report:http://pastebin.com/0Qx5G9zH I would like to fix this ASAP if you guys could help me.
  14. But what if I want to install optifine without using the installer? Like not using the optifine profile and using it with forge.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.