A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

BC - Stikked
From SkaleMC, 6 Years ago, written in JavaScript.
Embed
  1.         public CMD_claycast(String name) {
  2.                 super("bc", null, new String[] { "claycast" });
  3.         }
  4.  
  5.         @Override
  6.         public void execute(CommandSender sender, String[] args) {
  7.                
  8.                 if(sender instanceof ProxiedPlayer){
  9.                        
  10.                         ProxiedPlayer p = (ProxiedPlayer) sender;
  11.                        
  12.                         String message = "";
  13.                 for (int i = 0; i < args.length; i++) {
  14.                   message = message + args[i] + " ";
  15.                 }
  16.                
  17.                 if(p.hasPermission("system.claycast")){
  18.                         if(args.length > 0){
  19.                                 if ((message.equals(" ")) || (message.equals(""))) {
  20.                                         p.sendMessage(ProxySystem.getInstance().getPrefix() + "§7Bitte gebe eine Nachricht ein§8.");
  21.                                 }else{
  22.                                         BungeeCord.getInstance().broadcast(ProxySystem.getInstance().getClayCastPrefix() + "§7" + message);
  23.                                 }
  24.                         }else{
  25.                                 p.sendMessage(ProxySystem.getInstance().getPrefix() + "§7Bitte benutze §2/bc <Nachricht>§8.");
  26.                         }
  27.                 }else{
  28.                         p.sendMessage(ProxySystem.getInstance().getPrefix() + "§7Du hast keine Rechte diesen Command auszuführen§8.");
  29.                 }
  30.                 }
  31.                
  32.         }
  33.        
  34.        
  35.  
  36. }