News paper request

Discussion in 'Archived: Plugin Requests' started by Karatyman, May 8, 2012.

  1. Offline

    Karatyman

    Ok, with the upcomming update writable books will be made. This is a very useful thing, however it has limitations. I have an idea how to make these books useful, with a fullproof system. I say there should be a newspaper pluggin. Basically a player with the permissions to make a news paper would write the "paper" into a book. The person would then type /newspaper set. This would then set a newspaper. Then somone with the permisions, could make a sign saying [newspaper]. By right clicking the sign a player would instantly get a copy of the book that was set as the news paper.


    Permissions
    newspaper.create
    newspaper.get
    newspaper.sign
    newspaper.*

    Addons

    News papers cost money
    The abilty to have multiple papers (/newspaper set 2)
    Possilbe screen shots saved to paper
     
  2. Offline

    Ytry

    This is not possible until that update is released.
     
  3. Offline

    Deleted user

    Wait until that update is released, then post this plugin req.
     
  4. Offline

    ogedi

    Check out bookworm
     
  5. Offline

    dillyg10

    Well, we're going to have to wait for new API's to come out, dunno how much we will be able to do D
     
  6. Offline

    JollyGiant16

    I would have to wait for 1.3.0 to get whatever the code is for
    player.editbook() whatever it is,

    Code:
    package me.jollygiant13.newspaper;
     
    import java.util.logging.Logger;
     
    import org.bukkit.ChatColor;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.plugin.PluginDescriptionFile;
    import org.bukkit.plugin.java.JavaPlugin;
     
    public class newspaper extends JavaPlugin{
      public final Logger logger = Logger.getLogger("Minecraft");
      public static newspaper plugin;
     
      @Override
      public void onDisable() {
          PluginDescriptionFile pdfFile =  this.getDescription();
          this.logger.info(pdfFile.getName() +  "Has Been Disabled!" );
      }
     
      @Override
      public void onEnable() {
          PluginDescriptionFile pdfFile =  this.getDescription();
          this.logger.info(pdfFile.getName() + "Version" + pdfFile.getVersion() +  "Has Been Enabled!" );
          getConfig().options().copyDefaults(true);
          saveConfig();
          }
      public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
      Player player = (Player) sender;
      if(commandLabel.equalsIgnoreCase("newspaper set 1")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 2")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 3")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 4")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 5")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 6")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 7")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 8")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 9")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 10")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      }else if(commandLabel.equalsIgnoreCase("newspaper set 11")){
      player.sendMessage(ChatColor.GREEN + "Successfully really to edit newspaper.");
      if(player.hasPermission("newspaper.*"));
      if(player.hasPermission("newspaper.create.*"));
      if(player.hasPermission("newspaper.get*"));
      if(player.hasPermission("newspaper.sign"));
    if(player.hasPermission("newspaper.deny"));
     
        }
    return false;
      }
    }
    
    Plugin.yml
    Code:
    name: Newspaper
    main. me.jollygiant13.newspaper
    version: 1.2.5
    description: >
                 Newspaper 1.2.5:
    commands:
     newspaper set 1:
       description: Create a newspaper.
     newspaper set 2:
       description: Create a newspaper.
     newspaper set 3:
       description: Create a newspaper.
     newspaper set 4:
       description: Create a newspaper.
     newspaper set 5:
       description: Create a newspaper.
     newspaper set 6:
      description: Create a newspaper.
     newspaper set 7:
        description: Create a newspaper.
     newspaper set 8:
       description: Create a newspaper.
     newspaper set 9:
       description: Create a newspaper.
     newspaper set 10:
       description: Create a newspaper.
     newspaper set 11:
       description: Create a newspaper.
     
    permissions:
        newspaper.*:
            description: All CaptureFlag permisssions
            children:
                newspaper.create: true
                newspaper.deny: false
                newspaper.get: true
                newspaper.sign: true
        newspaper.create:
            description: Allows you to create a newspaper
            default: true
     
        newspaper.deny:
            description: Deny newspaper (overides create)
            default: false
        newspaper.sign:
            description: Allows you to create a sign.
            default: true
        newspaper.get:
            description: Allows you to get a newspaper from the sign!
            default: true
     
  7. Offline

    Karatyman



    Alright thanks man, the people on this forrum are so nice
     
  8. Offline

    Ytry

    JollyGiant16 if you do not want to wait till then, when it does come out I can pick up this project and maybe expand on it if you would like. It is totally up to you because it is your code and so far your project.
     
  9. Offline

    JollyGiant16

    Ytry Go ahead and make it Ytry I'm fine with that.
     
  10. Offline

    Karatyman

    I wanted to bring this topic back up because the game updated, and i am still looking forward to this being made. I hope it can be done
     
  11. Offline

    mstiles92

    I would be interested in making it. Just need to wait for bukkit to be updated so we can see what the API allows us to do. If it is possible, I'll be happy to create this.
     
  12. Offline

    BenjamiinNoR

    mstiles92 PM me if you are making this please, seems like a good idea.
     
  13. Offline

    fredghostkyle1

    Bump, update cam out! lol, i like the idea!
     

Share This Page